org.PingOO.DLAI.lib.PWidget
Class PInputPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.PingOO.DLAI.lib.PWidget.PPanel
                                |
                                +--org.PingOO.DLAI.lib.PWidget.PInputPanel
Direct Known Subclasses:
Configure.ConfigurePanel, LoginWindow.insidePanel, POptionPane.InsidePanel, PPM.AboutInternalFrame.InsidePanel

public class PInputPanel
extends PPanel

A basic panel with multiple buttons, that can be used to create user interface.

Since:
PingOO 2.0
Version:
2.0
Author:
Fabrice Bouyé (bouye@cur-archamps.fr)
See Also:
PPanel, PComponent, Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardBinding, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
protected static java.lang.String APPLY_BUTTON
          Defines a key identifier for the "Apply" button.
private  PPanel buttonPanel
          The inner panel in wich are store the buttons.
private  java.util.Hashtable buttonTable
          This Hastable contains the basic buttons of the panel (eg : "Ok", "Apply", "Reset", "Cancel", "Help").
protected static java.lang.String CANCEL_BUTTON
          Defines a key identifier for the "Exit" button.
protected static java.lang.String CLOSE_BUTTON
          Defines a key identifier for the "Close" button.
static int CLOSE_ONLY_OPTION
          Defines an option with only the "Close" button.
static int CLOSE_OPTION
          Defines an option with only the "Close" and "Help" buttons.
static java.lang.String EAST_ORIENTATION
          Defines the orientation for the buttons.
static int EMPTY_OPTION
          Defines an option with no button.
static int FULL_OPTION
          Defines an option with all buttons (in this case "Cancel" replaces "Close").
protected static java.lang.String HELP_BUTTON
          Defines a key identifier for the "Help" button.
static int HELP_ONLY_OPTION
          Defines an option with only the "Help" button.
protected  javax.swing.JComponent innerPanel
          The inner panel in wich the sub-classes can build their appli.
protected static java.lang.String NO_BUTTON
          Defines a key identifier for the "No" button.
static java.lang.String NORTH_ORIENTATION
          Defines the orientation for the buttons.
static int OK_APPLY_CANCEL_OPTION
          Defines an option with only the "Ok", "Apply, "Cancel", and "Help" buttons.
static int OK_APPLY_OPTION
          Defines an option with only the "Ok", "Apply" and "Help" buttons.
static int OK_APPLY_RESET_OPTION
          Defines an option with only the "Ok", "Apply, "Reset" and "Help" buttons.
protected static java.lang.String OK_BUTTON
          Defines a key identifier for the "Ok" button.
static int OK_CANCEL_ONLY_OPTION
          Defines an option with only the "Ok", "Cancel" and "Help" buttons.
static int OK_CANCEL_OPTION
          Defines an option with only the "Ok", "Cancel" and "Help" buttons.
static int OK_ONLY_OPTION
          Defines an option with only the "Ok" button.
static int OK_OPTION
          Defines an option with only the "Ok" and "Help" buttons.
static int OK_RESET_CANCEL_OPTION
          Defines an option with only the "Ok", Reset", "Cancel" and "Help" buttons.
static int OK_RESET_OPTION
          Defines an option with only the "Ok", "Reset" and "Help" buttons.
protected static java.lang.String RESET_BUTTON
          Defines a key identifier for the "Reset" button.
static java.lang.String SOUTH_ORIENTATION
          Defines the orientation for the buttons.
static java.lang.String WEST_ORIENTATION
          Defines the orientation for the buttons.
protected static java.lang.String YES_BUTTON
          Defines a key identifier for the "Yes" button.
static int YES_NO_CANCEL_OPTION
          Defines an option with only the "Yes", "No" and "Cancel" buttons (no help button) for confirmation dialog.
static int YES_NO_OPTION
          Defines an option with only the "Yes" and "No" buttons (no help button) for confirmation dialog.
 
