|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.quadrique.jbuildingblocks.gui.ButtonAreaBase
com.quadrique.jbuildingblocks.gui.ButtonArea
public class ButtonArea
This class implements a generic horizontal or vertical buttons area. It is typically used for the button area of dialogs...
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ButtonArea(boolean zIsHorizontal,
boolean zIsCentered)
constructor |
|
| Method Summary | |
|---|---|
JButton |
addButton(ActionBase zAction,
int zButtonId)
This method adds a button to the button area. |
void |
addButton(JButton zButton,
int zButtonId)
This method adds a button to the ButtonArea |
JButton |
addButton(String zLabel,
int zMnemonic,
String zToolTip,
ImageIcon zIcon,
int zButtonId)
This method adds a button to the ButtonArea |
void |
addEmptySpace(int zNbOfPixels)
add a fixed size empty space to the panel (e.g. |
| Methods inherited from class com.quadrique.jbuildingblocks.gui.ButtonAreaBase |
|---|
actionPerformed, addButtonSelectedEventListener, getButton, getNbOfButtons, removeButtonSelectedEventListener, setEnabled |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonArea(boolean zIsHorizontal,
boolean zIsCentered)
zIsHorizontal - true is the button area is horizontal,
false if it is verticalzIsCentered - if true, the buttons are centered accross
the full button area (i.e. the space between any two consecutive
buttons is the same).
| Method Detail |
|---|
public JButton addButton(String zLabel,
int zMnemonic,
String zToolTip,
ImageIcon zIcon,
int zButtonId)
zLabel - the label that is used for the button,zMnemonic - the menmonic to use for the button (e.g. KeyEvent.VK_P)zToolTip - the tooltip string that is used for the button,zIcon - an optional icon (use null if you don't want an icon)zButtonId - the identifier of the button (must be unique,
this routine does not check for identifier uniqueness).
The button identifier is used to determine which button has been
selected or to specify which button you want to access (e.g. to set
the focus or to enable/disable a specific button).
public void addButton(JButton zButton,
int zButtonId)
addButton in class ButtonAreaBasezButton - the button to addzButtonId - the identifier of the button (must be unique,
this routine does not check for identifier uniqueness).
The button identifier is used to determine which button has been
selected or to specify which button you want to access (e.g. to set
the focus or to enable/disable a specific button).
public JButton addButton(ActionBase zAction,
int zButtonId)
zAction - the ActionBase instance to use for the new buttonzButtonId - the identifier of the button (must be unique,
this routine does not check for identifier uniqueness).
The button identifier is used to determine which button has been
selected or to specify which button you want to access (e.g. to set
the focus or to enable/disable a specific button).
public void addEmptySpace(int zNbOfPixels)
zNbOfPixels - the number of pixels to use for the space
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||