class javafx.scene.control.ListView$ListViewFocusModel<T> extends javafx.scene.control.FocusModel<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.control.ListView$ListViewFocusModel
super_class: javafx.scene.control.FocusModel
{
private final javafx.scene.control.ListView<T> listView;
descriptor: Ljavafx/scene/control/ListView;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljavafx/scene/control/ListView<TT;>;
private int itemCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final javafx.beans.InvalidationListener itemsObserver;
descriptor: Ljavafx/beans/InvalidationListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javafx.collections.ListChangeListener<T> itemsContentListener;
descriptor: Ljavafx/collections/ListChangeListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljavafx/collections/ListChangeListener<TT;>;
private javafx.collections.WeakListChangeListener<T> weakItemsContentListener;
descriptor: Ljavafx/collections/WeakListChangeListener;
flags: (0x0002) ACC_PRIVATE
Signature: Ljavafx/collections/WeakListChangeListener<TT;>;
public void <init>(javafx.scene.control.ListView<T>);
descriptor: (Ljavafx/scene/control/ListView;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javafx.scene.control.FocusModel.<init>:()V
1: aload 0
iconst_0
putfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
2: aload 0
aload 0
invokedynamic onChanged(Ljavafx/scene/control/ListView$ListViewFocusModel;)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/ListView$ListViewFocusModel.lambda$0(Ljavafx/collections/ListChangeListener$Change;)V (7)
(Ljavafx/collections/ListChangeListener$Change;)V
putfield javafx.scene.control.ListView$ListViewFocusModel.itemsContentListener:Ljavafx/collections/ListChangeListener;
3: aload 0
4: new javafx.collections.WeakListChangeListener
dup
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.itemsContentListener:Ljavafx/collections/ListChangeListener;
invokespecial javafx.collections.WeakListChangeListener.<init>:(Ljavafx/collections/ListChangeListener;)V
putfield javafx.scene.control.ListView$ListViewFocusModel.weakItemsContentListener:Ljavafx/collections/WeakListChangeListener;
5: aload 1
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
ldc "ListView can not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: javafx.scene.control.ListView$ListViewFocusModel javafx.scene.control.ListView
StackMap stack:
aload 0
aload 1
putfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
8: aload 0
new javafx.scene.control.ListView$ListViewFocusModel$1
dup
aload 0
aload 1
invokespecial javafx.scene.control.ListView$ListViewFocusModel$1.<init>:(Ljavafx/scene/control/ListView$ListViewFocusModel;Ljavafx/scene/control/ListView;)V
putfield javafx.scene.control.ListView$ListViewFocusModel.itemsObserver:Ljavafx/beans/InvalidationListener;
9: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.itemsProperty:()Ljavafx/beans/property/ObjectProperty;
new javafx.beans.WeakInvalidationListener
dup
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.itemsObserver:Ljavafx/beans/InvalidationListener;
invokespecial javafx.beans.WeakInvalidationListener.<init>:(Ljavafx/beans/InvalidationListener;)V
invokevirtual javafx.beans.property.ObjectProperty.addListener:(Ljavafx/beans/InvalidationListener;)V
10: aload 1
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
ifnull 12
11: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.weakItemsContentListener:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.addListener:(Ljavafx/collections/ListChangeListener;)V
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateItemCount:()V
13: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateDefaultFocus:()V
14: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.focusedIndexProperty:()Ljavafx/beans/property/ReadOnlyIntegerProperty;
aload 1
invokedynamic invalidated(Ljavafx/scene/control/ListView;)Ljavafx/beans/InvalidationListener;
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/Observable;)V
javafx/scene/control/ListView$ListViewFocusModel.lambda$1(Ljavafx/scene/control/ListView;Ljavafx/beans/Observable;)V (6)
(Ljavafx/beans/Observable;)V
invokevirtual javafx.beans.property.ReadOnlyIntegerProperty.addListener:(Ljavafx/beans/InvalidationListener;)V
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
0 16 1 listView Ljavafx/scene/control/ListView<TT;>;
Signature: (Ljavafx/scene/control/ListView<TT;>;)V
MethodParameters:
Name Flags
listView final
private void updateItemsObserver(javafx.collections.ObservableList<T>, javafx.collections.ObservableList<T>);
descriptor: (Ljavafx/collections/ObservableList;Ljavafx/collections/ObservableList;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 1
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.weakItemsContentListener:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.removeListener:(Ljavafx/collections/ListChangeListener;)V
1: StackMap locals:
StackMap stack:
aload 2
ifnull 2
aload 2
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.weakItemsContentListener:Ljavafx/collections/WeakListChangeListener;
invokeinterface javafx.collections.ObservableList.addListener:(Ljavafx/collections/ListChangeListener;)V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateItemCount:()V
3: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateDefaultFocus:()V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
0 5 1 oldList Ljavafx/collections/ObservableList<TT;>;
0 5 2 newList Ljavafx/collections/ObservableList<TT;>;
Signature: (Ljavafx/collections/ObservableList<TT;>;Ljavafx/collections/ObservableList<TT;>;)V
MethodParameters:
Name Flags
oldList
newList
protected int getItemCount();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
protected T getModelItem();
descriptor: (I)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.isEmpty:()Z
ifeq 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
iload 1
iflt 2
iload 1
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
if_icmplt 3
StackMap locals:
StackMap stack:
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
iload 1
invokeinterface javafx.collections.ObservableList.get:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
0 4 1 index I
Signature: (I)TT;
MethodParameters:
Name Flags
index
private boolean isEmpty();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
iconst_m1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
private void updateItemCount();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
ifnonnull 3
1: aload 0
iconst_m1
putfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
astore 1
start local 1 4: aload 0
aload 1
ifnonnull 5
iconst_m1
goto 6
StackMap locals: javafx.scene.control.ListView$ListViewFocusModel java.util.List
StackMap stack: javafx.scene.control.ListView$ListViewFocusModel
5: aload 1
invokeinterface java.util.List.size:()I
StackMap locals: javafx.scene.control.ListView$ListViewFocusModel java.util.List
StackMap stack: javafx.scene.control.ListView$ListViewFocusModel int
6: putfield javafx.scene.control.ListView$ListViewFocusModel.itemCount:I
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
4 7 1 items Ljava/util/List<TT;>;
private void updateDefaultFocus();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_m1
istore 1
start local 1 1: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
ifnull 9
2: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getFocusedItem:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
aload 2
invokeinterface javafx.collections.ObservableList.indexOf:(Ljava/lang/Object;)I
istore 1
5: StackMap locals: int java.lang.Object
StackMap stack:
iload 1
iconst_m1
if_icmpne 9
6: aload 0
getfield javafx.scene.control.ListView$ListViewFocusModel.listView:Ljavafx/scene/control/ListView;
invokevirtual javafx.scene.control.ListView.getItems:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.size:()I
ifle 7
iconst_0
goto 8
StackMap locals:
StackMap stack:
7: iconst_m1
StackMap locals:
StackMap stack: int
8: istore 1
end local 2 9: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.focus:(I)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
1 11 1 newValueIndex I
3 9 2 focusedItem TT;
private void lambda$0(javafx.collections.ListChangeListener$Change);
descriptor: (Ljavafx/collections/ListChangeListener$Change;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateItemCount:()V
1: goto 24
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getFrom:()I
istore 2
start local 2 3: aload 1
invokevirtual javafx.collections.ListChangeListener$Change.wasReplaced:()Z
ifne 4
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getAddedSize:()I
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getItemCount:()I
if_icmpne 6
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.updateDefaultFocus:()V
5: return
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getFocusedIndex:()I
iconst_m1
if_icmpeq 7
iload 2
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getFocusedIndex:()I
if_icmple 8
7: StackMap locals:
StackMap stack:
return
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.reset:()V
9: iconst_0
istore 3
start local 3 10: iconst_0
istore 4
start local 4 11: iconst_0
istore 5
start local 5 12: iconst_0
istore 6
start local 6 13: goto 18
14: StackMap locals: javafx.scene.control.ListView$ListViewFocusModel javafx.collections.ListChangeListener$Change int int int int int
StackMap stack:
iload 3
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.wasAdded:()Z
ior
istore 3
15: iload 4
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.wasRemoved:()Z
ior
istore 4
16: iload 5
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getAddedSize:()I
iadd
istore 5
17: iload 6
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.getRemovedSize:()I
iadd
istore 6
18: StackMap locals:
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.next:()Z
ifne 14
19: iload 3
ifeq 22
iload 4
ifne 22
20: aload 0
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getItemCount:()I
iconst_1
isub
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getFocusedIndex:()I
iload 5
iadd
invokestatic java.lang.Math.min:(II)I
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.focus:(I)V
21: goto 24
StackMap locals:
StackMap stack:
22: iload 3
ifne 24
iload 4
ifeq 24
23: aload 0
iconst_0
aload 0
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.getFocusedIndex:()I
iload 6
isub
invokestatic java.lang.Math.max:(II)I
invokevirtual javafx.scene.control.ListView$ListViewFocusModel.focus:(I)V
end local 6 end local 5 end local 4 end local 3 end local 2 24: StackMap locals: javafx.scene.control.ListView$ListViewFocusModel javafx.collections.ListChangeListener$Change
StackMap stack:
aload 1
invokevirtual javafx.collections.ListChangeListener$Change.next:()Z
ifne 2
25: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljavafx/scene/control/ListView$ListViewFocusModel<TT;>;
0 26 1 c Ljavafx/collections/ListChangeListener$Change<+TT;>;
3 24 2 from I
10 24 3 added Z
11 24 4 removed Z
12 24 5 addedSize I
13 24 6 removedSize I
private static void lambda$1(javafx.scene.control.ListView, javafx.beans.Observable);
descriptor: (Ljavafx/scene/control/ListView;Ljavafx/beans/Observable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
getstatic javafx.scene.AccessibleAttribute.FOCUS_ITEM:Ljavafx/scene/AccessibleAttribute;
invokevirtual javafx.scene.control.ListView.notifyAccessibleAttributeChanged:(Ljavafx/scene/AccessibleAttribute;)V
1: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 o Ljavafx/beans/Observable;
}
Signature: <T:Ljava/lang/Object;>Ljavafx/scene/control/FocusModel<TT;>;
SourceFile: "ListView.java"
NestHost: javafx.scene.control.ListView
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
ListViewFocusModel = javafx.scene.control.ListView$ListViewFocusModel of javafx.scene.control.ListView
javafx.scene.control.ListView$ListViewFocusModel$1