de.hillenbrand.jreqtools
Class GenericOkCancelRequester
java.lang.Object
de.hillenbrand.jreqtools.AbstractRequester
de.hillenbrand.jreqtools.OkCancelRequester
de.hillenbrand.jreqtools.GenericOkCancelRequester
public class GenericOkCancelRequester
- extends OkCancelRequester
This is a generic and configurable requester.
Methods inherited from class de.hillenbrand.jreqtools.OkCancelRequester |
cancel, createContentPane, getComment, getDefaultButton, getIcon, getOkTriggerComponent, getPreferredRequesterSize, getReturnValue, isDrawFirstSeparator, isDrawSecondSeparator, setCancelButtonText, setComment, setDrawFirstSeparator, setDrawSecondSeparator, setDrawSeparators, setIcon, setOkButtonText, simulateCancelPressed, simulateOkPressed |
Methods inherited from class de.hillenbrand.jreqtools.AbstractRequester |
_checkLocation, _checkLocation, _checkSize, _checkSize, checkForClass, enableHelpKey4JavaHelp, getBounds, getLocation, getMessage, getSize, getTitle, request, request, request, setBorder, setBounds, setBounds, setLocation, setLocation, setMessage, setSize, setSize, setTitle, setVisible, showError, showException, showMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_STRING
public static final int TYPE_STRING
- See Also:
- Constant Field Values
TYPE_SHORT
public static final int TYPE_SHORT
- See Also:
- Constant Field Values
TYPE_INTEGER
public static final int TYPE_INTEGER
- See Also:
- Constant Field Values
TYPE_LONG
public static final int TYPE_LONG
- See Also:
- Constant Field Values
TYPE_FLOAT
public static final int TYPE_FLOAT
- See Also:
- Constant Field Values
TYPE_DOUBLE
public static final int TYPE_DOUBLE
- See Also:
- Constant Field Values
TYPE_PASSWORD
public static final int TYPE_PASSWORD
- See Also:
- Constant Field Values
TYPE_CHOICE
public static final int TYPE_CHOICE
- See Also:
- Constant Field Values
TYPE_EDITABLE_CHOICE
public static final int TYPE_EDITABLE_CHOICE
- See Also:
- Constant Field Values
TYPE_TEXT
public static final int TYPE_TEXT
- See Also:
- Constant Field Values
TYPE_SINGLE_SELECTION
public static final int TYPE_SINGLE_SELECTION
- See Also:
- Constant Field Values
TYPE_MULTI_SELECTION
public static final int TYPE_MULTI_SELECTION
- See Also:
- Constant Field Values
TYPE_EDITABLE_LIST
public static final int TYPE_EDITABLE_LIST
- See Also:
- Constant Field Values
TYPE_BYTE
public static final int TYPE_BYTE
- See Also:
- Constant Field Values
TYPE_DATE
public static final int TYPE_DATE
- See Also:
- Constant Field Values
TYPE_FILE
public static final int TYPE_FILE
- See Also:
- Constant Field Values
TYPE_DIRECTORY
public static final int TYPE_DIRECTORY
- See Also:
- Constant Field Values
TYPE_TIME_HHMM
public static final int TYPE_TIME_HHMM
- See Also:
- Constant Field Values
TYPE_TIME_HHMMSS
public static final int TYPE_TIME_HHMMSS
- See Also:
- Constant Field Values
TYPE_TIME_HHMMSSmmm
public static final int TYPE_TIME_HHMMSSmmm
- See Also:
- Constant Field Values
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
TYPE_URI
public static final int TYPE_URI
- See Also:
- Constant Field Values
TYPE_PHONE
public static final int TYPE_PHONE
- See Also:
- Constant Field Values
GenericOkCancelRequester
public GenericOkCancelRequester(java.lang.String message,
GenericOkCancelRequester.TypeConfig[] types)
GenericOkCancelRequester
public GenericOkCancelRequester(java.lang.String title,
java.lang.String message,
GenericOkCancelRequester.TypeConfig[] types)
check
protected java.lang.String check(java.lang.String text,
StringChecker checker)
convertToIntArray
protected static int[] convertToIntArray(java.lang.Object o)
createJComponent
protected javax.swing.JComponent createJComponent(GenericOkCancelRequester.TypeConfig tc)
getResult
public java.lang.Object getResult(int index)
- Returns the value of TypeConfig at index.
- Parameters:
index
- index of the TypeConfig
- Returns:
getUserPanel
protected javax.swing.JPanel getUserPanel()
- Specified by:
getUserPanel
in class OkCancelRequester
ok
protected void ok()
- Overrides:
ok
in class OkCancelRequester
prepareForRequest
protected void prepareForRequest()
- Description copied from class:
AbstractRequester
- This method is being called directly before the dialog will be shown.
- Overrides:
prepareForRequest
in class OkCancelRequester
setRenderer
public void setRenderer(int i,
java.lang.Object renderer)
setTabFont
public void setTabFont(java.awt.Font f)
- Sets the font for the tabbedpane.
- Parameters:
f
-
setTabLayoutPolicy
public void setTabLayoutPolicy(int policy)
- Sets the tab placement for the tabbedpane. Tab layout policy may be either: JTabbedPane.WRAP_TAB_LAYOUT or JTabbedPane.SCROLL_TAB_LAYOUT.
- Parameters:
policy
-
setTabPlacement
public void setTabPlacement(int placement)
- Sets the tab placement for the tabbedpane. Tab placement may be either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT.
- Parameters:
placement
-
setValue
public void setValue(int index,
java.lang.Object value)
- Sets the value of TypeConfig at index.
- Parameters:
index
- index of the TypeConfigvalue
- value to assign to that index
validateData
protected java.lang.String validateData()
- Overrides:
validateData
in class OkCancelRequester