|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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
A basic panel with multiple buttons, that can be used to create user interface.
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 |
|
| 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 |
protected static final java.lang.String OK_BUTTON
protected static final java.lang.String APPLY_BUTTON
protected static final java.lang.String RESET_BUTTON
protected static final java.lang.String CANCEL_BUTTON
protected static final java.lang.String CLOSE_BUTTON
protected static final java.lang.String HELP_BUTTON
protected static final java.lang.String YES_BUTTON
protected static final java.lang.String NO_BUTTON
public static final int EMPTY_OPTION
public static final int HELP_ONLY_OPTION
public static final int OK_ONLY_OPTION
public static final int OK_OPTION
public static final int OK_APPLY_OPTION
public static final int OK_APPLY_RESET_OPTION
public static final int OK_APPLY_CANCEL_OPTION
public static final int OK_RESET_OPTION
public static final int OK_RESET_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
public static final int OK_CANCEL_ONLY_OPTION
public static final int CLOSE_ONLY_OPTION
public static final int CLOSE_OPTION
public static final int YES_NO_OPTION
public static final int YES_NO_CANCEL_OPTION
public static final int FULL_OPTION
public static final java.lang.String NORTH_ORIENTATION
public static final java.lang.String EAST_ORIENTATION
public static final java.lang.String SOUTH_ORIENTATION
public static final java.lang.String WEST_ORIENTATION
private final java.util.Hashtable buttonTable
protected javax.swing.JComponent innerPanel
private final PPanel buttonPanel
| Constructor Detail |
public PInputPanel()
public PInputPanel(int option)
option - One of the PInputPanel options to determine which button must be created.
public PInputPanel(int option,
java.lang.String orientation)
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.public PInputPanel(java.lang.String toolTipKey)
module - The key needed to retrieve the panel's tool tip.
public PInputPanel(java.lang.String toolTipKey,
java.lang.String module)
toolTipKey - The key needed to retrieve the panel's tool tip.module - The module where to find the resources.
public PInputPanel(java.lang.String toolTipKey,
java.lang.String module,
int option)
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.
public PInputPanel(java.lang.String toolTipKey,
java.lang.String module,
int option,
java.lang.String orientation)
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.public PInputPanel(javax.swing.JComponent component)
component - The component to add in the center of this dialog.
public PInputPanel(int option,
javax.swing.JComponent component)
option - One of the PInputPanel options to determine which button must be created.component - The component to add in the center of this dialog.
public PInputPanel(java.lang.String toolTipKey,
java.lang.String module,
int option,
javax.swing.JComponent component)
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.
public PInputPanel(java.lang.String toolTipKey,
java.lang.String module,
int option,
java.lang.String orientation,
javax.swing.JComponent component)
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 |
public final java.awt.Component add(java.awt.Component comp)
getContenPane().add().comp - The component to be added.
public final java.awt.Component add(java.awt.Component comp,
int index)
getContenPane().add().comp - The component to be added.index - The position at which to insert the component, or -1 to insert the component at the end.
public final void add(java.awt.Component comp,
java.lang.Object constraints)
getContenPane().add().comp - The component to be added.constraints - An object expressing layout contraints for this component.
public final void add(java.awt.Component comp,
java.lang.Object constraints,
int index)
getContenPane().add().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.
public final java.awt.Component add(java.lang.String name,
java.awt.Component comp)
getContenPane().add().name - The name of the component.comp - The component to be added.public final void remove(int index)
getContenPane().remove().index - The index of the component to be removed.public final void remove(java.awt.Component comp)
getContenPane().remove().comp - The component to be removed.public final void remove(java.awt.MenuComponent popup)
getContenPane().remove().popup - The popup menu to be removed.public final void removeAll()
getContenPane().removeAll().public final javax.swing.JButton getButton(java.lang.String buttonKey)
buttonKey - The key used to find the button.null if there is no button defined by this key.
public final void addButton(javax.swing.JButton button)
throws java.lang.NullPointerException
null.button - The button to be added.null.
public final void addButton(java.lang.String buttonKey,
javax.swing.JButton button)
throws java.lang.NullPointerException
buttonKey - The key used to find the button.button - The button to be added.null.public final void removeButton(java.lang.String buttonKey)
buttonKey - The key used to find the button.public final void removeAllButtons()
public java.awt.Container getContentPane()
public void ok()
public void apply()
public void reset()
public void cancel()
public void close()
public void help()
public void yes()
public void no()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||