nl.coderight.jazz.form.field
Class NumberField<V extends Number>

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<V>
      extended by nl.coderight.jazz.form.field.validatable.ValidatableField<V>
          extended by nl.coderight.jazz.form.field.input.InputField<V>
              extended by nl.coderight.jazz.form.field.NumberField<V>
All Implemented Interfaces:
ClipboardSupport, Editable, Validation

public class NumberField<V extends Number>
extends InputField<V>

Provides an input field for numbers.


Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
NumberField(String bindID, int length)
           
 
Method Summary
protected  void onKeyTyped(KeyEvent evt)
           
 void setFormat(NumberFormat format)
          Sets format to display number.
protected  V valueOf(String string)
           
 
Methods inherited from class nl.coderight.jazz.form.field.input.InputField
copy, createField, createLabelFor, createLabelFor, cut, getField, getMaxLength, getValue, isEditable, onChange, paste, setColumns, setEditable, setFilter, setFormatter, setMaxLength, setOnChangeAction, setOnChangeEvent, setOverwriteMode, setValue, validate
 
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
 
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, hasFocus, isBindable, isChanged, isEnabled, isOpaque, isReadonly, isShowing, isValueChanged, 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

NumberField

public NumberField(String bindID,
                   int length)
Method Detail

setFormat

public void setFormat(NumberFormat format)
Sets format to display number.


onKeyTyped

protected void onKeyTyped(KeyEvent evt)
Overrides:
onKeyTyped in class InputField<V extends Number>

valueOf

protected V valueOf(String string)
                            throws ParseException
Specified by:
valueOf in class InputField<V extends Number>
Throws:
ParseException


Copyright 2010 CodeRight, All rights reserved.