class sun.awt.motif.MChoicePeer extends sun.awt.motif.MComponentPeer implements java.awt.peer.ChoicePeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.motif.MChoicePeer
super_class: sun.awt.motif.MComponentPeer
{
boolean inUpCall;
descriptor: Z
flags: (0x0000)
native void create(sun.awt.motif.MComponentPeer);
descriptor: (Lsun/awt/motif/MComponentPeer;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
parent
native void pReshape(int, int, int, int);
descriptor: (IIII)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
x
y
width
height
native void pSelect(int, boolean);
descriptor: (IZ)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
index
init
native void appendItems(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
items
void initialize();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
checkcast java.awt.Choice
astore 1
start local 1 1: aload 1
invokevirtual java.awt.Choice.countItems:()I
istore 2
start local 2 2: iload 2
anewarray java.lang.String
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: sun.awt.motif.MChoicePeer java.awt.Choice int java.lang.String[] int
StackMap stack:
aload 3
iload 4
aload 1
iload 4
invokevirtual java.awt.Choice.getItem:(I)Ljava/lang/String;
aastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 2
if_icmplt 5
end local 4 8: iload 2
ifle 11
9: aload 0
aload 3
invokevirtual sun.awt.motif.MChoicePeer.appendItems:([Ljava/lang/String;)V
10: aload 0
aload 1
invokevirtual java.awt.Choice.getSelectedIndex:()I
iconst_1
invokevirtual sun.awt.motif.MChoicePeer.pSelect:(IZ)V
11: StackMap locals:
StackMap stack:
aload 0
invokespecial sun.awt.motif.MComponentPeer.initialize:()V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/awt/motif/MChoicePeer;
1 13 1 opt Ljava/awt/Choice;
2 13 2 itemCount I
3 13 3 items [Ljava/lang/String;
4 8 4 i I
public void <init>(java.awt.Choice);
descriptor: (Ljava/awt/Choice;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.motif.MComponentPeer.<init>:(Ljava/awt/Component;)V
1: aload 0
iconst_0
putfield sun.awt.motif.MChoicePeer.inUpCall:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/motif/MChoicePeer;
0 3 1 target Ljava/awt/Choice;
MethodParameters:
Name Flags
target
public boolean isFocusable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/motif/MChoicePeer;
public java.awt.Dimension getMinimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
invokevirtual java.awt.Component.getFont:()Ljava/awt/Font;
invokevirtual sun.awt.motif.MChoicePeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 1
start local 1 1: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
checkcast java.awt.Choice
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 2
invokevirtual java.awt.Choice.countItems:()I
istore 4
start local 4 4: goto 6
5: StackMap locals: sun.awt.motif.MChoicePeer java.awt.FontMetrics java.awt.Choice int int
StackMap stack:
aload 1
aload 2
iload 4
invokevirtual java.awt.Choice.getItem:(I)Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
iload 3
invokestatic java.lang.Math.max:(II)I
istore 3
6: StackMap locals:
StackMap stack:
iload 4
iinc 4 -1
ifgt 5
end local 4 7: new java.awt.Dimension
dup
bipush 32
iload 3
iadd
aload 1
invokevirtual java.awt.FontMetrics.getHeight:()I
bipush 8
iadd
bipush 15
invokestatic java.lang.Math.max:(II)I
iconst_5
iadd
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/motif/MChoicePeer;
1 8 1 fm Ljava/awt/FontMetrics;
2 8 2 c Ljava/awt/Choice;
3 8 3 w I
4 7 4 i I
public native void setFont(java.awt.Font);
descriptor: (Ljava/awt/Font;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
f
public void add(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
aload 1
iload 2
invokevirtual sun.awt.motif.MChoicePeer.addItem:(Ljava/lang/String;I)V
1: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
invokevirtual java.awt.Component.getBounds:()Ljava/awt/Rectangle;
astore 3
start local 3 2: aload 0
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
iconst_0
iconst_0
invokevirtual sun.awt.motif.MChoicePeer.reshape:(IIII)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/motif/MChoicePeer;
0 4 1 item Ljava/lang/String;
0 4 2 index I
2 4 3 r Ljava/awt/Rectangle;
MethodParameters:
Name Flags
item
index
public native void remove(int);
descriptor: (I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
index
public native void removeAll();
descriptor: ()V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native void addItem(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
item
index
public native void setBackground(java.awt.Color);
descriptor: (Ljava/awt/Color;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
c
public native void setForeground(java.awt.Color);
descriptor: (Ljava/awt/Color;)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
c
public void select(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MChoicePeer.inUpCall:Z
ifne 2
1: aload 0
iload 1
iconst_0
invokevirtual sun.awt.motif.MChoicePeer.pSelect:(IZ)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/motif/MChoicePeer;
0 3 1 index I
MethodParameters:
Name Flags
index
void notifySelection(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
checkcast java.awt.Choice
astore 2
start local 2 1: new java.awt.event.ItemEvent
dup
aload 2
sipush 701
2: aload 1
iconst_1
3: invokespecial java.awt.event.ItemEvent.<init>:(Ljava/awt/ItemSelectable;ILjava/lang/Object;I)V
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.awt.motif.MChoicePeer.postEvent:(Ljava/awt/AWTEvent;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/motif/MChoicePeer;
0 6 1 item Ljava/lang/String;
1 6 2 c Ljava/awt/Choice;
4 6 3 e Ljava/awt/event/ItemEvent;
MethodParameters:
Name Flags
item
void action(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
checkcast java.awt.Choice
astore 2
start local 2 1: aload 0
iconst_0
putfield sun.awt.motif.MChoicePeer.inUpCall:Z
2: aload 2
new sun.awt.motif.MChoicePeer$1
dup
aload 0
aload 2
iload 1
invokespecial sun.awt.motif.MChoicePeer$1.<init>:(Lsun/awt/motif/MChoicePeer;Ljava/awt/Choice;I)V
invokestatic sun.awt.motif.MToolkit.executeOnEventHandlerThread:(Ljava/lang/Object;Ljava/lang/Runnable;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/motif/MChoicePeer;
0 4 1 index I
1 4 2 c Ljava/awt/Choice;
MethodParameters:
Name Flags
index final
public void print(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
checkcast java.awt.Choice
astore 2
start local 2 1: aload 2
invokevirtual java.awt.Choice.size:()Ljava/awt/Dimension;
astore 3
start local 3 2: aload 2
invokevirtual java.awt.Choice.getBackground:()Ljava/awt/Color;
astore 4
start local 4 3: aload 2
invokevirtual java.awt.Choice.getForeground:()Ljava/awt/Color;
astore 5
start local 5 4: aload 1
aload 4
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
5: aload 1
iconst_2
iconst_2
aload 3
getfield java.awt.Dimension.width:I
iconst_1
isub
aload 3
getfield java.awt.Dimension.height:I
iconst_1
isub
invokevirtual java.awt.Graphics.fillRect:(IIII)V
6: aload 0
aload 1
aload 4
iconst_1
iconst_1
aload 3
getfield java.awt.Dimension.width:I
iconst_2
isub
aload 3
getfield java.awt.Dimension.height:I
iconst_2
isub
iconst_1
invokevirtual sun.awt.motif.MChoicePeer.draw3DRect:(Ljava/awt/Graphics;Ljava/awt/Color;IIIIZ)V
7: aload 0
aload 1
aload 4
aload 3
getfield java.awt.Dimension.width:I
bipush 18
isub
aload 3
getfield java.awt.Dimension.height:I
iconst_2
idiv
iconst_3
isub
bipush 10
bipush 6
iconst_1
invokevirtual sun.awt.motif.MChoicePeer.draw3DRect:(Ljava/awt/Graphics;Ljava/awt/Color;IIIIZ)V
8: aload 1
aload 5
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
9: aload 1
aload 2
invokevirtual java.awt.Choice.getFont:()Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
10: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 6
start local 6 11: aload 2
invokevirtual java.awt.Choice.getSelectedItem:()Ljava/lang/String;
astore 7
start local 7 12: aload 7
ifnonnull 14
13: ldc ""
astore 7
14: StackMap locals: sun.awt.motif.MChoicePeer java.awt.Graphics java.awt.Choice java.awt.Dimension java.awt.Color java.awt.Color java.awt.FontMetrics java.lang.String
StackMap stack:
aload 7
ldc ""
if_acmpeq 16
15: aload 1
aload 7
iconst_5
aload 3
getfield java.awt.Dimension.height:I
aload 6
invokevirtual java.awt.FontMetrics.getMaxAscent:()I
iadd
aload 6
invokevirtual java.awt.FontMetrics.getMaxDescent:()I
isub
iconst_2
idiv
invokevirtual java.awt.Graphics.drawString:(Ljava/lang/String;II)V
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.motif.MChoicePeer.target:Ljava/awt/Component;
aload 1
invokevirtual java.awt.Component.print:(Ljava/awt/Graphics;)V
17: return
end local 7 end local 6 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 18 0 this Lsun/awt/motif/MChoicePeer;
0 18 1 g Ljava/awt/Graphics;
1 18 2 ch Ljava/awt/Choice;
2 18 3 d Ljava/awt/Dimension;
3 18 4 bg Ljava/awt/Color;
4 18 5 fg Ljava/awt/Color;
11 18 6 fm Ljava/awt/FontMetrics;
12 18 7 lbl Ljava/lang/String;
MethodParameters:
Name Flags
g
public java.awt.Dimension minimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.motif.MChoicePeer.getMinimumSize:()Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/motif/MChoicePeer;
protected void disposeImpl();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.motif.MChoicePeer.freeNativeData:()V
1: aload 0
invokespecial sun.awt.motif.MComponentPeer.disposeImpl:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/motif/MChoicePeer;
private native void freeNativeData();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
}
SourceFile: "MChoicePeer.java"
NestMembers:
sun.awt.motif.MChoicePeer$1
InnerClasses:
sun.awt.motif.MChoicePeer$1