Fields inherited from class org.PingOO.DLAI.lib.PWidget.PPanel
DEFAULT_LAYOUT, manager, module, toolTipKey
 
Fields inherited from class javax.swing.JPanel
defaultLayout, uiClassID
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, alignmentX, alignmentY, ANCESTOR_USING_BUFFER, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, flags, HAS_FOCUS, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, uiClassID, UNDEFINED_CONDITION, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
PInputPanel()
          Creates a new PInputPanel instance with all buttons.
PInputPanel(int option)
          Creates a new PInputPanel instance.
PInputPanel(int option, javax.swing.JComponent component)
          Creates a new PInputPanel instance.
PInputPanel(int option, java.lang.String orientation)
          Creates a new PInputPanel instance.
PInputPanel(javax.swing.JComponent component)
          Creates a new PInputPanel instance.
PInputPanel(java.lang.String toolTipKey)
          Creates a new PInputPanel instance with all buttons and a tool tip.
PInputPanel(java.lang.String toolTipKey, java.lang.String module)
          Creates a new PInputPanel instance and a tool tip plus the module where are stored the resources.
PInputPanel(java.lang.String toolTipKey, java.lang.String module, int option)
          Creates a new PInputPanel instance.
PInputPanel(java.lang.String toolTipKey, java.lang.String module, int option, javax.swing.JComponent component)
          Creates a new PInputPanel instance.
PInputPanel(java.lang.String toolTipKey, java.lang.String module, int option, java.lang.String orientation)
          Creates a new PInputPanel instance.
PInputPanel(java.lang.String toolTipKey, java.lang.String module, int option, java.lang.String orientation, javax.swing.JComponent component)
          Creates a new PInputPanel instance.
 
Method Summary
 java.awt.Component add(java.awt.Component comp)
          Adds the specified component to the end of this container.
 java.awt.Component add(java.awt.Component comp, int index)
          Adds the specified component to this container at the given position.
 void add(java.awt.Component comp, java.lang.Object constraints)
          Adds the specified component to the end of this container.
 void add(java.awt.Component comp, java.lang.Object constraints, int index)
          Adds the specified component to this container with the specified constraints at the specified index.
 java.awt.Component add(java.lang.String name, java.awt.Component comp)
          Adds the specified component to this container.
 void addButton(javax.swing.JButton button)
          Add a button on the panel via a convienient method.
 void addButton(java.lang.String buttonKey, javax.swing.JButton button)
          Add a button on the panel.
 void apply()
          Action to execute when the "Apply" button is clicked.
 void cancel()
          Action to execute when the "Cancel" button is clicked.
 void close()
          Action to execute when the "Close" button is clicked.
 javax.swing.JButton getButton(java.lang.String buttonKey)
          Returns a button from the panel.
 java.awt.Container getContentPane()
          Returns the contentPane object for this input panel.
 void help()
          Action to execute when the "Help" button is clicked.
 void no()
          Action to execute when the "No" button is clicked.
 void ok()
          Action to execute when the "Ok" button is clicked.
 void remove(java.awt.Component comp)
          Removes the specified component from this container.
 void remove(int index)
          Removes the component, specified by index, from this container.
 void remove(java.awt.MenuComponent popup)
          Removes the specified popup menu from the component.
 void removeAll()
          Removes all the components from this container.
 void removeAllButtons()
          Removes all buttons from the panel.
 void removeButton(java.lang.String buttonKey)
          Removes a button from the panel.
 void reset()
          Action to execute when the "Reset" button is clicked.
 void yes()
          Action to execute when the "Yes" button is clicked.
 
Methods inherited from class org.PingOO.DLAI.lib.PWidget.PPanel
getManager, getModule, getTextKey, getToolTipKey, setLocalizedText, setLocalizedToolTipText, setManager, setModule, updateFont, updateLanguage, updateLanguage
 
