|
||||||||
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 | +--uk.co.ist.mwt.SelBoxPanel | +--uk.co.ist.mwt.SelectionPanel
A SelectionPanel mimics the Motif XmSelectionBox widget; the setup where XmNdialogType is set to XmDIALOG_COMMAND is not handled; to get this sort of component, create a CommandPanel.
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static int |
kDialogFileSelection
Another type for a selection panel with everything - not a real file selection box (which is handled very differently by AWT). |
static int |
kDialogPrompt
A type for a selection panel with no list, list label, or apply button |
static int |
kDialogSelection
A type for a selection panel with everything |
static int |
kDialogWorkArea
A type for a selection panel with no apply button |
Fields inherited from class uk.co.ist.mwt.SelBoxPanel |
kWorkAreaAboveSelection,
kWorkAreaAtTop,
kWorkAreaBelowSelection,
myLayout,
workArea,
workAreaPlacement |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
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 |
Constructor Summary | |
SelectionPanel()
Constructor - create standard children, etc |
Method Summary | |
protected void |
addImpl(java.awt.Component comp,
java.lang.Object constraints,
int pos)
Adds a component to the Panel; overriden so that any attempts to add further components simply replace the old work area, and so that the abstract separator child created by the DlogTemplateLayout does not cause infinite recursion when laying the Panel out. |
java.lang.String |
getApplyLabelString()
Gets the label on the apply button |
java.lang.String |
getCancelLabelString()
Gets the label on the cancel button |
int |
getDialogType()
Gets the type of the dialog; see the constants above for allowable values |
java.lang.String |
getHelpLabelString()
Gets the label on the help button |
java.lang.String |
getListLabelString()
Gets the string in the label above the list |
boolean |
getMinimizeButtons()
Is the minimizeButtons property set? |
java.lang.String |
getOKLabelString()
Gets the label on the OK button |
java.lang.String |
getSelectionFieldString()
Gets the string in the selection text field |
java.lang.String |
getSelectionLabelString()
Gets the string in the label above the selection text field |
protected void |
removeWorkArea()
Removes the work area from the layout |
protected void |
resetWorkAreaPosition()
Moves the current work area (if there is one) to the correct position in the list of children for the current workAreaPlacement() |
void |
setApplyLabelString(java.lang.String label)
Sets the label on the apply button |
void |
setCancelLabelString(java.lang.String label)
Sets the label on the cancel button |
void |
setDialogType(int type)
Sets the type of the dialog; see the constants above for allowable values |
void |
setHelpLabelString(java.lang.String label)
Sets the label on the help button |
void |
setListLabelString(java.lang.String label)
Sets the string in the label above the list |
void |
setMinimizeButtons(boolean whether)
Sets whether the buttons in the button section of the panel should be set to the same size (false) or to whatever size best fits their text (true) |
void |
setOKLabelString(java.lang.String label)
Sets the label on the OK button |
void |
setSelectionFieldString(java.lang.String text)
Sets the string in the selection text field |
void |
setSelectionLabelString(java.lang.String label)
Sets the string in the label above the selection text field |
protected void |
setUpComponentsForType()
Hides and shows components as appropriate for the current dialog type |
Methods inherited from class uk.co.ist.mwt.SelBoxPanel |
addWorkArea,
getWorkAreaPlacement,
reallyAdd,
reallyAdd,
setWorkAreaPlacement |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
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,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
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,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
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,
wait,
wait,
wait |
Field Detail |
public static final int kDialogPrompt
public static final int kDialogSelection
public static final int kDialogFileSelection
public static final int kDialogWorkArea
Constructor Detail |
public SelectionPanel()
Method Detail |
public void setOKLabelString(java.lang.String label)
public java.lang.String getOKLabelString()
public void setApplyLabelString(java.lang.String label)
public java.lang.String getApplyLabelString()
public void setCancelLabelString(java.lang.String label)
public java.lang.String getCancelLabelString()
public void setHelpLabelString(java.lang.String label)
public java.lang.String getHelpLabelString()
public void setListLabelString(java.lang.String label)
public java.lang.String getListLabelString()
public void setSelectionLabelString(java.lang.String label)
public java.lang.String getSelectionLabelString()
public void setSelectionFieldString(java.lang.String text)
public java.lang.String getSelectionFieldString()
public void setMinimizeButtons(boolean whether)
public boolean getMinimizeButtons()
setMinimizeButtons(boolean)
public void setDialogType(int type)
public int getDialogType()
protected void resetWorkAreaPosition()
protected void removeWorkArea()
protected void setUpComponentsForType()
protected void addImpl(java.awt.Component comp, java.lang.Object constraints, int pos)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |