nl.coderight.jazz.form.field
Class PasswordField

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<V>
      extended by nl.coderight.jazz.form.field.validatable.ValidatableField<char[]>
          extended by nl.coderight.jazz.form.field.PasswordField
All Implemented Interfaces:
ClipboardSupport, Editable, Validation

public class PasswordField
extends ValidatableField<char[]>

Implementation of a JPasswordField.

See Also:
JPasswordField

Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
protected PasswordField()
           
  PasswordField(String bindID, int length)
           
 
Method Summary
 void copy()
           
protected  JPasswordField createField()
           
 void cut()
           
 char getEchoChar()
           
protected  JPasswordField getField()
           
 boolean isCapsLockOn()
           
 boolean isEditable()
           
protected  boolean isValueChanged(char[] newValue)
           
protected  void onChange()
           
 void paste()
           
 void setColumns(int columns)
           
 void setEchoChar(char chr)
           
 void setEditable(boolean editable)
           
 void setOnChangeAction(Action onChangeAction)
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setValue(char[] value)
          Sets field value.
 
Methods inherited from class nl.coderight.jazz.form.field.validatable.ValidatableField
checkIsRequired, getError, getValidator, isFocusable, isRequired, isValid, onFocusGained, onFocusLost, onIconClicked, onValidate, setComponent, setCopyAction, setCutAction, setIcon, setInputPrompt, setPasteAction, setRequired, setRequiredMessage, setToolTip, setValidator, validate
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, dispose, focus, focusNextField, focusPreviousField, getBackground, getBindID, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTip, getValue, hasFocus, isBindable, isChanged, isEnabled, isOpaque, isReadonly, isShowing, isVisible, onClick, onDoubleClick, onMouseEnter, onMouseLeave, onPopup, registerKeyboardAction, setBackground, setBindID, setBorder, setChanged, setCursor, setDataBinding, setEnabled, setFocusable, setForeground, setOnFocusGainedEvent, setOnFocusLostEvent, setOpaque, setPopupMenu, setPreferredSize, setReadonly, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordField

protected PasswordField()

PasswordField

public PasswordField(String bindID,
                     int length)
Method Detail

createField

protected JPasswordField createField()

getField

protected JPasswordField getField()

setValue

public void setValue(char[] value)
Description copied from class: FormField
Sets field value.

Overrides:
setValue in class ValidatableField<char[]>

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean editable)

setColumns

public void setColumns(int columns)

getEchoChar

public char getEchoChar()

setEchoChar

public void setEchoChar(char chr)

isCapsLockOn

public boolean isCapsLockOn()

copy

public void copy()

cut

public void cut()

paste

public void paste()

setOnChangeEvent

public void setOnChangeEvent(Event onChangeEvent)

setOnChangeAction

public void setOnChangeAction(Action onChangeAction)

onChange

protected void onChange()
Overrides:
onChange in class FormField<char[]>

isValueChanged

protected boolean isValueChanged(char[] newValue)
Overrides:
isValueChanged in class FormField<char[]>


Copyright 2010 CodeRight, All rights reserved.