Package 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
Option for a plain string value.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.ui.options.TextOption
field, fieldLabelFields inherited from class org.jppf.ui.options.AbstractOption
listeners, persistent, valueFields inherited from class org.jppf.ui.options.AbstractOptionElement
parent, rootFields inherited from class org.jppf.ui.options.AbstractOptionProperties
bordered, componentConstraints, detachable, eventsEnabled, finalizer, horizontalScrollbar, iconPath, initializer, label, layoutConstraints, mouseListener, name, scripts, scrollable, toolTipText, UIComponent, verticalScrollbar -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptionprotected JTextFieldCreate the text field that holds the value of this option.intGet the number of columns displayed in the text field.voidsetColumns(int columns) Set the number of columns displayed in the text field.voidSet the value of this option.Methods inherited from class org.jppf.ui.options.TextOption
createUI, getValue, setEnabled, setupValueChangeNotificationsMethods inherited from class org.jppf.ui.options.AbstractOption
addValueChangeListener, fireValueChanged, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, toStringMethods inherited from class org.jppf.ui.options.AbstractOptionElement
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParentMethods inherited from class org.jppf.ui.options.AbstractOptionProperties
createScrollPane, getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getMouseListener, getName, getScripts, getToolTipText, getUIComponent, isBordered, isDetachable, isEventsEnabled, isHorizontalScrollbar, isScrollable, isVerticalScrollbar, setBordered, setComponentConstraints, setDetachable, setEditable, setEventsEnabled, setFinalizer, setHorizontalScrollbar, setIconPath, setInitializer, setLabel, setLayoutConstraints, setMouseListener, setName, setScrollable, setToolTipText, setUIComponent, setVerticalScrollbarMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.ui.options.OptionElement
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPathMethods inherited from interface org.jppf.ui.options.OptionProperties
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getMouseListener, getName, getScripts, getToolTipText, getUIComponent, isBordered, isDetachable, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setEventsEnabled, setLayoutConstraints, setMouseListener
-
Constructor Details
-
PlainTextOption
public PlainTextOption()Constructor provided as a convenience to facilitate the creation of option elements through reflexion. -
PlainTextOption
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.
-
-
Method Details
-
createField
Create the text field that holds the value of this option.- Specified by:
createFieldin classTextOption- Returns:
- a JTextField instance.
- See Also:
-
setValue
Set the value of this option.- Overrides:
setValuein classAbstractOption- Parameters:
value- the value as anObjectinstance.- See Also:
-
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.
-