final class sun.awt.windows.WChoicePeer extends sun.awt.windows.WComponentPeer implements java.awt.peer.ChoicePeer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, 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 20
14: invokestatic sun.awt.AWTAccessor.getComponentAccessor:()Lsun/awt/AWTAccessor$ComponentAccessor;
15: aload 3
invokeinterface sun.awt.AWTAccessor$ComponentAccessor.getPeer:(Ljava/awt/Component;)Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.windows.WWindowPeer
16: astore 4
start local 4 17: aload 4
ifnull 20
18: 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;
19: 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 20: StackMap locals: java.awt.Window
StackMap stack:
aload 0
invokespecial sun.awt.windows.WComponentPeer.initialize:()V
21: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/awt/windows/WChoicePeer;
1 22 1 opt Ljava/awt/Choice;
2 22 2 itemCount I
4 12 3 items [Ljava/lang/String;
5 9 4 i I
13 22 3 parentWindow Ljava/awt/Window;
17 20 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 7
2: invokestatic sun.awt.AWTAccessor.getComponentAccessor:()Lsun/awt/AWTAccessor$ComponentAccessor;
3: aload 1
invokeinterface sun.awt.AWTAccessor$ComponentAccessor.getPeer:(Ljava/awt/Component;)Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.windows.WWindowPeer
4: astore 2
start local 2 5: aload 2
ifnull 7
6: 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 7: StackMap locals: java.awt.Window
StackMap stack:
aload 0
invokespecial sun.awt.windows.WComponentPeer.disposeImpl:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/awt/windows/WChoicePeer;
1 9 1 parentWindow Ljava/awt/Window;
5 7 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
native void closeList();
descriptor: ()V
flags: (0x0100) ACC_NATIVE
}
SourceFile: "WChoicePeer.java"
NestMembers:
sun.awt.windows.WChoicePeer$1 sun.awt.windows.WChoicePeer$2
InnerClasses:
public abstract ComponentAccessor = sun.awt.AWTAccessor$ComponentAccessor of sun.awt.AWTAccessor
sun.awt.windows.WChoicePeer$1
sun.awt.windows.WChoicePeer$2