Methods inherited from class javax.swing.JPanel
, getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, bindingForKeyStroke, computeVisibleRect, computeVisibleRect, contains, createToolTip, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, keyboardBindings, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paintWithBuffer, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

OK_BUTTON

protected static final java.lang.String OK_BUTTON
Defines a key identifier for the "Ok" button.

APPLY_BUTTON

protected static final java.lang.String APPLY_BUTTON
Defines a key identifier for the "Apply" button.

RESET_BUTTON

protected static final java.lang.String RESET_BUTTON
Defines a key identifier for the "Reset" button.

CANCEL_BUTTON

protected static final java.lang.String CANCEL_BUTTON
Defines a key identifier for the "Exit" button.

CLOSE_BUTTON

protected static final java.lang.String CLOSE_BUTTON
Defines a key identifier for the "Close" button.

HELP_BUTTON

protected static final java.lang.String HELP_BUTTON
Defines a key identifier for the "Help" button.

YES_BUTTON

protected static final java.lang.String YES_BUTTON
Defines a key identifier for the "Yes" button.

NO_BUTTON

protected static final java.lang.String NO_BUTTON
Defines a key identifier for the "No" button.

EMPTY_OPTION

public static final int EMPTY_OPTION
Defines an option with no button.

HELP_ONLY_OPTION

public static final int HELP_ONLY_OPTION
Defines an option with only the "Help" button.

OK_ONLY_OPTION

public static final int OK_ONLY_OPTION
Defines an option with only the "Ok" button.

OK_OPTION

public static final int OK_OPTION
Defines an option with only the "Ok" and "Help" buttons.

OK_APPLY_OPTION

public static final int OK_APPLY_OPTION
Defines an option with only the "Ok", "Apply" and "Help" buttons.

OK_APPLY_RESET_OPTION

public static final int OK_APPLY_RESET_OPTION
Defines an option with only the "Ok", "Apply, "Reset" and "Help" buttons.

OK_APPLY_CANCEL_OPTION

public static final int OK_APPLY_CANCEL_OPTION
Defines an option with only the "Ok", "Apply, "Cancel", and "Help" buttons.

OK_RESET_OPTION

public static final int OK_RESET_OPTION
Defines an option with only the "Ok", "Reset" and "Help" buttons.

OK_RESET_CANCEL_OPTION

public static final int OK_RESET_CANCEL_OPTION
Defines an option with only the "Ok", Reset", "Cancel" and "Help" buttons.

OK_CANCEL_OPTION

public static final int OK_CANCEL_OPTION
Defines an option with only the "Ok", "Cancel" and "Help" buttons.

OK_CANCEL_ONLY_OPTION

public static final int OK_CANCEL_ONLY_OPTION
Defines an option with only the "Ok", "Cancel" and "Help" buttons.

CLOSE_ONLY_OPTION

public static final int CLOSE_ONLY_OPTION
Defines an option with only the "Close" button.

CLOSE_OPTION

public static final int CLOSE_OPTION
Defines an option with only the "Close" and "Help" buttons.

YES_NO_OPTION

public static final int YES_NO_OPTION
Defines an option with only the "Yes" and "No" buttons (no help button) for confirmation dialog.

YES_NO_CANCEL_OPTION

public static final int YES_NO_CANCEL_OPTION
Defines an option with only the "Yes", "No" and "Cancel" buttons (no help button) for confirmation dialog.

FULL_OPTION

public static final int FULL_OPTION
Defines an option with all buttons (in this case "Cancel" replaces "Close").

NORTH_ORIENTATION

public static final java.lang.String NORTH_ORIENTATION
Defines the orientation for the buttons.

EAST_ORIENTATION

public static final java.lang.String EAST_ORIENTATION
Defines the orientation for the buttons.

SOUTH_ORIENTATION

public static final java.lang.String SOUTH_ORIENTATION
Defines the orientation for the buttons.

WEST_ORIENTATION

