Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.SelectionPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--uk.co.ist.mwt.SelBoxPanel
                          |
                          +--uk.co.ist.mwt.SelectionPanel

public class SelectionPanel
extends SelBoxPanel
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.

See Also:
Serialized Form

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
 
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
java.awt.Component add(java.awt.Component comp, 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
void minimizeButtonsIf(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 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 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
 
Methods inherited from class uk.co.ist.mwt.SelBoxPanel
add, addWorkArea, getWorkAreaPlacement, setWorkAreaPlacement
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, preferredSize, printComponents, print, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

kDialogPrompt

public static final int kDialogPrompt
A type for a selection panel with no list, list label, or apply button

kDialogSelection

public static final int kDialogSelection
A type for a selection panel with everything

kDialogFileSelection

public static final int kDialogFileSelection
Another type for a selection panel with everything - not a real file selection box (which is handled very differently by AWT).

kDialogWorkArea

public static final int kDialogWorkArea
A type for a selection panel with no apply button
Constructor Detail

SelectionPanel

public SelectionPanel()
Constructor - create standard children, etc
Method Detail

setOKLabelString

public void setOKLabelString(java.lang.String label)
Sets the label on the OK button

getOKLabelString

public java.lang.String getOKLabelString()
Gets the label on the OK button

setApplyLabelString

public void setApplyLabelString(java.lang.String label)
Sets the label on the apply button

getApplyLabelString

public java.lang.String getApplyLabelString()
Gets the label on the apply button

setCancelLabelString

public void setCancelLabelString(java.lang.String label)
Sets the label on the cancel button

getCancelLabelString

public java.lang.String getCancelLabelString()
Gets the label on the cancel button

setHelpLabelString

public void setHelpLabelString(java.lang.String label)
Sets the label on the help button

getHelpLabelString

public java.lang.String getHelpLabelString()
Gets the label on the help button

setListLabelString

public void setListLabelString(java.lang.String label)
Sets the string in the label above the list

getListLabelString

public java.lang.String getListLabelString()
Gets the string in the label above the list

setSelectionLabelString

public void setSelectionLabelString(java.lang.String label)
Sets the string in the label above the selection text field

getSelectionLabelString

public java.lang.String getSelectionLabelString()
Gets the string in the label above the selection text field

setSelectionFieldString

public void setSelectionFieldString(java.lang.String text)
Sets the string in the selection text field

getSelectionFieldString

public java.lang.String getSelectionFieldString()
Gets the string in the selection text field

minimizeButtonsIf

public void minimizeButtonsIf(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)

getMinimizeButtons

public boolean getMinimizeButtons()
Is the minimizeButtons property set?
See Also:
minimizeButtonsIf

setDialogType

public void setDialogType(int type)
Sets the type of the dialog; see the constants above for allowable values

getDialogType

public int getDialogType()
Gets the type of the dialog; see the constants above for allowable values

add

public java.awt.Component add(java.awt.Component comp,
                     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.
Overrides:
add in class SelBoxPanel

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD