public class javafx.scene.control.ChoiceDialog<T> extends javafx.scene.control.Dialog<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javafx.scene.control.ChoiceDialog
super_class: javafx.scene.control.Dialog
{
private final javafx.scene.layout.GridPane grid;
descriptor: Ljavafx/scene/layout/GridPane;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javafx.scene.control.Label label;
descriptor: Ljavafx/scene/control/Label;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javafx.scene.control.ComboBox<T> comboBox;
descriptor: Ljavafx/scene/control/ComboBox;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljavafx/scene/control/ComboBox<TT;>;
private final T defaultChoice;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
invokespecial javafx.scene.control.ChoiceDialog.<init>:(Ljava/lang/Object;[Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
public void <init>(T, );
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
1: aload 2
ifnonnull 2
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
goto 3
StackMap locals: uninitialized-this java.lang.Object java.lang.Object[]
StackMap stack: uninitialized-this java.lang.Object
2: aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
StackMap locals: uninitialized-this java.lang.Object java.lang.Object[]
StackMap stack: uninitialized-this java.lang.Object java.util.List
3: invokespecial javafx.scene.control.ChoiceDialog.<init>:(Ljava/lang/Object;Ljava/util/Collection;)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/ChoiceDialog<TT;>;
0 5 1 defaultChoice TT;
0 5 2 choices [Ljava/lang/Object;
Signature: (TT;[TT;)V
MethodParameters:
Name Flags
defaultChoice
choices
public void <init>(T, java.util.Collection<T>);
descriptor: (Ljava/lang/Object;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javafx.scene.control.Dialog.<init>:()V
1: aload 0
invokevirtual javafx.scene.control.ChoiceDialog.getDialogPane:()Ljavafx/scene/control/DialogPane;
astore 3
start local 3 2: aload 0
new javafx.scene.layout.GridPane
dup
invokespecial javafx.scene.layout.GridPane.<init>:()V
putfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
3: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
ldc 10.0
invokevirtual javafx.scene.layout.GridPane.setHgap:(D)V
4: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
ldc 1.7976931348623157E308
invokevirtual javafx.scene.layout.GridPane.setMaxWidth:(D)V
5: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
getstatic javafx.geometry.Pos.CENTER_LEFT:Ljavafx/geometry/Pos;
invokevirtual javafx.scene.layout.GridPane.setAlignment:(Ljavafx/geometry/Pos;)V
6: aload 0
aload 3
invokevirtual javafx.scene.control.DialogPane.getContentText:()Ljava/lang/String;
invokestatic javafx.scene.control.DialogPane.createContentLabel:(Ljava/lang/String;)Ljavafx/scene/control/Label;
putfield javafx.scene.control.ChoiceDialog.label:Ljavafx/scene/control/Label;
7: aload 0
getfield javafx.scene.control.ChoiceDialog.label:Ljavafx/scene/control/Label;
ldc -1.0
invokevirtual javafx.scene.control.Label.setPrefWidth:(D)V
8: aload 0
getfield javafx.scene.control.ChoiceDialog.label:Ljavafx/scene/control/Label;
invokevirtual javafx.scene.control.Label.textProperty:()Ljavafx/beans/property/StringProperty;
aload 3
invokevirtual javafx.scene.control.DialogPane.contentTextProperty:()Ljavafx/beans/property/StringProperty;
invokevirtual javafx.beans.property.StringProperty.bind:(Ljavafx/beans/value/ObservableValue;)V
9: aload 3
invokevirtual javafx.scene.control.DialogPane.contentTextProperty:()Ljavafx/beans/property/StringProperty;
aload 0
invokedynamic invalidated(Ljavafx/scene/control/ChoiceDialog;)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/ChoiceDialog.lambda$0(Ljavafx/beans/Observable;)V (7)
(Ljavafx/beans/Observable;)V
invokevirtual javafx.beans.property.StringProperty.addListener:(Ljavafx/beans/InvalidationListener;)V
10: aload 0
ldc "Dialog.confirm.title"
invokestatic com.sun.javafx.scene.control.skin.resources.ControlResources.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual javafx.scene.control.ChoiceDialog.setTitle:(Ljava/lang/String;)V
11: aload 3
ldc "Dialog.confirm.header"
invokestatic com.sun.javafx.scene.control.skin.resources.ControlResources.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual javafx.scene.control.DialogPane.setHeaderText:(Ljava/lang/String;)V
12: aload 3
invokevirtual javafx.scene.control.DialogPane.getStyleClass:()Ljavafx/collections/ObservableList;
ldc "choice-dialog"
invokeinterface javafx.collections.ObservableList.add:(Ljava/lang/Object;)Z
pop
13: aload 3
invokevirtual javafx.scene.control.DialogPane.getButtonTypes:()Ljavafx/collections/ObservableList;
iconst_2
anewarray javafx.scene.control.ButtonType
dup
iconst_0
getstatic javafx.scene.control.ButtonType.OK:Ljavafx/scene/control/ButtonType;
aastore
dup
iconst_1
getstatic javafx.scene.control.ButtonType.CANCEL:Ljavafx/scene/control/ButtonType;
aastore
invokeinterface javafx.collections.ObservableList.addAll:([Ljava/lang/Object;)Z
pop
14: aload 0
new javafx.scene.control.ComboBox
dup
invokespecial javafx.scene.control.ComboBox.<init>:()V
putfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
15: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
ldc 150.0
invokevirtual javafx.scene.control.ComboBox.setMinWidth:(D)V
16: aload 2
ifnull 18
17: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getItems:()Ljavafx/collections/ObservableList;
aload 2
invokeinterface javafx.collections.ObservableList.addAll:(Ljava/util/Collection;)Z
pop
18: StackMap locals: javafx.scene.control.ChoiceDialog java.lang.Object java.util.Collection javafx.scene.control.DialogPane
StackMap stack:
aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
ldc 1.7976931348623157E308
invokevirtual javafx.scene.control.ComboBox.setMaxWidth:(D)V
19: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
getstatic javafx.scene.layout.Priority.ALWAYS:Ljavafx/scene/layout/Priority;
invokestatic javafx.scene.layout.GridPane.setHgrow:(Ljavafx/scene/Node;Ljavafx/scene/layout/Priority;)V
20: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic javafx.scene.layout.GridPane.setFillWidth:(Ljavafx/scene/Node;Ljava/lang/Boolean;)V
21: aload 0
aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getItems:()Ljavafx/collections/ObservableList;
aload 1
invokeinterface javafx.collections.ObservableList.contains:(Ljava/lang/Object;)Z
ifeq 22
aload 1
goto 23
StackMap locals:
StackMap stack: javafx.scene.control.ChoiceDialog
22: aconst_null
StackMap locals: javafx.scene.control.ChoiceDialog java.lang.Object java.util.Collection javafx.scene.control.DialogPane
StackMap stack: javafx.scene.control.ChoiceDialog java.lang.Object
23: putfield javafx.scene.control.ChoiceDialog.defaultChoice:Ljava/lang/Object;
24: aload 1
ifnonnull 27
25: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getSelectionModel:()Ljavafx/scene/control/SingleSelectionModel;
invokevirtual javafx.scene.control.SingleSelectionModel.selectFirst:()V
26: goto 28
27: StackMap locals:
StackMap stack:
aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getSelectionModel:()Ljavafx/scene/control/SingleSelectionModel;
aload 1
invokevirtual javafx.scene.control.SingleSelectionModel.select:(Ljava/lang/Object;)V
28: StackMap locals:
StackMap stack:
aload 0
invokevirtual javafx.scene.control.ChoiceDialog.updateGrid:()V
29: aload 0
aload 0
invokedynamic call(Ljavafx/scene/control/ChoiceDialog;)Ljavafx/util/Callback;
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:
(Ljava/lang/Object;)Ljava/lang/Object;
javafx/scene/control/ChoiceDialog.lambda$1(Ljavafx/scene/control/ButtonType;)Ljava/lang/Object; (7)
(Ljavafx/scene/control/ButtonType;)Ljava/lang/Object;
invokevirtual javafx.scene.control.ChoiceDialog.setResultConverter:(Ljavafx/util/Callback;)V
30: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
0 31 1 defaultChoice TT;
0 31 2 choices Ljava/util/Collection<TT;>;
2 31 3 dialogPane Ljavafx/scene/control/DialogPane;
Signature: (TT;Ljava/util/Collection<TT;>;)V
MethodParameters:
Name Flags
defaultChoice
choices
public final T getSelectedItem();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getSelectionModel:()Ljavafx/scene/control/SingleSelectionModel;
invokevirtual javafx.scene.control.SingleSelectionModel.getSelectedItem:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
Signature: ()TT;
public final javafx.beans.property.ReadOnlyObjectProperty<T> selectedItemProperty();
descriptor: ()Ljavafx/beans/property/ReadOnlyObjectProperty;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getSelectionModel:()Ljavafx/scene/control/SingleSelectionModel;
invokevirtual javafx.scene.control.SingleSelectionModel.selectedItemProperty:()Ljavafx/beans/property/ReadOnlyObjectProperty;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
Signature: ()Ljavafx/beans/property/ReadOnlyObjectProperty<TT;>;
public final void setSelectedItem();
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getSelectionModel:()Ljavafx/scene/control/SingleSelectionModel;
aload 1
invokevirtual javafx.scene.control.SingleSelectionModel.select:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
0 2 1 item TT;
Signature: (TT;)V
MethodParameters:
Name Flags
item
public final javafx.collections.ObservableList<T> getItems();
descriptor: ()Ljavafx/collections/ObservableList;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.getItems:()Ljavafx/collections/ObservableList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
Signature: ()Ljavafx/collections/ObservableList<TT;>;
public final T getDefaultChoice();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.defaultChoice:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
Signature: ()TT;
private void updateGrid();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
invokevirtual javafx.scene.layout.GridPane.getChildren:()Ljavafx/collections/ObservableList;
invokeinterface javafx.collections.ObservableList.clear:()V
1: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
aload 0
getfield javafx.scene.control.ChoiceDialog.label:Ljavafx/scene/control/Label;
iconst_0
iconst_0
invokevirtual javafx.scene.layout.GridPane.add:(Ljavafx/scene/Node;II)V
2: aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
iconst_1
iconst_0
invokevirtual javafx.scene.layout.GridPane.add:(Ljavafx/scene/Node;II)V
3: aload 0
invokevirtual javafx.scene.control.ChoiceDialog.getDialogPane:()Ljavafx/scene/control/DialogPane;
aload 0
getfield javafx.scene.control.ChoiceDialog.grid:Ljavafx/scene/layout/GridPane;
invokevirtual javafx.scene.control.DialogPane.setContent:(Ljavafx/scene/Node;)V
4: aload 0
invokedynamic run(Ljavafx/scene/control/ChoiceDialog;)Ljava/lang/Runnable;
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:
()V
javafx/scene/control/ChoiceDialog.lambda$2()V (7)
()V
invokestatic javafx.application.Platform.runLater:(Ljava/lang/Runnable;)V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
private void lambda$0(javafx.beans.Observable);
descriptor: (Ljavafx/beans/Observable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javafx.scene.control.ChoiceDialog.updateGrid:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
0 1 1 o Ljavafx/beans/Observable;
private java.lang.Object lambda$1(javafx.scene.control.ButtonType);
descriptor: (Ljavafx/scene/control/ButtonType;)Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual javafx.scene.control.ButtonType.getButtonData:()Ljavafx/scene/control/ButtonBar$ButtonData;
StackMap locals:
StackMap stack: javafx.scene.control.ButtonBar$ButtonData
2: astore 2
start local 2 3: aload 2
getstatic javafx.scene.control.ButtonBar$ButtonData.OK_DONE:Ljavafx/scene/control/ButtonBar$ButtonData;
if_acmpne 4
aload 0
invokevirtual javafx.scene.control.ChoiceDialog.getSelectedItem:()Ljava/lang/Object;
goto 5
StackMap locals: javafx.scene.control.ButtonBar$ButtonData
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
5: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
0 6 1 dialogButton Ljavafx/scene/control/ButtonType;
3 6 2 data Ljavafx/scene/control/ButtonBar$ButtonData;
private void lambda$2();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.control.ChoiceDialog.comboBox:Ljavafx/scene/control/ComboBox;
invokevirtual javafx.scene.control.ComboBox.requestFocus:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/control/ChoiceDialog<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljavafx/scene/control/Dialog<TT;>;
SourceFile: "ChoiceDialog.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final ButtonData = javafx.scene.control.ButtonBar$ButtonData of javafx.scene.control.ButtonBar