class sun.awt.windows.WChoicePeer extends sun.awt.windows.WComponentPeer implements java.awt.peer.ChoicePeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.windows.WChoicePeer
super_class: sun.awt.windows.WComponentPeer
{
private java.awt.event.WindowListener windowListener;
descriptor: Ljava/awt/event/WindowListener;
flags: (0x0002) ACC_PRIVATE
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.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Choice
invokevirtual java.awt.Choice.getFont:()Ljava/awt/Font;
invokevirtual sun.awt.windows.WChoicePeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 1
start local 1 1: aload 0
getfield sun.awt.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Choice
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 2
invokevirtual java.awt.Choice.getItemCount:()I
istore 4
start local 4 4: goto 6
5: StackMap locals: sun.awt.windows.WChoicePeer 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 28
iload 3
iadd
aload 1
invokevirtual java.awt.FontMetrics.getHeight:()I
bipush 6
iadd
bipush 15
invokestatic java.lang.Math.max:(II)I
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/windows/WChoicePeer;
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 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/windows/WChoicePeer;
public native void select(int);
descriptor: (I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
index
public void add(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokevirtual sun.awt.windows.WChoicePeer.addItem:(Ljava/lang/String;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/windows/WChoicePeer;
0 2 1 item Ljava/lang/String;
0 2 2 index I
MethodParameters:
Name Flags
item
index
public boolean shouldClearRectBeforePaint();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/windows/WChoicePeer;
public native void removeAll();
descriptor: ()V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native void remove(int);
descriptor: (I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
index
public void addItem(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
iload 2
invokevirtual sun.awt.windows.WChoicePeer.addItems:([Ljava/lang/String;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/windows/WChoicePeer;
0 2 1 item Ljava/lang/String;
0 2 2 index I
MethodParameters:
Name Flags
item
index
public native void addItems(java.lang.String[], int);
descriptor: ([Ljava/lang/String;I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
items
index
public synchronized native void reshape(int, int, int, int);
descriptor: (IIII)V
flags: (0x0121) ACC_PUBLIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
x
y
width
height
void <init>(java.awt.Choice);
descriptor: (Ljava/awt/Choice;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.windows.WComponentPeer.<init>:(Ljava/awt/Component;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/windows/WChoicePeer;
0 2 1 target Ljava/awt/Choice;
MethodParameters:
Name Flags
target
native void create(sun.awt.windows.WComponentPeer);
descriptor: (Lsun/awt/windows/WComponentPeer;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
parent
void initialize();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.awt.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Choice
astore 1
start local 1 1: aload 1
invokevirtual java.awt.Choice.getItemCount:()I
istore 2
start local 2 2: iload 2
ifle 12
3: iload 2
anewarray java.lang.String
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 8
6: StackMap locals: sun.awt.windows.WChoicePeer 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
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 2
if_icmplt 6
end local 4 9: aload 0
aload 3
iconst_0
invokevirtual sun.awt.windows.WChoicePeer.addItems:([Ljava/lang/String;I)V
10: aload 1
invokevirtual java.awt.Choice.getSelectedIndex:()I
iflt 12
11: aload 0
aload 1
invokevirtual java.awt.Choice.getSelectedIndex:()I
invokevirtual sun.awt.windows.WChoicePeer.select:(I)V
end local 3 12: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokestatic sun.awt.SunToolkit.getContainingWindow:(Ljava/awt/Component;)Ljava/awt/Window;
astore 3
start local 3 13: aload 3
ifnull 18
14: aload 3
invokevirtual java.awt.Window.getPeer:()Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.windows.WWindowPeer
astore 4
start local 4 15: aload 4
ifnull 18
16: aload 0
new sun.awt.windows.WChoicePeer$1
dup
aload 0
invokespecial sun.awt.windows.WChoicePeer$1.<init>:(Lsun/awt/windows/WChoicePeer;)V
putfield sun.awt.windows.WChoicePeer.windowListener:Ljava/awt/event/WindowListener;
17: aload 4
aload 0
getfield sun.awt.windows.WChoicePeer.windowListener:Ljava/awt/event/WindowListener;
invokevirtual sun.awt.windows.WWindowPeer.addWindowListener:(Ljava/awt/event/WindowListener;)V
end local 4 18: StackMap locals: java.awt.Window
StackMap stack:
aload 0
invokespecial sun.awt.windows.WComponentPeer.initialize:()V
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/awt/windows/WChoicePeer;
1 20 1 opt Ljava/awt/Choice;
2 20 2 itemCount I
4 12 3 items [Ljava/lang/String;
5 9 4 i I
13 20 3 parentWindow Ljava/awt/Window;
15 18 4 wpeer Lsun/awt/windows/WWindowPeer;
protected void disposeImpl();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.awt.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokestatic sun.awt.SunToolkit.getContainingWindow:(Ljava/awt/Component;)Ljava/awt/Window;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
invokevirtual java.awt.Window.getPeer:()Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.windows.WWindowPeer
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 2
aload 0
getfield sun.awt.windows.WChoicePeer.windowListener:Ljava/awt/event/WindowListener;
invokevirtual sun.awt.windows.WWindowPeer.removeWindowListener:(Ljava/awt/event/WindowListener;)V
end local 2 5: StackMap locals: java.awt.Window
StackMap stack:
aload 0
invokespecial sun.awt.windows.WComponentPeer.disposeImpl:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/windows/WChoicePeer;
1 7 1 parentWindow Ljava/awt/Window;
3 5 2 wpeer Lsun/awt/windows/WWindowPeer;
void handleAction(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.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Choice
astore 2
start local 2 1: aload 2
new sun.awt.windows.WChoicePeer$2
dup
aload 0
aload 2
iload 1
invokespecial sun.awt.windows.WChoicePeer$2.<init>:(Lsun/awt/windows/WChoicePeer;Ljava/awt/Choice;I)V
invokestatic sun.awt.windows.WToolkit.executeOnEventHandlerThread:(Ljava/lang/Object;Ljava/lang/Runnable;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/windows/WChoicePeer;
0 3 1 index I
1 3 2 c Ljava/awt/Choice;
MethodParameters:
Name Flags
index final
int getDropDownHeight();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.awt.windows.WChoicePeer.target:Ljava/lang/Object;
checkcast java.awt.Choice
astore 1
start local 1 1: aload 0
aload 1
invokevirtual java.awt.Choice.getFont:()Ljava/awt/Font;
invokevirtual sun.awt.windows.WChoicePeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 2
start local 2 2: aload 1
invokevirtual java.awt.Choice.getItemCount:()I
bipush 8
invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 3: aload 2
invokevirtual java.awt.FontMetrics.getHeight:()I
iload 3
imul
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/windows/WChoicePeer;
1 4 1 c Ljava/awt/Choice;
2 4 2 fm Ljava/awt/FontMetrics;
3 4 3 maxItems I
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.windows.WChoicePeer.getMinimumSize:()Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/windows/WChoicePeer;
native void closeList();
descriptor: ()V
flags: (0x0100) ACC_NATIVE
}
SourceFile: "WChoicePeer.java"
NestMembers:
sun.awt.windows.WChoicePeer$1 sun.awt.windows.WChoicePeer$2
InnerClasses:
sun.awt.windows.WChoicePeer$1
sun.awt.windows.WChoicePeer$2