class javax.swing.plaf.basic.BasicRootPaneUI$Actions extends sun.swing.UIAction
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.basic.BasicRootPaneUI$Actions
super_class: sun.swing.UIAction
{
public static final java.lang.String PRESS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "press"
public static final java.lang.String RELEASE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "release"
public static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "postPopup"
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.swing.UIAction.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/plaf/basic/BasicRootPaneUI$Actions;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.ActionEvent.getSource:()Ljava/lang/Object;
checkcast javax.swing.JRootPane
astore 2
start local 2 1: aload 2
invokevirtual javax.swing.JRootPane.getDefaultButton:()Ljavax/swing/JButton;
astore 3
start local 3 2: aload 0
invokevirtual javax.swing.plaf.basic.BasicRootPaneUI$Actions.getName:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
ldc "postPopup"
if_acmpne 19
4: invokestatic java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager:()Ljava/awt/KeyboardFocusManager;
5: invokevirtual java.awt.KeyboardFocusManager.getFocusOwner:()Ljava/awt/Component;
6: astore 5
start local 5 7: aload 5
instanceof javax.swing.JComponent
ifeq 23
8: aload 5
checkcast javax.swing.JComponent
astore 6
start local 6 9: aload 6
invokevirtual javax.swing.JComponent.getComponentPopupMenu:()Ljavax/swing/JPopupMenu;
astore 7
start local 7 10: aload 7
ifnull 23
11: aload 6
aconst_null
invokevirtual javax.swing.JComponent.getPopupLocation:(Ljava/awt/event/MouseEvent;)Ljava/awt/Point;
astore 8
start local 8 12: aload 8
ifnonnull 17
13: aload 6
invokevirtual javax.swing.JComponent.getVisibleRect:()Ljava/awt/Rectangle;
astore 9
start local 9 14: new java.awt.Point
dup
aload 9
getfield java.awt.Rectangle.x:I
aload 9
getfield java.awt.Rectangle.width:I
iconst_2
idiv
iadd
15: aload 9
getfield java.awt.Rectangle.y:I
aload 9
getfield java.awt.Rectangle.height:I
iconst_2
idiv
iadd
16: invokespecial java.awt.Point.<init>:(II)V
astore 8
end local 9 17: StackMap locals: javax.swing.plaf.basic.BasicRootPaneUI$Actions java.awt.event.ActionEvent javax.swing.JRootPane javax.swing.JButton java.lang.String java.awt.Component javax.swing.JComponent javax.swing.JPopupMenu java.awt.Point
StackMap stack:
aload 7
aload 5
aload 8
getfield java.awt.Point.x:I
aload 8
getfield java.awt.Point.y:I
invokevirtual javax.swing.JPopupMenu.show:(Ljava/awt/Component;II)V
end local 8 end local 7 end local 6 end local 5 18: goto 23
19: StackMap locals: javax.swing.plaf.basic.BasicRootPaneUI$Actions java.awt.event.ActionEvent javax.swing.JRootPane javax.swing.JButton java.lang.String
StackMap stack:
aload 3
ifnull 23
20: aload 3
invokestatic javax.swing.SwingUtilities.getRootPane:(Ljava/awt/Component;)Ljavax/swing/JRootPane;
aload 2
if_acmpne 23
21: aload 4
ldc "press"
if_acmpne 23
22: aload 3
bipush 20
invokevirtual javax.swing.JButton.doClick:(I)V
23: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljavax/swing/plaf/basic/BasicRootPaneUI$Actions;
0 24 1 evt Ljava/awt/event/ActionEvent;
1 24 2 root Ljavax/swing/JRootPane;
2 24 3 owner Ljavax/swing/JButton;
3 24 4 key Ljava/lang/String;
7 18 5 c Ljava/awt/Component;
9 18 6 src Ljavax/swing/JComponent;
10 18 7 jpm Ljavax/swing/JPopupMenu;
12 18 8 pt Ljava/awt/Point;
14 17 9 vis Ljava/awt/Rectangle;
MethodParameters:
Name Flags
evt
public boolean isEnabled(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.plaf.basic.BasicRootPaneUI$Actions.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "postPopup"
if_acmpne 15
2: invokestatic javax.swing.MenuSelectionManager.defaultManager:()Ljavax/swing/MenuSelectionManager;
3: invokevirtual javax.swing.MenuSelectionManager.getSelectedPath:()[Ljavax/swing/MenuElement;
4: astore 3
start local 3 5: aload 3
ifnull 7
aload 3
arraylength
ifeq 7
6: iconst_0
ireturn
7: StackMap locals: java.lang.String javax.swing.MenuElement[]
StackMap stack:
invokestatic java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager:()Ljava/awt/KeyboardFocusManager;
8: invokevirtual java.awt.KeyboardFocusManager.getFocusOwner:()Ljava/awt/Component;
9: astore 4
start local 4 10: aload 4
instanceof javax.swing.JComponent
ifeq 14
11: aload 4
checkcast javax.swing.JComponent
astore 5
start local 5 12: aload 5
invokevirtual javax.swing.JComponent.getComponentPopupMenu:()Ljavax/swing/JPopupMenu;
ifnull 13
iconst_1
ireturn
StackMap locals: java.awt.Component javax.swing.JComponent
StackMap stack:
13: iconst_0
ireturn
end local 5 14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 15: StackMap locals:
StackMap stack:
aload 1
ifnull 19
aload 1
instanceof javax.swing.JRootPane
ifeq 19
16: aload 1
checkcast javax.swing.JRootPane
invokevirtual javax.swing.JRootPane.getDefaultButton:()Ljavax/swing/JButton;
astore 3
start local 3 17: aload 3
ifnull 18
aload 3
invokevirtual javax.swing.JButton.getModel:()Ljavax/swing/ButtonModel;
invokeinterface javax.swing.ButtonModel.isEnabled:()Z
ifeq 18
iconst_1
ireturn
StackMap locals: javax.swing.JButton
StackMap stack:
18: iconst_0
ireturn
end local 3 19: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/swing/plaf/basic/BasicRootPaneUI$Actions;
0 20 1 sender Ljava/lang/Object;
1 20 2 key Ljava/lang/String;
5 15 3 elems [Ljavax/swing/MenuElement;
10 15 4 c Ljava/awt/Component;
12 14 5 src Ljavax/swing/JComponent;
17 19 3 owner Ljavax/swing/JButton;
MethodParameters:
Name Flags
sender
}
SourceFile: "BasicRootPaneUI.java"
NestHost: javax.swing.plaf.basic.BasicRootPaneUI
InnerClasses:
Actions = javax.swing.plaf.basic.BasicRootPaneUI$Actions of javax.swing.plaf.basic.BasicRootPaneUI