class javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel<T> extends javafx.scene.control.SingleSelectionModel<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel
super_class: javafx.scene.control.SingleSelectionModel
{
private final javafx.scene.control.ChoiceBox<T> choiceBox;
descriptor: Ljavafx/scene/control/ChoiceBox;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljavafx/scene/control/ChoiceBox<TT;>;
private javafx.beans.value.ChangeListener<javafx.collections.ObservableList<T>> itemsObserver;
descriptor: Ljavafx/beans/value/ChangeListener;
flags: (0x0002) ACC_PRIVATE
Signature: Ljavafx/beans/value/ChangeListener<Ljavafx/collections/ObservableList<TT;>;>;
private javafx.collections.ListChangeListener<T> itemsContentObserver;
descriptor: Ljavafx/collections/ListChangeListener;
flags: (0x0002) ACC_PRIVATE
Signature: Ljavafx/collections/ListChangeListener<TT;>;
private javafx.collections.WeakListChangeListener<T> weakItemsContentObserver;
descriptor: Ljavafx/collections/WeakListChangeListener;
flags: (0x0002) ACC_PRIVATE
Signature: Ljavafx/collections/WeakListChangeListener<TT;>;
public void <init>(javafx.scene.control.ChoiceBox<T>);
descriptor: (Ljavafx/scene/control/ChoiceBox;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javafx.scene.control.SingleSelectionModel.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "ChoiceBox can not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel javafx.scene.control.ChoiceBox
StackMap stack:
aload 0
aload 1
putfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
4: aload 0
aload 0
invokedynamic onChanged(Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel;)Ljavafx/collections/ListChangeListener;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljavafx/collections/ListChangeListener$Change;)V
javafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel.lambda$0(Ljavafx/collections/ListChangeListener$Change;)V (7)
(Ljavafx/collections/ListChangeListener$Change;)V
putfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.itemsContentObserver:Ljavafx/collections/ListChangeListener;
5: aload 0
new javafx.collections.WeakListChangeListener
dup
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.itemsContentObserver:Ljavafx/collections/ListChangeListener;
invokespecial javafx.collections.WeakListChangeListener.<init>:(Ljavafx/collections/ListChangeListener;)V
putfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.weakItemsContentObserver:Ljavafx/collections/WeakListChangeListener;
6: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
ifnull 8
7: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.weakItemsContentObserver:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.addListener:(Ljavafx/collections/ListChangeListener;)V
8: StackMap locals:
StackMap stack:
aload 0
aload 0
invokedynamic changed(Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel;)Ljavafx/beans/value/ChangeListener;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljavafx/beans/value/ObservableValue;Ljava/lang/Object;Ljava/lang/Object;)V
javafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel.lambda$1(Ljavafx/beans/value/ObservableValue;Ljavafx/collections/ObservableList;Ljavafx/collections/ObservableList;)V (7)
(Ljavafx/beans/value/ObservableValue;Ljavafx/collections/ObservableList;Ljavafx/collections/ObservableList;)V
putfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.itemsObserver:Ljavafx/beans/value/ChangeListener;
9: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.itemsProperty:()Ljavafx/beans/property/ObjectProperty;
new javafx.beans.value.WeakChangeListener
dup
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.itemsObserver:Ljavafx/beans/value/ChangeListener;
invokespecial javafx.beans.value.WeakChangeListener.<init>:(Ljavafx/beans/value/ChangeListener;)V
invokevirtual javafx.beans.property.ObjectProperty.addListener:(Ljavafx/beans/value/ChangeListener;)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 11 1 cb Ljavafx/scene/control/ChoiceBox<TT;>;
Signature: (Ljavafx/scene/control/ChoiceBox<TT;>;)V
MethodParameters:
Name Flags
cb final
protected T getModelItem();
descriptor: (I)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
areturn
2: StackMap locals: javafx.collections.ObservableList
StackMap stack:
iload 1
iflt 3
iload 1
aload 2
invokeinterface javafx.collections.ObservableList.size:()I
if_icmplt 4
StackMap locals:
StackMap stack:
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 2
iload 1
invokeinterface javafx.collections.ObservableList.get:(I)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 5 1 index I
1 5 2 items Ljavafx/collections/ObservableList<TT;>;
Signature: (I)TT;
MethodParameters:
Name Flags
index
protected int getItemCount();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
astore 1
start local 1 1: aload 1
ifnonnull 2
iconst_0
goto 3
StackMap locals: javafx.collections.ObservableList
StackMap stack:
2: aload 1
invokeinterface javafx.collections.ObservableList.size:()I
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
1 4 1 items Ljavafx/collections/ObservableList<TT;>;
public void select(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial javafx.scene.control.SingleSelectionModel.select:(I)V
1: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.isShowing:()Z
ifeq 3
2: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.hide:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 4 1 index I
MethodParameters:
Name Flags
index
public void select();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javafx.scene.control.SingleSelectionModel.select:(Ljava/lang/Object;)V
1: aload 1
ifnull 3
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
aload 1
invokeinterface javafx.collections.ObservableList.contains:(Ljava/lang/Object;)Z
ifne 3
2: aload 0
iconst_m1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.setSelectedIndex:(I)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 4 1 obj TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
public void selectPrevious();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedIndex:()I
iconst_1
isub
istore 1
start local 1 1: goto 8
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getModelItem:(I)Ljava/lang/Object;
astore 2
start local 2 3: aload 2
instanceof javafx.scene.control.Separator
ifeq 6
4: iinc 1 -1
5: goto 8
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.select:(I)V
7: goto 9
end local 2 8: StackMap locals:
StackMap stack:
iload 1
ifge 2
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
1 10 1 index I
3 8 2 value TT;
public void selectNext();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedIndex:()I
iconst_1
iadd
istore 1
start local 1 1: goto 8
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getModelItem:(I)Ljava/lang/Object;
astore 2
start local 2 3: aload 2
instanceof javafx.scene.control.Separator
ifeq 6
4: iinc 1 1
5: goto 8
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.select:(I)V
7: goto 9
end local 2 8: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getItemCount:()I
if_icmplt 2
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
1 10 1 index I
3 8 2 value TT;
private void lambda$0(javafx.collections.ListChangeListener$Change);
descriptor: (Ljavafx/collections/ListChangeListener$Change;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
ifnull 1
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.isEmpty:()Z
ifeq 3
1: StackMap locals:
StackMap stack:
aload 0
iconst_m1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.setSelectedIndex:(I)V
2: goto 7
StackMap locals:
StackMap stack:
3: aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedIndex:()I
iconst_m1
if_icmpne 7
aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedItem:()Ljava/lang/Object;
ifnull 7
4: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedItem:()Ljava/lang/Object;
invokeinterface javafx.collections.ObservableList.indexOf:(Ljava/lang/Object;)I
istore 2
start local 2 5: iload 2
iconst_m1
if_icmpeq 7
6: aload 0
iload 2
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.setSelectedIndex:(I)V
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 8 1 c Ljavafx/collections/ListChangeListener$Change<+TT;>;
5 7 2 newIndex I
private void lambda$1(javafx.beans.value.ObservableValue, javafx.collections.ObservableList, javafx.collections.ObservableList);
descriptor: (Ljavafx/beans/value/ObservableValue;Ljavafx/collections/ObservableList;Ljavafx/collections/ObservableList;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 2
1: aload 2
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.weakItemsContentObserver:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.removeListener:(Ljavafx/collections/ListChangeListener;)V
2: StackMap locals:
StackMap stack:
aload 3
ifnull 4
3: aload 3
aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.weakItemsContentObserver:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.addListener:(Ljavafx/collections/ListChangeListener;)V
4: StackMap locals:
StackMap stack:
aload 0
iconst_m1
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.setSelectedIndex:(I)V
5: aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedItem:()Ljava/lang/Object;
ifnull 9
6: aload 0
getfield javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.choiceBox:Ljavafx/scene/control/ChoiceBox;
invokevirtual javafx.scene.control.ChoiceBox.getItems:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.getSelectedItem:()Ljava/lang/Object;
invokeinterface javafx.collections.ObservableList.indexOf:(Ljava/lang/Object;)I
istore 4
start local 4 7: iload 4
iconst_m1
if_icmpeq 9
8: aload 0
iload 4
invokevirtual javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.setSelectedIndex:(I)V
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavafx/scene/control/ChoiceBox$ChoiceBoxSelectionModel<TT;>;
0 10 1 valueModel Ljavafx/beans/value/ObservableValue<+Ljavafx/collections/ObservableList<TT;>;>;
0 10 2 oldList Ljavafx/collections/ObservableList<TT;>;
0 10 3 newList Ljavafx/collections/ObservableList<TT;>;
7 9 4 newIndex I
}
Signature: <T:Ljava/lang/Object;>Ljavafx/scene/control/SingleSelectionModel<TT;>;
SourceFile: "ChoiceBox.java"
NestHost: javafx.scene.control.ChoiceBox
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Change = javafx.collections.ListChangeListener$Change of javafx.collections.ListChangeListener
ChoiceBoxSelectionModel = javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel of javafx.scene.control.ChoiceBox