Package com.ribs.helpers
Class JSpinnerHpr
- java.lang.Object
- 
- com.ribs.RJHelper
- 
- com.ribs.helpers.JSpinnerHpr
 
 
- 
 public class JSpinnerHpr extends RJHelper 
- 
- 
Constructor SummaryConstructors Constructor Description JSpinnerHpr()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.floatgetFloatValue(javax.swing.JComponent aComponent)Returns the text component's text string as a float.intgetIntValue(javax.swing.JComponent aComponent)Returns the text component's text string as an int.java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the spinner component's value as string.voidinitInstance(javax.swing.JComponent aComponent)Initializes the given instance (actually called the first time an owner is set).booleanisEditable(javax.swing.JSpinner spinner)java.lang.ObjectnewInstance(RXElement anElement)Creates a new instance of class for given element.voidresetNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)voidsetEditable(javax.swing.JSpinner spinner, boolean value)voidsetNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)voidsetValue(javax.swing.JComponent aComponent, float aValue)Returns the text component's text string from a float.voidsetValue(javax.swing.JComponent aComponent, int aValue)Returns the text component's text string from an int.voidsetValue(javax.swing.JComponent aComponent, java.awt.Color aValue)Returns a component's value from given Color.voidsetValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets a component's value.voidsetValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the text component's text string.RXElementtoXML(javax.swing.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
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic java.lang.Object newInstance(RXElement anElement) Creates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
 - 
initInstancepublic void initInstance(javax.swing.JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
 - 
getStringValuepublic java.lang.String getStringValue(javax.swing.JComponent aComponent) Returns the spinner component's value as string.- Overrides:
- getStringValuein class- RJHelper
 
 - 
getIntValuepublic int getIntValue(javax.swing.JComponent aComponent) Returns the text component's text string as an int.- Overrides:
- getIntValuein class- RJHelper
 
 - 
getFloatValuepublic float getFloatValue(javax.swing.JComponent aComponent) Returns the text component's text string as a float.- Overrides:
- getFloatValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets a component's value.
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the text component's text string.
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, int aValue)Returns the text component's text string from an int.
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, float aValue)Returns the text component's text string from a float.
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.awt.Color aValue)Returns a component's value from given Color.
 - 
isEditablepublic boolean isEditable(javax.swing.JSpinner spinner) 
 - 
setEditablepublic void setEditable(javax.swing.JSpinner spinner, boolean value)
 - 
toXMLpublic RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
 - 
setNumberModelpublic void setNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)
 - 
resetNumberModelpublic void resetNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)
 
- 
 
-