public abstract class javafx.scene.control.SingleSelectionModel<T> extends javafx.scene.control.SelectionModel<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: javafx.scene.control.SingleSelectionModel
super_class: javafx.scene.control.SelectionModel
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javafx.scene.control.SelectionModel.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public void clearSelection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_m1
invokevirtual javafx.scene.control.SingleSelectionModel.updateSelectedIndex:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public void clearSelection(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
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iload 1
if_icmpne 2
1: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.clearSelection:()V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 3 1 index I
MethodParameters:
Name Flags
index
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getItemCount:()I
ifeq 1
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iconst_m1
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public boolean isSelected(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iload 1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 2 1 index I
MethodParameters:
Name Flags
index
public void clearAndSelect(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
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 2 1 index I
MethodParameters:
Name Flags
index
public void select();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 4
1: aload 0
iconst_m1
invokevirtual javafx.scene.control.SingleSelectionModel.setSelectedIndex:(I)V
2: aload 0
aconst_null
invokevirtual javafx.scene.control.SingleSelectionModel.setSelectedItem:(Ljava/lang/Object;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getItemCount:()I
istore 2
start local 2 5: iconst_0
istore 3
start local 3 6: goto 12
7: StackMap locals: int int
StackMap stack:
aload 0
iload 3
invokevirtual javafx.scene.control.SingleSelectionModel.getModelItem:(I)Ljava/lang/Object;
astore 4
start local 4 8: aload 4
ifnull 11
aload 4
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 11
9: aload 0
iload 3
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
10: return
end local 4 11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 2
if_icmplt 7
end local 3 13: aload 0
aload 1
invokevirtual javafx.scene.control.SingleSelectionModel.setSelectedItem:(Ljava/lang/Object;)V
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 15 1 obj TT;
5 15 2 itemCount I
6 13 3 i I
8 11 4 value TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
public void select(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
iconst_m1
if_icmpne 3
1: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.clearSelection:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getItemCount:()I
istore 2
start local 2 4: iload 2
ifeq 5
iload 1
iflt 5
iload 1
iload 2
if_icmplt 6
StackMap locals: int
StackMap stack:
5: return
6: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.SingleSelectionModel.updateSelectedIndex:(I)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 8 1 index I
4 8 2 itemCount I
MethodParameters:
Name Flags
index
public void selectPrevious();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
ifne 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iconst_1
isub
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public void selectNext();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iconst_1
iadd
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public void selectFirst();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getItemCount:()I
ifle 2
1: aload 0
iconst_0
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
public void selectLast();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getItemCount:()I
istore 1
start local 1 1: iload 1
ifle 3
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
iload 1
iconst_1
isub
if_icmpge 3
2: aload 0
iload 1
iconst_1
isub
invokevirtual javafx.scene.control.SingleSelectionModel.select:(I)V
3: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
1 4 1 numItems I
protected abstract T getModelItem();
descriptor: (I)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (I)TT;
MethodParameters:
Name Flags
index
protected abstract int getItemCount();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
private void updateSelectedIndex(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
istore 2
start local 2 1: aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedItem:()Ljava/lang/Object;
astore 3
start local 3 2: aload 0
iload 1
invokevirtual javafx.scene.control.SingleSelectionModel.setSelectedIndex:(I)V
3: iload 2
iconst_m1
if_icmpne 4
aload 3
ifnull 4
iload 1
iconst_m1
if_icmpeq 5
4: StackMap locals: int java.lang.Object
StackMap stack:
aload 0
aload 0
aload 0
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedIndex:()I
invokevirtual javafx.scene.control.SingleSelectionModel.getModelItem:(I)Ljava/lang/Object;
invokevirtual javafx.scene.control.SingleSelectionModel.setSelectedItem:(Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavafx/scene/control/SingleSelectionModel<TT;>;
0 6 1 newIndex I
1 6 2 currentIndex I
2 6 3 currentItem TT;
MethodParameters:
Name Flags
newIndex
}
Signature: <T:Ljava/lang/Object;>Ljavafx/scene/control/SelectionModel<TT;>;
SourceFile: "SingleSelectionModel.java"