org.jppf.ui.options
Class PlainTextOption
java.lang.Object
org.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOption
org.jppf.ui.options.TextOption
org.jppf.ui.options.PlainTextOption
- All Implemented Interfaces:
- Serializable, Option, OptionElement, OptionProperties
public class PlainTextOption
- extends TextOption
Option for a plain string value.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
| Fields inherited from class org.jppf.ui.options.AbstractOptionProperties |
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent |
|
Constructor Summary |
PlainTextOption()
Constructor provided as a convenience to facilitate the creation of
option elements through reflexion. |
PlainTextOption(String name,
String label,
String tooltip,
String value)
Initialize this text option with the specified parameters. |
|
Method Summary |
protected JTextField |
createField()
Create the text field that holds the value of this option. |
int |
getColumns()
Get the number of columns displayed in the text field. |
void |
setColumns(int columns)
Set the number of columns displayed in the text field. |
void |
setValue(Object value)
Set the value of this option. |
| Methods inherited from class org.jppf.ui.options.AbstractOptionElement |
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParent, toString |
| Methods inherited from class org.jppf.ui.options.AbstractOptionProperties |
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setBordered, setComponentConstraints, setEditable, setEventsEnabled, setFinalizer, setIconPath, setInitializer, setLabel, setLayoutConstraints, setName, setScrollable, setToolTipText, setUIComponent |
| Methods inherited from interface org.jppf.ui.options.OptionProperties |
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setEventsEnabled, setLayoutConstraints |
PlainTextOption
public PlainTextOption()
- Constructor provided as a convenience to facilitate the creation of
option elements through reflexion.
PlainTextOption
public PlainTextOption(String name,
String label,
String tooltip,
String value)
- Initialize this text option with the specified parameters.
- Parameters:
name - this component's name.label - the label displayed with the checkbox.tooltip - the tooltip associated with the checkbox.value - the initial value of this component.
createField
protected JTextField createField()
- Create the text field that holds the value of this option.
- Specified by:
createField in class TextOption
- Returns:
- a JTextField instance.
- See Also:
TextOption.createField()
setValue
public void setValue(Object value)
- Set the value of this option.
- Overrides:
setValue in class AbstractOption
- Parameters:
value - the value as an Object instance.- See Also:
AbstractOption.setValue(java.lang.Object)
getColumns
public int getColumns()
- Get the number of columns displayed in the text field.
- Returns:
- the number of columns as an int.
setColumns
public void setColumns(int columns)
- Set the number of columns displayed in the text field.
- Parameters:
columns - the number of columns as an int.
Copyright © 2005-2010 JPPF Team.