class sun.print.ServiceDialog$CopiesPanel extends javax.swing.JPanel implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.print.ServiceDialog$CopiesPanel
super_class: javax.swing.JPanel
{
private final java.lang.String strTitle;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private javax.swing.SpinnerNumberModel snModel;
descriptor: Ljavax/swing/SpinnerNumberModel;
flags: (0x0002) ACC_PRIVATE
private javax.swing.JSpinner spinCopies;
descriptor: Ljavax/swing/JSpinner;
flags: (0x0002) ACC_PRIVATE
private javax.swing.JLabel lblCopies;
descriptor: Ljavax/swing/JLabel;
flags: (0x0002) ACC_PRIVATE
private javax.swing.JCheckBox cbCollate;
descriptor: Ljavax/swing/JCheckBox;
flags: (0x0002) ACC_PRIVATE
private boolean scSupported;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
final sun.print.ServiceDialog this$0;
descriptor: Lsun/print/ServiceDialog;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(sun.print.ServiceDialog);
descriptor: (Lsun/print/ServiceDialog;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 0: aload 0
aload 1
putfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
1: aload 0
invokespecial javax.swing.JPanel.<init>:()V
2: aload 0
ldc "border.copies"
invokestatic sun.print.ServiceDialog.getMsg:(Ljava/lang/String;)Ljava/lang/String;
putfield sun.print.ServiceDialog$CopiesPanel.strTitle:Ljava/lang/String;
3: new java.awt.GridBagLayout
dup
invokespecial java.awt.GridBagLayout.<init>:()V
astore 2
start local 2 4: new java.awt.GridBagConstraints
dup
invokespecial java.awt.GridBagConstraints.<init>:()V
astore 3
start local 3 5: aload 0
aload 2
invokevirtual sun.print.ServiceDialog$CopiesPanel.setLayout:(Ljava/awt/LayoutManager;)V
6: aload 0
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.strTitle:Ljava/lang/String;
invokestatic javax.swing.BorderFactory.createTitledBorder:(Ljava/lang/String;)Ljavax/swing/border/TitledBorder;
invokevirtual sun.print.ServiceDialog$CopiesPanel.setBorder:(Ljavax/swing/border/Border;)V
7: aload 3
iconst_2
putfield java.awt.GridBagConstraints.fill:I
8: aload 3
getstatic sun.print.ServiceDialog.compInsets:Ljava/awt/Insets;
putfield java.awt.GridBagConstraints.insets:Ljava/awt/Insets;
9: aload 0
new javax.swing.JLabel
dup
ldc "label.numcopies"
invokestatic sun.print.ServiceDialog.getMsg:(Ljava/lang/String;)Ljava/lang/String;
bipush 11
invokespecial javax.swing.JLabel.<init>:(Ljava/lang/String;I)V
putfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
10: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
ldc "label.numcopies"
invokestatic sun.print.ServiceDialog.getMnemonic:(Ljava/lang/String;)C
invokevirtual javax.swing.JLabel.setDisplayedMnemonic:(C)V
11: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
invokevirtual javax.swing.JLabel.getAccessibleContext:()Ljavax/accessibility/AccessibleContext;
12: ldc "label.numcopies"
invokestatic sun.print.ServiceDialog.getMsg:(Ljava/lang/String;)Ljava/lang/String;
13: invokevirtual javax.accessibility.AccessibleContext.setAccessibleName:(Ljava/lang/String;)V
14: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
aload 0
aload 2
aload 3
invokestatic sun.print.ServiceDialog.addToGB:(Ljava/awt/Component;Ljava/awt/Container;Ljava/awt/GridBagLayout;Ljava/awt/GridBagConstraints;)V
15: aload 0
new javax.swing.SpinnerNumberModel
dup
iconst_1
iconst_1
sipush 999
iconst_1
invokespecial javax.swing.SpinnerNumberModel.<init>:(IIII)V
putfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
16: aload 0
new javax.swing.JSpinner
dup
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
invokespecial javax.swing.JSpinner.<init>:(Ljavax/swing/SpinnerModel;)V
putfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
17: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
invokevirtual javax.swing.JLabel.setLabelFor:(Ljava/awt/Component;)V
18: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
invokevirtual javax.swing.JSpinner.getEditor:()Ljavax/swing/JComponent;
checkcast javax.swing.JSpinner$NumberEditor
invokevirtual javax.swing.JSpinner$NumberEditor.getTextField:()Ljavax/swing/JFormattedTextField;
iconst_3
invokevirtual javax.swing.JFormattedTextField.setColumns:(I)V
19: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
aload 0
invokevirtual javax.swing.JSpinner.addChangeListener:(Ljavax/swing/event/ChangeListener;)V
20: aload 3
iconst_0
putfield java.awt.GridBagConstraints.gridwidth:I
21: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
aload 0
aload 2
aload 3
invokestatic sun.print.ServiceDialog.addToGB:(Ljava/awt/Component;Ljava/awt/Container;Ljava/awt/GridBagLayout;Ljava/awt/GridBagConstraints;)V
22: aload 0
ldc "checkbox.collate"
aload 0
invokestatic sun.print.ServiceDialog.createCheckBox:(Ljava/lang/String;Ljava/awt/event/ActionListener;)Ljavax/swing/JCheckBox;
putfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
23: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
iconst_0
invokevirtual javax.swing.JCheckBox.setEnabled:(Z)V
24: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
aload 0
aload 2
aload 3
invokestatic sun.print.ServiceDialog.addToGB:(Ljava/awt/Component;Ljava/awt/Container;Ljava/awt/GridBagLayout;Ljava/awt/GridBagConstraints;)V
25: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/print/ServiceDialog$CopiesPanel;
4 26 2 gridbag Ljava/awt/GridBagLayout;
5 26 3 c Ljava/awt/GridBagConstraints;
MethodParameters:
Name Flags
this$0 final
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
invokevirtual javax.swing.JCheckBox.isSelected:()Z
ifeq 3
1: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.asCurrent:Ljavax/print/attribute/HashPrintRequestAttributeSet;
getstatic javax.print.attribute.standard.SheetCollate.COLLATED:Ljavax/print/attribute/standard/SheetCollate;
invokevirtual javax.print.attribute.HashPrintRequestAttributeSet.add:(Ljavax/print/attribute/Attribute;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.asCurrent:Ljavax/print/attribute/HashPrintRequestAttributeSet;
getstatic javax.print.attribute.standard.SheetCollate.UNCOLLATED:Ljavax/print/attribute/standard/SheetCollate;
invokevirtual javax.print.attribute.HashPrintRequestAttributeSet.add:(Ljavax/print/attribute/Attribute;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/print/ServiceDialog$CopiesPanel;
0 5 1 e Ljava/awt/event/ActionEvent;
MethodParameters:
Name Flags
e
public void stateChanged(javax.swing.event.ChangeEvent);
descriptor: (Ljavax/swing/event/ChangeEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.print.ServiceDialog$CopiesPanel.updateCollateCB:()V
1: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.asCurrent:Ljavax/print/attribute/HashPrintRequestAttributeSet;
new javax.print.attribute.standard.Copies
dup
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
invokevirtual javax.swing.SpinnerNumberModel.getNumber:()Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
invokespecial javax.print.attribute.standard.Copies.<init>:(I)V
invokevirtual javax.print.attribute.HashPrintRequestAttributeSet.add:(Ljavax/print/attribute/Attribute;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/print/ServiceDialog$CopiesPanel;
0 3 1 e Ljavax/swing/event/ChangeEvent;
MethodParameters:
Name Flags
e
private void updateCollateCB();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
invokevirtual javax.swing.SpinnerNumberModel.getNumber:()Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
istore 1
start local 1 1: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.isAWT:Z
ifeq 4
2: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
iconst_1
invokevirtual javax.swing.JCheckBox.setEnabled:(Z)V
3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
iload 1
iconst_1
if_icmple 5
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.scSupported:Z
ifeq 5
iconst_1
goto 6
StackMap locals:
StackMap stack: javax.swing.JCheckBox
5: iconst_0
StackMap locals: sun.print.ServiceDialog$CopiesPanel int
StackMap stack: javax.swing.JCheckBox int
6: invokevirtual javax.swing.JCheckBox.setEnabled:(Z)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/print/ServiceDialog$CopiesPanel;
1 8 1 num I
public void updateInfo();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=11, args_size=1
start local 0 0: ldc Ljavax/print/attribute/standard/Copies;
astore 1
start local 1 1: ldc Ljavax/print/attribute/standard/SheetCollate;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
iconst_0
putfield sun.print.ServiceDialog$CopiesPanel.scSupported:Z
4: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.psCurrent:Ljavax/print/PrintService;
aload 1
invokeinterface javax.print.PrintService.isAttributeCategorySupported:(Ljava/lang/Class;)Z
ifeq 6
5: iconst_1
istore 3
6: StackMap locals: java.lang.Class java.lang.Class int
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.psCurrent:Ljavax/print/PrintService;
7: aload 1
aconst_null
aconst_null
8: invokeinterface javax.print.PrintService.getSupportedAttributeValues:(Ljava/lang/Class;Ljavax/print/DocFlavor;Ljavax/print/attribute/AttributeSet;)Ljava/lang/Object;
checkcast javax.print.attribute.standard.CopiesSupported
9: astore 4
start local 4 10: aload 4
ifnonnull 12
11: new javax.print.attribute.standard.CopiesSupported
dup
iconst_1
sipush 999
invokespecial javax.print.attribute.standard.CopiesSupported.<init>:(II)V
astore 4
12: StackMap locals: javax.print.attribute.standard.CopiesSupported
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.asCurrent:Ljavax/print/attribute/HashPrintRequestAttributeSet;
aload 1
invokevirtual javax.print.attribute.HashPrintRequestAttributeSet.get:(Ljava/lang/Class;)Ljavax/print/attribute/Attribute;
checkcast javax.print.attribute.standard.Copies
astore 5
start local 5 13: aload 5
ifnonnull 17
14: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.psCurrent:Ljavax/print/PrintService;
aload 1
invokeinterface javax.print.PrintService.getDefaultAttributeValue:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.print.attribute.standard.Copies
astore 5
15: aload 5
ifnonnull 17
16: new javax.print.attribute.standard.Copies
dup
iconst_1
invokespecial javax.print.attribute.standard.Copies.<init>:(I)V
astore 5
17: StackMap locals: javax.print.attribute.standard.Copies
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.spinCopies:Ljavax/swing/JSpinner;
iload 3
invokevirtual javax.swing.JSpinner.setEnabled:(Z)V
18: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.lblCopies:Ljavax/swing/JLabel;
iload 3
invokevirtual javax.swing.JLabel.setEnabled:(Z)V
19: aload 4
invokevirtual javax.print.attribute.standard.CopiesSupported.getMembers:()[[I
astore 6
start local 6 20: aload 6
arraylength
ifle 24
aload 6
iconst_0
aaload
arraylength
ifle 24
21: aload 6
iconst_0
aaload
iconst_0
iaload
istore 7
start local 7 22: aload 6
iconst_0
aaload
iconst_1
iaload
istore 8
start local 8 23: goto 26
end local 8 end local 7 24: StackMap locals: int[][]
StackMap stack:
iconst_1
istore 7
start local 7 25: ldc 2147483647
istore 8
start local 8 26: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
new java.lang.Integer
dup
iload 7
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual javax.swing.SpinnerNumberModel.setMinimum:(Ljava/lang/Comparable;)V
27: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
new java.lang.Integer
dup
iload 8
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual javax.swing.SpinnerNumberModel.setMaximum:(Ljava/lang/Comparable;)V
28: aload 5
invokevirtual javax.print.attribute.standard.Copies.getValue:()I
istore 9
start local 9 29: iload 9
iload 7
if_icmplt 30
iload 9
iload 8
if_icmple 31
30: StackMap locals: int
StackMap stack:
iload 7
istore 9
31: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.snModel:Ljavax/swing/SpinnerNumberModel;
new java.lang.Integer
dup
iload 9
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual javax.swing.SpinnerNumberModel.setValue:(Ljava/lang/Object;)V
32: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.psCurrent:Ljavax/print/PrintService;
aload 2
invokeinterface javax.print.PrintService.isAttributeCategorySupported:(Ljava/lang/Class;)Z
ifeq 34
33: aload 0
iconst_1
putfield sun.print.ServiceDialog$CopiesPanel.scSupported:Z
34: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.asCurrent:Ljavax/print/attribute/HashPrintRequestAttributeSet;
aload 2
invokevirtual javax.print.attribute.HashPrintRequestAttributeSet.get:(Ljava/lang/Class;)Ljavax/print/attribute/Attribute;
checkcast javax.print.attribute.standard.SheetCollate
astore 10
start local 10 35: aload 10
ifnonnull 39
36: aload 0
getfield sun.print.ServiceDialog$CopiesPanel.this$0:Lsun/print/ServiceDialog;
getfield sun.print.ServiceDialog.psCurrent:Ljavax/print/PrintService;
aload 2
invokeinterface javax.print.PrintService.getDefaultAttributeValue:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.print.attribute.standard.SheetCollate
astore 10
37: aload 10
ifnonnull 39
38: getstatic javax.print.attribute.standard.SheetCollate.UNCOLLATED:Ljavax/print/attribute/standard/SheetCollate;
astore 10
39: StackMap locals: javax.print.attribute.standard.SheetCollate
StackMap stack:
aload 0
getfield sun.print.ServiceDialog$CopiesPanel.cbCollate:Ljavax/swing/JCheckBox;
aload 10
getstatic javax.print.attribute.standard.SheetCollate.COLLATED:Ljavax/print/attribute/standard/SheetCollate;
if_acmpne 40
iconst_1
goto 41
StackMap locals:
StackMap stack: javax.swing.JCheckBox
40: iconst_0
StackMap locals: sun.print.ServiceDialog$CopiesPanel java.lang.Class java.lang.Class int javax.print.attribute.standard.CopiesSupported javax.print.attribute.standard.Copies int[][] int int int javax.print.attribute.standard.SheetCollate
StackMap stack: javax.swing.JCheckBox int
41: invokevirtual javax.swing.JCheckBox.setSelected:(Z)V
42: aload 0
invokevirtual sun.print.ServiceDialog$CopiesPanel.updateCollateCB:()V
43: return
end local 10 end local 9 end local 8 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 44 0 this Lsun/print/ServiceDialog$CopiesPanel;
1 44 1 cpCategory Ljava/lang/Class;
2 44 2 scCategory Ljava/lang/Class;
3 44 3 cpSupported Z
10 44 4 cs Ljavax/print/attribute/standard/CopiesSupported;
13 44 5 cp Ljavax/print/attribute/standard/Copies;
20 44 6 members [[I
22 24 7 min I
25 44 7 min I
23 24 8 max I
26 44 8 max I
29 44 9 value I
35 44 10 sc Ljavax/print/attribute/standard/SheetCollate;
}
SourceFile: "ServiceDialog.java"
NestHost: sun.print.ServiceDialog
InnerClasses:
public NumberEditor = javax.swing.JSpinner$NumberEditor of javax.swing.JSpinner
private CopiesPanel = sun.print.ServiceDialog$CopiesPanel of sun.print.ServiceDialog