public class javax.swing.JToggleButton$ToggleButtonModel extends javax.swing.DefaultButtonModel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.JToggleButton$ToggleButtonModel
super_class: javax.swing.DefaultButtonModel
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.DefaultButtonModel.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/JToggleButton$ToggleButtonModel;
public boolean isSelected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
iconst_2
iand
ifeq 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 Ljavax/swing/JToggleButton$ToggleButtonModel;
public void setSelected(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.getGroup:()Ljavax/swing/ButtonGroup;
astore 2
start local 2 1: aload 2
ifnull 4
2: aload 2
aload 0
iload 1
invokevirtual javax.swing.ButtonGroup.setSelected:(Ljavax/swing/ButtonModel;Z)V
3: aload 2
aload 0
invokevirtual javax.swing.ButtonGroup.isSelected:(Ljavax/swing/ButtonModel;)Z
istore 1
4: StackMap locals: javax.swing.ButtonGroup
StackMap stack:
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isSelected:()Z
iload 1
if_icmpne 6
5: return
6: StackMap locals:
StackMap stack:
iload 1
ifeq 9
7: aload 0
dup
getfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
iconst_2
ior
putfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
bipush -3
iand
putfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.fireStateChanged:()V
11: aload 0
12: new java.awt.event.ItemEvent
dup
aload 0
13: sipush 701
14: aload 0
15: aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isSelected:()Z
ifeq 16
iconst_1
goto 17
StackMap locals: javax.swing.JToggleButton$ToggleButtonModel int javax.swing.ButtonGroup
StackMap stack: javax.swing.JToggleButton$ToggleButtonModel new 12 new 12 javax.swing.JToggleButton$ToggleButtonModel int javax.swing.JToggleButton$ToggleButtonModel
16: iconst_2
17: StackMap locals: javax.swing.JToggleButton$ToggleButtonModel int javax.swing.ButtonGroup
StackMap stack: javax.swing.JToggleButton$ToggleButtonModel new 12 new 12 javax.swing.JToggleButton$ToggleButtonModel int javax.swing.JToggleButton$ToggleButtonModel int
invokespecial java.awt.event.ItemEvent.<init>:(Ljava/awt/ItemSelectable;ILjava/lang/Object;I)V
18: invokevirtual javax.swing.JToggleButton$ToggleButtonModel.fireItemStateChanged:(Ljava/awt/event/ItemEvent;)V
19: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/swing/JToggleButton$ToggleButtonModel;
0 20 1 b Z
1 20 2 group Ljavax/swing/ButtonGroup;
MethodParameters:
Name Flags
b
public void setPressed(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isPressed:()Z
iload 1
if_icmpeq 1
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isEnabled:()Z
ifne 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
iload 1
ifne 6
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isArmed:()Z
ifeq 6
3: aload 0
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isSelected:()Z
ifeq 4
iconst_0
goto 5
StackMap locals:
StackMap stack: javax.swing.JToggleButton$ToggleButtonModel
4: iconst_1
StackMap locals: javax.swing.JToggleButton$ToggleButtonModel int
StackMap stack: javax.swing.JToggleButton$ToggleButtonModel int
5: invokevirtual javax.swing.JToggleButton$ToggleButtonModel.setSelected:(Z)V
6: StackMap locals:
StackMap stack:
iload 1
ifeq 9
7: aload 0
dup
getfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
iconst_4
ior
putfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
bipush -5
iand
putfield javax.swing.JToggleButton$ToggleButtonModel.stateMask:I
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.fireStateChanged:()V
11: aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isPressed:()Z
ifne 26
aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.isArmed:()Z
ifeq 26
12: iconst_0
istore 2
start local 2 13: invokestatic java.awt.EventQueue.getCurrentEvent:()Ljava/awt/AWTEvent;
astore 3
start local 3 14: aload 3
instanceof java.awt.event.InputEvent
ifeq 17
15: aload 3
checkcast java.awt.event.InputEvent
invokevirtual java.awt.event.InputEvent.getModifiers:()I
istore 2
16: goto 19
StackMap locals: int java.awt.AWTEvent
StackMap stack:
17: aload 3
instanceof java.awt.event.ActionEvent
ifeq 19
18: aload 3
checkcast java.awt.event.ActionEvent
invokevirtual java.awt.event.ActionEvent.getModifiers:()I
istore 2
19: StackMap locals:
StackMap stack:
aload 0
20: new java.awt.event.ActionEvent
dup
aload 0
sipush 1001
21: aload 0
invokevirtual javax.swing.JToggleButton$ToggleButtonModel.getActionCommand:()Ljava/lang/String;
22: invokestatic java.awt.EventQueue.getMostRecentEventTime:()J
23: iload 2
24: invokespecial java.awt.event.ActionEvent.<init>:(Ljava/lang/Object;ILjava/lang/String;JI)V
25: invokevirtual javax.swing.JToggleButton$ToggleButtonModel.fireActionPerformed:(Ljava/awt/event/ActionEvent;)V
end local 3 end local 2 26: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljavax/swing/JToggleButton$ToggleButtonModel;
0 27 1 b Z
13 26 2 modifiers I
14 26 3 currentEvent Ljava/awt/AWTEvent;
MethodParameters:
Name Flags
b
}
SourceFile: "JToggleButton.java"
NestHost: javax.swing.JToggleButton
InnerClasses:
public ToggleButtonModel = javax.swing.JToggleButton$ToggleButtonModel of javax.swing.JToggleButton