|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.util.CommonButtons
public final class CommonButtons
A class to identify and create common buttons.
The buttons identified by CommonButtons
are:
CommonButtons
also provides the following button combinations:
There is also an identifier for specifying no buttons
. This
identifier might be used for creating a dialog that should not display any buttons
but instead only have the close button (usually an x) at the top.
Field Summary | |
---|---|
static int |
APPLY_BUTTON
Identifier for an "Apply" button. |
static int |
BROWSE_BUTTON
Identifier for a "Browse" button. |
static int |
CANCEL_BUTTON
Identifier for a "Cancel" button. |
static int |
CLOSE_BUTTON
Identifier for a "Close" button. |
static int |
HELP_BUTTON
Identifier for a "Help" button. |
static int |
NO_BUTTON
Identifier for a "No" button. |
static int |
NO_BUTTONS
Identifier for no buttons at all. |
static int |
OK_BUTTON
Identifier for an "OK" button. |
static int |
OK_CANCEL_APPLY_BUTTONS
Identifier for a combination of "OK", "Cancel" and "Apply" buttons. |
static int |
OK_CANCEL_BUTTONS
Identifier for a combination of "OK" and "Cancel" buttons. |
static java.lang.String |
RB_KEY
|
static int |
YES_BUTTON
Identifier for a "Yes" button. |
static int |
YES_NO_BUTTONS
Identifier for a combination of "Yes" and "No" buttons. |
static int |
YES_NO_CANCEL_BUTTONS
Identifier for a combination of "Yes", "No" and "Cancel" buttons. |
Method Summary | |
---|---|
static javax.swing.AbstractButton |
createButton(int id)
Creates a JButton for the specified button id. |
static javax.swing.AbstractButton[] |
createButtons(int buttonIds)
Creates an array of JButton 's for the specified button ids. |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final int OK_BUTTON
public static final int CANCEL_BUTTON
public static final int APPLY_BUTTON
public static final int HELP_BUTTON
public static final int YES_BUTTON
public static final int NO_BUTTON
public static final int CLOSE_BUTTON
public static final int BROWSE_BUTTON
public static final int NO_BUTTONS
public static final int OK_CANCEL_BUTTONS
public static final int OK_CANCEL_APPLY_BUTTONS
public static final int YES_NO_BUTTONS
public static final int YES_NO_CANCEL_BUTTONS
Method Detail |
---|
public static javax.swing.AbstractButton[] createButtons(int buttonIds)
JButton
's for the specified button ids.
buttonIds
- Identifies the buttons to create
public static javax.swing.AbstractButton createButton(int id)
JButton
for the specified button id.
id
- Identifies the button create
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |