org.jppf.ui.options
Class PasswordOption

java.lang.Object
  extended by org.jppf.ui.options.AbstractOptionProperties
      extended by org.jppf.ui.options.AbstractOptionElement
          extended by org.jppf.ui.options.AbstractOption
              extended by org.jppf.ui.options.TextOption
                  extended by org.jppf.ui.options.PasswordOption
All Implemented Interfaces:
Serializable, Option, OptionElement, OptionProperties

public class PasswordOption
extends TextOption

Option for a password value.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jppf.ui.options.TextOption
field, fieldLabel
 
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
PasswordOption()
          Constructor provided as a convenience to facilitate the creation of option elements through reflexion.
PasswordOption(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 password option.
 Object getValue()
          Get the password in the password field.
 
Methods inherited from class org.jppf.ui.options.TextOption
createUI, setEnabled, setupValueChangeNotifications
 
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
 

Constructor Detail

PasswordOption

public PasswordOption()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion.


PasswordOption

public PasswordOption(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.
Method Detail

createField

protected JTextField createField()
Create the text field that holds the value of this password option.

Specified by:
createField in class TextOption
Returns:
a JPasswordField instance.
See Also:
TextOption.createField()

getValue

public Object getValue()
Get the password in the password field.

Specified by:
getValue in interface Option
Overrides:
getValue in class TextOption
Returns:
the password as a string value.
See Also:
TextOption.getValue()


Copyright © 2005-2010 JPPF Team.