class javafx.scene.control.TabPane$TabPaneSelectionModel extends javafx.scene.control.SingleSelectionModel<javafx.scene.control.Tab>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.control.TabPane$TabPaneSelectionModel
super_class: javafx.scene.control.SingleSelectionModel
{
private final javafx.scene.control.TabPane tabPane;
descriptor: Ljavafx/scene/control/TabPane;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private javafx.collections.ListChangeListener<javafx.scene.control.Tab> itemsContentObserver;
descriptor: Ljavafx/collections/ListChangeListener;
flags: (0x0002) ACC_PRIVATE
Signature: Ljavafx/collections/ListChangeListener<Ljavafx/scene/control/Tab;>;
public void <init>(javafx.scene.control.TabPane);
descriptor: (Ljavafx/scene/control/TabPane;)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 "TabPane can not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javafx.scene.control.TabPane$TabPaneSelectionModel javafx.scene.control.TabPane
StackMap stack:
aload 0
aload 1
putfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
4: aload 0
aload 0
invokedynamic onChanged(Ljavafx/scene/control/TabPane$TabPaneSelectionModel;)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/TabPane$TabPaneSelectionModel.lambda$0(Ljavafx/collections/ListChangeListener$Change;)V (7)
(Ljavafx/collections/ListChangeListener$Change;)V
putfield javafx.scene.control.TabPane$TabPaneSelectionModel.itemsContentObserver:Ljavafx/collections/ListChangeListener;
5: aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
ifnull 7
6: aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
new javafx.collections.WeakListChangeListener
dup
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.itemsContentObserver:Ljavafx/collections/ListChangeListener;
invokespecial javafx.collections.WeakListChangeListener.<init>:(Ljavafx/collections/ListChangeListener;)V
invokeinterface javafx.collections.ObservableList.addListener:(Ljavafx/collections/ListChangeListener;)V
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/TabPane$TabPaneSelectionModel;
0 8 1 t Ljavafx/scene/control/TabPane;
MethodParameters:
Name Flags
t final
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
iflt 2
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getItemCount:()I
ifle 1
iload 1
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getItemCount:()I
if_icmpge 2
1: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
if_icmpne 3
aload 0
iload 1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
invokevirtual javafx.scene.control.Tab.isSelected:()Z
ifeq 3
2: StackMap locals:
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
iflt 5
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.size:()I
if_icmpge 5
4: aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
invokeinterface javafx.collections.ObservableList.get:(I)Ljava/lang/Object;
checkcast javafx.scene.control.Tab
iconst_0
invokevirtual javafx.scene.control.Tab.setSelected:(Z)V
5: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.setSelectedIndex:(I)V
6: aload 0
iload 1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
astore 2
start local 2 7: aload 2
ifnull 9
8: aload 0
aload 2
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.setSelectedItem:(Ljava/lang/Object;)V
9: StackMap locals: javafx.scene.control.Tab
StackMap stack:
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
iflt 11
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.size:()I
if_icmpge 11
10: aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
invokeinterface javafx.collections.ObservableList.get:(I)Ljava/lang/Object;
checkcast javafx.scene.control.Tab
iconst_1
invokevirtual javafx.scene.control.Tab.setSelected:(Z)V
11: StackMap locals:
StackMap stack:
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
getstatic javafx.scene.AccessibleAttribute.FOCUS_ITEM:Ljavafx/scene/AccessibleAttribute;
invokevirtual javafx.scene.control.TabPane.notifyAccessibleAttributeChanged:(Ljavafx/scene/AccessibleAttribute;)V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavafx/scene/control/TabPane$TabPaneSelectionModel;
0 13 1 index I
7 13 2 tab Ljavafx/scene/control/Tab;
MethodParameters:
Name Flags
index
public void select(javafx.scene.control.Tab);
descriptor: (Ljavafx/scene/control/Tab;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getItemCount:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: int int
StackMap stack:
aload 0
iload 3
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
astore 4
start local 4 4: aload 4
ifnull 7
aload 4
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
iload 3
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.select:(I)V
6: return
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 3
end local 3 9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavafx/scene/control/TabPane$TabPaneSelectionModel;
0 10 1 tab Ljavafx/scene/control/Tab;
1 10 2 itemCount I
2 9 3 i I
4 7 4 value Ljavafx/scene/control/Tab;
MethodParameters:
Name Flags
tab
protected javafx.scene.control.Tab getModelItem(int);
descriptor: (I)Ljavafx/scene/control/Tab;
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.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()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;
checkcast javafx.scene.control.Tab
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavafx/scene/control/TabPane$TabPaneSelectionModel;
0 5 1 index I
1 5 2 items Ljavafx/collections/ObservableList<Ljavafx/scene/control/Tab;>;
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.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()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/TabPane$TabPaneSelectionModel;
1 4 1 items Ljavafx/collections/ObservableList<Ljavafx/scene/control/Tab;>;
private javafx.scene.control.Tab findNearestAvailableTab(int, boolean);
descriptor: (IZ)Ljavafx/scene/control/Tab;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getItemCount:()I
istore 3
start local 3 1: iconst_1
istore 4
start local 4 2: aconst_null
astore 5
start local 5 3: StackMap locals: int int javafx.scene.control.Tab
StackMap stack:
iload 1
iload 4
isub
istore 6
start local 6 4: iload 6
iflt 9
5: aload 0
iload 6
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
astore 7
start local 7 6: aload 7
ifnull 9
aload 7
invokevirtual javafx.scene.control.Tab.isDisable:()Z
ifne 9
7: aload 7
astore 5
8: goto 19
end local 7 9: StackMap locals: int
StackMap stack:
iload 1
iload 4
iadd
iconst_1
isub
istore 7
start local 7 10: iload 7
iload 3
if_icmpge 15
11: aload 0
iload 7
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
astore 8
start local 8 12: aload 8
ifnull 15
aload 8
invokevirtual javafx.scene.control.Tab.isDisable:()Z
ifne 15
13: aload 8
astore 5
14: goto 19
end local 8 15: StackMap locals: int
StackMap stack:
iload 6
ifge 17
iload 7
iload 3
if_icmplt 17
16: goto 19
17: StackMap locals:
StackMap stack:
iinc 4 1
end local 7 end local 6 18: goto 3
19: StackMap locals:
StackMap stack:
iload 2
ifeq 21
aload 5
ifnull 21
20: aload 0
aload 5
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.select:(Ljavafx/scene/control/Tab;)V
21: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljavafx/scene/control/TabPane$TabPaneSelectionModel;
0 22 1 tabIndex I
0 22 2 doSelect Z
1 22 3 tabCount I
2 22 4 i I
3 22 5 bestTab Ljavafx/scene/control/Tab;
4 18 6 downPos I
6 9 7 _tab Ljavafx/scene/control/Tab;
10 18 7 upPos I
12 15 8 _tab Ljavafx/scene/control/Tab;
MethodParameters:
Name Flags
tabIndex
doSelect
public void select(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast javafx.scene.control.Tab
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.select:(Ljavafx/scene/control/Tab;)V
return
LocalVariableTable:
Start End Slot Name Signature
protected java.lang.Object getModelItem(int);
descriptor: (I)Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getModelItem:(I)Ljavafx/scene/control/Tab;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void lambda$0(javafx.collections.ListChangeListener$Change);
descriptor: (Ljavafx/collections/ListChangeListener$Change;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: goto 12
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getRemoved:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: javafx.scene.control.TabPane$TabPaneSelectionModel javafx.collections.ListChangeListener$Change top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javafx.scene.control.Tab
astore 2
start local 2 3: aload 2
ifnull 8
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
aload 2
invokeinterface javafx.collections.ObservableList.contains:(Ljava/lang/Object;)Z
ifne 8
4: aload 2
invokevirtual javafx.scene.control.Tab.isSelected:()Z
ifeq 8
5: aload 2
iconst_0
invokevirtual javafx.scene.control.Tab.setSelected:(Z)V
6: aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getFrom:()I
istore 4
start local 4 7: aload 0
iload 4
iconst_1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.findNearestAvailableTab:(IZ)Ljavafx/scene/control/Tab;
pop
end local 4 end local 2 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 1
invokevirtual javafx.collections.ListChangeListener$Change.wasAdded:()Z
ifne 10
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.wasRemoved:()Z
ifeq 12
10: StackMap locals: javafx.scene.control.TabPane$TabPaneSelectionModel javafx.collections.ListChangeListener$Change
StackMap stack:
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedItem:()Ljava/lang/Object;
invokeinterface javafx.collections.ObservableList.indexOf:(Ljava/lang/Object;)I
if_icmpeq 12
11: aload 0
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedItem:()Ljava/lang/Object;
invokeinterface javafx.collections.ObservableList.indexOf:(Ljava/lang/Object;)I
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.clearAndSelect:(I)V
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.next:()Z
ifne 1
13: aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedIndex:()I
iconst_m1
if_icmpne 16
aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.getSelectedItem:()Ljava/lang/Object;
ifnonnull 16
aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.size:()I
ifle 16
14: aload 0
iconst_0
iconst_1
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.findNearestAvailableTab:(IZ)Ljavafx/scene/control/Tab;
pop
15: goto 18
StackMap locals:
StackMap stack:
16: aload 0
getfield javafx.scene.control.TabPane$TabPaneSelectionModel.tabPane:Ljavafx/scene/control/TabPane;
invokevirtual javafx.scene.control.TabPane.getTabs:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.isEmpty:()Z
ifeq 18
17: aload 0
invokevirtual javafx.scene.control.TabPane$TabPaneSelectionModel.clearSelection:()V
18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljavafx/scene/control/TabPane$TabPaneSelectionModel;
0 19 1 c Ljavafx/collections/ListChangeListener$Change<+Ljavafx/scene/control/Tab;>;
3 8 2 tab Ljavafx/scene/control/Tab;
7 8 4 tabIndex I
}
Signature: Ljavafx/scene/control/SingleSelectionModel<Ljavafx/scene/control/Tab;>;
SourceFile: "TabPane.java"
NestHost: javafx.scene.control.TabPane
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
TabPaneSelectionModel = javafx.scene.control.TabPane$TabPaneSelectionModel of javafx.scene.control.TabPane