public class JSpinnerHpr extends RJHelper
Constructor and Description |
---|
JSpinnerHpr() |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(javax.swing.JComponent aComponent,
RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
float |
getFloatValue(javax.swing.JComponent aComponent)
Returns the text component's text string as a float.
|
int |
getIntValue(javax.swing.JComponent aComponent)
Returns the text component's text string as an int.
|
java.lang.String |
getStringValue(javax.swing.JComponent aComponent)
Returns the spinner component's value as string.
|
void |
initInstance(javax.swing.JComponent aComponent)
Initializes the given instance (actually called the first time an owner is set).
|
boolean |
isEditable(javax.swing.JSpinner spinner) |
java.lang.Object |
newInstance(RXElement anElement)
Creates a new instance of class for given element.
|
void |
resetNumberModel(javax.swing.JSpinner spinner,
java.lang.Number val,
java.lang.Number min,
java.lang.Number max,
java.lang.Number step) |
void |
setEditable(javax.swing.JSpinner spinner,
boolean value) |
void |
setNumberModel(javax.swing.JSpinner spinner,
java.lang.Number val,
java.lang.Number min,
java.lang.Number max,
java.lang.Number step) |
void |
setValue(javax.swing.JComponent aComponent,
java.awt.Color aValue)
Returns a component's value from given Color.
|
void |
setValue(javax.swing.JComponent aComponent,
float aValue)
Returns the text component's text string from a float.
|
void |
setValue(javax.swing.JComponent aComponent,
int aValue)
Returns the text component's text string from an int.
|
void |
setValue(javax.swing.JComponent aComponent,
java.lang.Object aValue)
Sets a component's value.
|
void |
setValue(javax.swing.JComponent aComponent,
java.lang.String aValue)
Sets the text component's text string.
|
RXElement |
toXML(javax.swing.JComponent aComponent,
RXArchiver anArchiver)
XML archival.
|
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
public java.lang.Object newInstance(RXElement anElement)
newInstance
in class RJHelper
public void initInstance(javax.swing.JComponent aComponent)
initInstance
in class RJHelper
public java.lang.String getStringValue(javax.swing.JComponent aComponent)
getStringValue
in class RJHelper
public int getIntValue(javax.swing.JComponent aComponent)
getIntValue
in class RJHelper
public float getFloatValue(javax.swing.JComponent aComponent)
getFloatValue
in class RJHelper
public void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)
public void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)
public void setValue(javax.swing.JComponent aComponent, int aValue)
public void setValue(javax.swing.JComponent aComponent, float aValue)
public void setValue(javax.swing.JComponent aComponent, java.awt.Color aValue)
public boolean isEditable(javax.swing.JSpinner spinner)
public void setEditable(javax.swing.JSpinner spinner, boolean value)
public RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)
public void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)
public void setNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)
public void resetNumberModel(javax.swing.JSpinner spinner, java.lang.Number val, java.lang.Number min, java.lang.Number max, java.lang.Number step)