Package com.ribs.helpers
Class JSpinnerHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JSpinnerHpr
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.floatgetFloatValue(JComponent aComponent) Returns the text component's text string as a float.intgetIntValue(JComponent aComponent) Returns the text component's text string as an int.getStringValue(JComponent aComponent) Returns the spinner component's value as string.voidinitInstance(JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).booleanisEditable(JSpinner spinner) newInstance(RXElement anElement) Creates a new instance of class for given element.voidvoidsetEditable(JSpinner spinner, boolean value) voidvoidsetValue(JComponent aComponent, float aValue) Returns the text component's text string from a float.voidsetValue(JComponent aComponent, int aValue) Returns the text component's text string from an int.voidsetValue(JComponent aComponent, Color aValue) Returns a component's value from given Color.voidsetValue(JComponent aComponent, Object aValue) Sets a component's value.voidsetValue(JComponent aComponent, String aValue) Sets the text component's text string.toXML(JComponent aComponent, RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.RJHelperadd, focusGained, focusLost, fromXMLDeep, get, getActionListener, getAutoscrolls, getAutosizing, getBackground, getBindKey, getBooleanValue, getBoolValue, getCallback, getChangeListener, getColorValue, getComponent, getComponentCount, getFocusListener, getForeground, getMaster, getMaximumSize, getMinimumSize, getOwner, getRibHeight, getRibWidth, getRibX, getRibY, getSendActionOnFocusLost, getSubstitutionClassString, getValue, isOpaque, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
- 
Constructor Details- 
JSpinnerHprpublic JSpinnerHpr()
 
- 
- 
Method Details- 
newInstanceCreates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
- 
initInstanceInitializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
- 
getStringValueReturns the spinner component's value as string.- Overrides:
- getStringValuein class- RJHelper
 
- 
getIntValueReturns the text component's text string as an int.- Overrides:
- getIntValuein class- RJHelper
 
- 
getFloatValueReturns the text component's text string as a float.- Overrides:
- getFloatValuein class- RJHelper
 
- 
setValueSets a component's value.
- 
setValueSets the text component's text string.
- 
setValueReturns the text component's text string from an int.
- 
setValueReturns the text component's text string from a float.
- 
setValueReturns a component's value from given Color.
- 
isEditable
- 
setEditable
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
- 
setNumberModel
- 
resetNumberModel
 
-