Package com.ribs.helpers
Class JSpinnerHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JSpinnerHpr
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.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:
newInstancein classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein classRJHelper
-
getStringValue
Returns the spinner component's value as string.- Overrides:
getStringValuein classRJHelper
-
getIntValue
Returns the text component's text string as an int.- Overrides:
getIntValuein classRJHelper
-
getFloatValue
Returns the text component's text string as a float.- Overrides:
getFloatValuein 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
-