| Modifier and Type | Class and Description |
|---|---|
| private class | ServiceDialog.
The "Appearance" tab. |
| private class | |
| private class | |
| private class | ServiceDialog.
The "General" tab. |
| private static class | ServiceDialog.
A special widget that groups a JRadioButton with an associated icon, placed to the left of the radio button. |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | ServiceDialog.
The "Page Setup" tab. |
| private class | |
| private class | |
| private class | |
| private class | |
| private static class | ServiceDialog.
Similar in functionality to the default JFileChooser, except this chooser will pop up a "Do you want to overwrite..." dialog if the user selects a file that already exists. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static Class | _keyEventClazz
Returns the mnemonic as a KeyEvent.VK constant from the resource. |
| public static final int | APPROVE
Approve print status (user activated "Print" or "OK"). |
| private HashPrintRequestAttributeSet | |
| private PrintRequestAttributeSet | |
| private JButton | |
| private JButton | |
| public static final int | CANCEL
Cancel print status (user activated "Cancel"); |
| private static final Insets | |
| private int | |
| private DocFlavor | |
| private boolean | |
| private ServiceDialog. | |
| private static ResourceBundle | |
| private static final Insets | |
| private ServiceDialog. | |
| private ServiceDialog. | |
| private ServiceDialog. | |
| private PrintService | |
| private PrintService[] | |
| private int | |
| private static final String | |
| private JTabbedPane | |
| public static final int | WAITING
Waiting print status (user response pending). |
| Access | Constructor and Description |
|---|---|
| public | ServiceDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, int defaultServiceIndex, DocFlavor flavor, PrintRequestAttributeSet attributes, Window window)
Constructor for the "standard" print dialog (containing all relevant tabs) |
| public | ServiceDialog(GraphicsConfiguration gc, int x, int y, PrintService ps, DocFlavor flavor, PrintRequestAttributeSet attributes, Window window)
Constructor for the solitary "page setup" dialog |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent e)
Implements java. Invoked when an action occurs. |
| private static void | addToBG(AbstractButton button, Container cont, ButtonGroup bg)
Adds the AbstractButton to both the given ButtonGroup and Container |
| private static void | addToGB(Component comp, Container cont, GridBagLayout gridbag, GridBagConstraints constraints)
Sets the constraints for the GridBagLayout and adds the Component to the given Container |
| private static JButton | createButton(String key, ActionListener al)
Creates a new JButton and sets its text, mnemonic, and ActionListener |
| private static JCheckBox | createCheckBox(String key, ActionListener al)
Creates a new JCheckBox and sets its text, mnemonic, and ActionListener |
| private static JButton | createExitButton(String key, ActionListener al)
Creates a new JButton and sets its text, and ActionListener |
| private static JRadioButton | createRadioButton(String key, ActionListener al)
Creates a new JRadioButton and sets its text, mnemonic, and ActionListener |
| public void | dispose(int status)
Sets the current status flag for the dialog and disposes it (thus returning control of the parent frame back to the user) |
| public PrintRequestAttributeSet | |
| private static URL | |
| private static char | |
| public static String | |
| public PrintService | |
| public int | getStatus()
Returns the current status of the dialog (whether the user has selected the "Print" or "Cancel" button) |
| private static int | |
| private void | |
| pack-priv void | initPageDialog(int x, int y, PrintService ps, DocFlavor flavor, PrintRequestAttributeSet attributes)
Initialize "page setup" dialog |
| pack-priv void | initPrintDialog(int x, int y, PrintService[] services, int defaultServiceIndex, DocFlavor flavor, PrintRequestAttributeSet attributes)
Initialize print dialog. |
| public static void | |
| private static String | |
| private boolean | showFileChooser()
Displays a JFileChooser that allows the user to select the destination for "Print To File" |
| public static void | |
| private void |