nl.coderight.jazz.form.field.input
Class InputField<V>
java.lang.Object
nl.coderight.jazz.form.FormField<V>
nl.coderight.jazz.form.field.validatable.ValidatableField<V>
nl.coderight.jazz.form.field.input.InputField<V>
- All Implemented Interfaces:
- ClipboardSupport, Editable, Validation
- Direct Known Subclasses:
- NumberField, TextField
public abstract class InputField<V>
- extends ValidatableField<V>
- implements ClipboardSupport
Implementation of a JFormattedTextField.
- See Also:
JFormattedTextField
| Methods inherited from class nl.coderight.jazz.form.field.validatable.ValidatableField |
checkIsRequired, getError, getValidator, isFocusable, isRequired, isValid, onValidate, setFocusBorderVisible, setRequired, setRequiredMessage, setToolTipText, setValidator |
| 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, getToolTipText, hasFocus, isBindable, isChanged, isEnabled, isOpaque, isReadonly, isScrollable, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onMouseEnter, onMouseLeave, onPopup, registerKeyboardAction, setBackground, setBindID, setBorder, setChanged, setComponent, 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 |
InputField
protected InputField()
InputField
public InputField(String bindID)
InputField
public InputField(String bindID,
int length)
createField
protected JFormattedTextField createField()
getField
protected JFormattedTextField getField()
getValue
public V getValue()
- Description copied from class:
FormField
- Returns field value.
- Overrides:
getValue in class FormField<V>
setValue
public void setValue(V value)
- Description copied from class:
FormField
- Sets field value.
- Overrides:
setValue in class ValidatableField<V>
validate
public void validate()
throws ValidationException
- Specified by:
validate in interface Validation- Overrides:
validate in class ValidatableField<V>
- Throws:
ValidationException
setInputPrompt
public void setInputPrompt(String text)
- Sets input prompt.
- Since:
- 1.6
createLabelFor
public LabelField createLabelFor(String text)
createLabelFor
public LabelField createLabelFor(String text,
LabelField.Align horizontalAlignment)
setColumns
public void setColumns(int columns)
isEditable
public boolean isEditable()
- Specified by:
isEditable in interface Editable
setEditable
public void setEditable(boolean editable)
- Specified by:
setEditable in interface Editable
getMaxLength
public int getMaxLength()
- Since:
- 1.3
setMaxLength
public void setMaxLength(int maxLength)
- Since:
- 1.3
setFilter
public void setFilter(InputFieldFilter filter)
- Since:
- 1.3
setFormatter
public void setFormatter(InputFieldFormatter<V> formatter)
- Since:
- 1.3
setOverwriteMode
public void setOverwriteMode(boolean overwrite)
- Since:
- 1.3
cut
public void cut()
- Specified by:
cut in interface ClipboardSupport
copy
public void copy()
- Specified by:
copy in interface ClipboardSupport
paste
public void paste()
- Specified by:
paste in interface ClipboardSupport
setCopyAction
public void setCopyAction(Action action)
- Since:
- 1.5
setCutAction
public void setCutAction(Action action)
- Since:
- 1.5
setPasteAction
public void setPasteAction(Action action)
- Since:
- 1.5
onFocusGained
protected void onFocusGained()
- Overrides:
onFocusGained in class ValidatableField<V>
onFocusLost
protected void onFocusLost()
- Overrides:
onFocusLost in class ValidatableField<V>
setOnChangeEvent
public void setOnChangeEvent(Event onChangeEvent)
setOnChangeAction
public void setOnChangeAction(Action onChangeAction)
- Since:
- 1.5
onChange
protected void onChange()
- Overrides:
onChange in class FormField<V>
onKeyTyped
protected void onKeyTyped(KeyEvent evt)
valueOf
protected abstract V valueOf(String string)
throws ParseException
- Throws:
ParseException
Copyright 2010 CodeRight, All rights reserved.