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
,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.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.gui.goe.AbstractNumberEditor
m_CurrentValue, m_DefaultValue, m_LowerBound, m_UpperBound
-
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 JComponent
createCustomEditor()
Creates the custom editor to use.protected SpinnerNumberModel
createModel()
Creates the spinner model to use.protected void
initForDisplay()
Initializes the display of the value.protected void
updateBounds()
Updates the bounds.protected abstract void
updateBounds(SpinnerNumberModel model)
Updates the bounds of the spinner model.-
Methods inherited from class adams.gui.goe.AbstractNumberEditor
getDefaultValue, getLowerBound, getUpperBound, setDefaultValue, setLowerBound, setUpperBound
-
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
-
-
-
-
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:
updateBounds
in classAbstractNumberEditor
-
createCustomEditor
protected JComponent createCustomEditor()
Creates the custom editor to use.- Overrides:
createCustomEditor
in classAbstractBasicTypePropertyEditor
- Returns:
- the custom editor
-
initForDisplay
protected void initForDisplay()
Initializes the display of the value.- Overrides:
initForDisplay
in classAbstractBasicTypePropertyEditor
-
-