net.sf.jzeno.echo.editor
Class FloatEditor
java.lang.Object
nextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.editor.AbstractNumberEditor
net.sf.jzeno.echo.editor.FloatEditor
- All Implemented Interfaces:
- java.io.Serializable, BindingTarget, PropertyComponent, RebindableComponent, EventPropagator, EventSink, EventSource, Precreation, Component, FastComponent, FastComponentContainer
public final class FloatEditor
- extends AbstractNumberEditor
- See Also:
- Serialized Form
Fields inherited from interface nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary |
FloatEditor()
|
FloatEditor(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints)
|
Methods inherited from class net.sf.jzeno.echo.editor.AbstractNumberEditor |
getActionCommand, getBackground, getExactLength, getFont, getForeground, getInvalidMessage, getInvalidMessageKey, getMaximumLength, getNullValue, getText, getToolTipText, getWidth, getWidthUnits, isAllowZero, isAsync, isIncludeMaximum, isIncludeMinimum, isReadOnly, isRequired, propagateEvent, rebind, setActionCommand, setAlignment, setAllowZero, setAsync, setBackground, setColumns, setExactLength, setFocused, setFont, setForeground, setIncludeMaximum, setIncludeMinimum, setInvalidMessage, setInvalidMessageKey, setMaximumLength, setNullValue, setReadOnly, setRequired, setText, setToolTipText, setWidth, setWidthUnits |
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isValid, markInvalid, markValid, preRender, removeValidator, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setValue, traceValue, validate |
Methods inherited from class nextapp.echo.AbstractComponent |
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setClientId, setEnabled, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatEditor
public FloatEditor()
FloatEditor
public FloatEditor(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints)
formatNumber
public java.lang.String formatNumber(java.lang.Number number)
- Specified by:
formatNumber
in class AbstractNumberEditor
getZero
public java.lang.Number getZero()
- Specified by:
getZero
in class AbstractNumberEditor
isNumberValid
public boolean isNumberValid(java.lang.String text)
- Specified by:
isNumberValid
in class AbstractNumberEditor
parseNumber
public java.lang.Number parseNumber(java.lang.String text)
- Specified by:
parseNumber
in class AbstractNumberEditor
compareTo
public int compareTo(java.lang.Number n1,
java.lang.Number n2)
- Specified by:
compareTo
in class AbstractNumberEditor
setMaximum
public void setMaximum(java.lang.Float b)
getMaximum
public java.lang.Float getMaximum()
setMinimum
public void setMinimum(java.lang.Float b)
getMinimum
public java.lang.Float getMinimum()
getDefaultWidth
public int getDefaultWidth()
- Overrides:
getDefaultWidth
in class AbstractNumberEditor
applyContext
public void applyContext()