public static final java.lang.String WEST_ORIENTATION
Defines the orientation for the buttons.

buttonTable

private final java.util.Hashtable buttonTable
This Hastable contains the basic buttons of the panel (eg : "Ok", "Apply", "Reset", "Cancel", "Help").

innerPanel

protected javax.swing.JComponent innerPanel
The inner panel in wich the sub-classes can build their appli.

buttonPanel

private final PPanel buttonPanel
The inner panel in wich are store the buttons.
Constructor Detail

PInputPanel

public PInputPanel()
Creates a new PInputPanel instance with all buttons.

PInputPanel

public PInputPanel(int option)
Creates a new PInputPanel instance.
Parameters:
option - One of the PInputPanel options to determine which button must be created.

PInputPanel

public PInputPanel(int option,
                   java.lang.String orientation)
Creates a new PInputPanel instance.
Parameters:
option - One of the PInputPanel options to determine which button must be created.
orientation - Determines where should linger the boutons. In case of a WEST or a SOUTH orientation the buttons will be vertically displayed.

PInputPanel

public PInputPanel(java.lang.String toolTipKey)
Creates a new PInputPanel instance with all buttons and a tool tip.
Parameters:
module - The key needed to retrieve the panel's tool tip.

PInputPanel

public PInputPanel(java.lang.String toolTipKey,
                   java.lang.String module)
Creates a new PInputPanel instance and a tool tip plus the module where are stored the resources.
Parameters:
toolTipKey - The key needed to retrieve the panel's tool tip.
module - The module where to find the resources.

PInputPanel

public PInputPanel(java.lang.String toolTipKey,
                   java.lang.String module,
                   int option)
Creates a new PInputPanel instance.
Parameters:
toolTipKey - The key needed to retrieve the panel's tool tip.
module - The module where to find the resources.
option - One of the PInputPanel options to determine which button must be created.

PInputPanel

public PInputPanel(java.lang.String toolTipKey,
                   java.lang.String module,
                   int option,
                   java.lang.String orientation)
Creates a new PInputPanel instance.
Parameters:
toolTipKey - The key needed to retrieve the panel's tool tip.
module - The module where to find the resources.
option - One of the PInputPanel options to determine which button must be created.
orientation - Determines where should linger the boutons. In case of a WEST or a SOUTH orientation the buttons will be vertically displayed.

PInputPanel

public PInputPanel(javax.swing.JComponent component)
Creates a new PInputPanel instance.
Parameters:
component - The component to add in the center of this dialog.

PInputPanel

public PInputPanel(int option,
                   javax.swing.JComponent component)
Creates a new PInputPanel instance.
Parameters:
option - One of the PInputPanel options to determine which button must be created.
component - The component to add in the center of this dialog.

PInputPanel

public PInputPanel(java.lang.String toolTipKey,
                   java.lang.String module,
                   int option,
                   javax.swing.JComponent component)
Creates a new PInputPanel instance.
Parameters:
toolTipKey - The key needed to retrieve the panel's tool tip.
module - The module where to find the resources.
option - One of the PInputPanel options to determine which button must be created.
component - The component to add in the center of this dialog.

PInputPanel

public PInputPanel(java.lang.String toolTipKey,
                   java.lang.String module,
                   int option,
                   java.lang.String orientation,
                   javax.swing.JComponent component)
Creates a new PInputPanel instance.
Parameters:
toolTipKey - The key needed to retrieve the panel's tool tip.
module - The module where to find the resources.
option - One of the PInputPanel options to determine which button must be created.
orientation - Determines where should linger the boutons. In case of a WEST or a SOUTH orientation the buttons will be displayed in a collumn.
component - The component to add in the center of this dialog.
Method Detail

add

public final java.awt.Component add(java.awt.Component comp)
Adds the specified component to the end of this container.
Same as getContenPane().add().
Parameters:
comp - The component to be added.
Returns:
The component argument.
Overrides:
add in class java.awt.Container

