|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOption
org.jppf.ui.options.TextOption
public abstract class TextOption
Text option displayed as a text field.
| Field Summary | |
|---|---|
protected JTextField |
field
Text field containing the option value as text. |
protected JLabel |
fieldLabel
Label associated with the text field. |
| Fields inherited from class org.jppf.ui.options.AbstractOption |
|---|
listeners, persistent, value |
| Fields inherited from class org.jppf.ui.options.AbstractOptionElement |
|---|
parent, root |
| Fields inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent |
| Constructor Summary | |
|---|---|
TextOption()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion. |
|
TextOption(String name,
String label,
String tooltip,
String value)
Initialize this text option with the specified parameters. |
|
| Method Summary | |
|---|---|
protected abstract JTextField |
createField()
Create the text field that holds the value of this option. |
void |
createUI()
Create the UI components for this option. |
Object |
getValue()
Get the text in the text field. |
void |
setEnabled(boolean enabled)
Enable or disable this option. |
protected void |
setupValueChangeNotifications()
Add a listener to the underlying text document, to receive and propagate change events. |
| Methods inherited from class org.jppf.ui.options.AbstractOption |
|---|
addValueChangeListener, fireValueChanged, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, setValue |
| 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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.options.OptionElement |
|---|
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPath |
| 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 |
| Field Detail |
|---|
protected JTextField field
protected JLabel fieldLabel
| Constructor Detail |
|---|
public TextOption()
public TextOption(String name,
String label,
String tooltip,
String value)
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.| Method Detail |
|---|
public void createUI()
createUI in class AbstractOptionPropertiesprotected abstract JTextField createField()
public Object getValue()
getValue in interface OptiongetValue in class AbstractOptionAbstractOption.getValue()protected void setupValueChangeNotifications()
setupValueChangeNotifications in class AbstractOptionAbstractOption.setupValueChangeNotifications()public void setEnabled(boolean enabled)
enabled - true to enable this option, false to disable it.OptionProperties.setEnabled(boolean)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||