Package com.ribs.helpers
Class JSpinnerHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JSpinnerHpr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromXML
(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.float
getFloatValue
(JComponent aComponent) Returns the text component's text string as a float.int
getIntValue
(JComponent aComponent) Returns the text component's text string as an int.getStringValue
(JComponent aComponent) Returns the spinner component's value as string.void
initInstance
(JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).boolean
isEditable
(JSpinner spinner) newInstance
(RXElement anElement) Creates a new instance of class for given element.void
void
setEditable
(JSpinner spinner, boolean value) void
void
setValue
(JComponent aComponent, float aValue) Returns the text component's text string from a float.void
setValue
(JComponent aComponent, int aValue) Returns the text component's text string from an int.void
setValue
(JComponent aComponent, Color aValue) Returns a component's value from given Color.void
setValue
(JComponent aComponent, Object aValue) Sets a component's value.void
setValue
(JComponent aComponent, String aValue) Sets the text component's text string.toXML
(JComponent aComponent, RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.RJHelper
add, 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
-
JSpinnerHpr
public JSpinnerHpr()
-
-
Method Details
-
newInstance
Creates a new instance of class for given element.- Overrides:
newInstance
in classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstance
in classRJHelper
-
getStringValue
Returns the spinner component's value as string.- Overrides:
getStringValue
in classRJHelper
-
getIntValue
Returns the text component's text string as an int.- Overrides:
getIntValue
in classRJHelper
-
getFloatValue
Returns the text component's text string as a float.- Overrides:
getFloatValue
in classRJHelper
-
setValue
Sets a component's value. -
setValue
Sets the text component's text string. -
setValue
Returns the text component's text string from an int. -
setValue
Returns the text component's text string from a float. -
setValue
Returns a component's value from given Color. -
isEditable
-
setEditable
-
toXML
XML archival. -
fromXML
XML unarchival. -
setNumberModel
-
resetNumberModel
-