add

public final java.awt.Component add(java.awt.Component comp,
                                    int index)
Adds the specified component to this container at the given position.
Same as getContenPane().add().
Parameters:
comp - The component to be added.
index - The position at which to insert the component, or -1 to insert the component at the end.
Returns:
The component argument.
Overrides:
add in class java.awt.Container

add

public final void add(java.awt.Component comp,
                      java.lang.Object constraints)
Adds the specified component to the end of this container.
Same as getContenPane().add().
Parameters:
comp - The component to be added.
constraints - An object expressing layout contraints for this component.
Overrides:
add in class java.awt.Container

add

public final void add(java.awt.Component comp,
                      java.lang.Object constraints,
                      int index)
Adds the specified component to this container with the specified constraints at the specified index.
Same as getContenPane().add().
Parameters:
comp - The component to be added.
constraints - An object expressing layout contraints for this component.
index - The position at which to insert the component, or -1 to insert the component at the end.
Overrides:
add in class java.awt.Container

add

public final java.awt.Component add(java.lang.String name,
                                    java.awt.Component comp)
Adds the specified component to this container.
Same as getContenPane().add().
Parameters:
name - The name of the component.
comp - The component to be added.
Returns:
The component argument.
Overrides:
add in class java.awt.Container

remove

public final void remove(int index)
Removes the component, specified by index, from this container.
Same as getContenPane().remove().
Parameters:
index - The index of the component to be removed.
Overrides:
remove in class java.awt.Container

remove

public final void remove(java.awt.Component comp)
Removes the specified component from this container.
Same as getContenPane().remove().
Parameters:
comp - The component to be removed.
Overrides:
remove in class java.awt.Container

remove

public final void remove(java.awt.MenuComponent popup)
Removes the specified popup menu from the component.
Same as getContenPane().remove().
Parameters:
popup - The popup menu to be removed.
Overrides:
remove in class java.awt.Component

removeAll

public final void removeAll()
Removes all the components from this container.
Same as getContenPane().removeAll().
Overrides:
removeAll in class java.awt.Container

getButton

public final javax.swing.JButton getButton(java.lang.String buttonKey)
Returns a button from the panel.
Parameters:
buttonKey - The key used to find the button.
Returns:
A button from the panel, or null if there is no button defined by this key.

addButton

public final void addButton(javax.swing.JButton button)
                     throws java.lang.NullPointerException
Add a button on the panel via a convienient method.
This method uses the button's name, your must be sure the name of the button is not null.
Parameters:
button - The button to be added.
Throws:
java.lang.NullPointerException - If the button or if the name of the button is null.

addButton

public final void addButton(java.lang.String buttonKey,
                            javax.swing.JButton button)
                     throws java.lang.NullPointerException
Add a button on the panel.
Parameters:
buttonKey - The key used to find the button.
button - The button to be added.
Throws:
java.lang.NullPointerException - If the key or if the button is null.

removeButton

public final void removeButton(java.lang.String buttonKey)
Removes a button from the panel.
Parameters:
buttonKey - The key used to find the button.

removeAllButtons

public final void removeAllButtons()
Removes all buttons from the panel.

getContentPane

public java.awt.Container getContentPane()
Returns the contentPane object for this input panel.
Returns:
The contentPane object for this input panel.

ok

public void ok()
Action to execute when the "Ok" button is clicked.

apply

public void apply()
Action to execute when the "Apply" button is clicked.

reset

public void reset()
Action to execute when the "Reset" button is clicked.

cancel

public void cancel()
Action to execute when the "Cancel" button is clicked.

close

public void close()
Action to execute when the "Close" button is clicked.

help

public void help()
Action to execute when the "Help" button is clicked.

yes

public void yes()
Action to execute when the "Yes" button is clicked.

no

public void no()
Action to execute when the "No" button is clicked.