Package adams.gui.goe
Class AbstractIntegralNumberEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- adams.gui.goe.AbstractPropertyEditorSupport
-
- adams.gui.goe.AbstractBasicTypePropertyEditor
-
- adams.gui.goe.AbstractNumberEditor
-
- adams.gui.goe.AbstractIntegralNumberEditor
-
- All Implemented Interfaces:
HelpProvider,PropertyEditorWithConstraint<NumericBounds>,PropertyEditorWithDefaultValue,PropertyEditor
- Direct Known Subclasses:
ByteEditor,IntegerEditor,LongEditor,ShortEditor
public abstract class AbstractIntegralNumberEditor extends AbstractNumberEditor
An abstract ancestor for custom editors for integral numbers, like bytes, shorts, integers and longs.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.gui.goe.AbstractNumberEditor
m_Constraint, m_CurrentValue, m_DefaultValue
-
Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport
APPROVE_OPTION, CANCEL_OPTION, EMPTY, m_ChosenOption, m_CustomEditor, m_WindowAdapter, NULL
-
-
Constructor Summary
Constructors Constructor Description AbstractIntegralNumberEditor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected JComponentcreateCustomEditor()Creates the custom editor to use.protected SpinnerNumberModelcreateModel()Creates the spinner model to use.protected voidinitForDisplay()Initializes the display of the value.protected voidupdateBounds()Updates the bounds.protected abstract voidupdateBounds(SpinnerNumberModel model)Updates the bounds of the spinner model.-
Methods inherited from class adams.gui.goe.AbstractNumberEditor
getConstraint, getDefaultValue, setConstraint, setDefaultValue
-
Methods inherited from class adams.gui.goe.AbstractBasicTypePropertyEditor
getAsText, isPaintable, paintValue, parse, setAsText, toString
-
Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport
addWindowAdapter, cleanUp, closeDialog, createPopup, createTipText, createWindowAdapter, getChosenOption, getCustomEditor, getHelpDescription, getHelpIcon, getHelpTitle, getHelpURL, getParentDialog, getParentFrame, initialize, resetChosenOption, setValue, supportsCustomEditor
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, removePropertyChangeListener, setSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditor
-
-
-
-
Method Detail
-
createModel
protected SpinnerNumberModel createModel()
Creates the spinner model to use.- Returns:
- the model
-
updateBounds
protected abstract void updateBounds(SpinnerNumberModel model)
Updates the bounds of the spinner model.- Parameters:
model- the model to update
-
updateBounds
protected void updateBounds()
Updates the bounds.- Specified by:
updateBoundsin classAbstractNumberEditor
-
createCustomEditor
protected JComponent createCustomEditor()
Creates the custom editor to use.- Overrides:
createCustomEditorin classAbstractBasicTypePropertyEditor- Returns:
- the custom editor
-
initForDisplay
protected void initForDisplay()
Initializes the display of the value.- Overrides:
initForDisplayin classAbstractBasicTypePropertyEditor
-
-