public class JListHpr extends RJHelper
Modifier and Type | Class and Description |
---|---|
static class |
JListHpr.Range
An inner class to describe a selected range (start, end, length).
|
static class |
JListHpr.SampleModel
A simple sample table model so Ribs app can show sample table data.
|
Constructor and Description |
---|
JListHpr() |
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 list's selected value as a float.
|
int |
getIntValue(javax.swing.JComponent aComponent)
Returns the list's selected index.
|
JListHpr.Range |
getSelectedRange(javax.swing.JList aList)
Returns the selected range as a Range object (with start, end, length).
|
java.lang.String |
getStringValue(javax.swing.JComponent aComponent)
Returns the list's selected value as a string.
|
java.lang.Object |
getValue(javax.swing.JComponent aComponent)
Returns the list's selected value.
|
void |
initInstance(javax.swing.JComponent aComponent)
Initializes the given instance (actually called the first time an owner is set).
|
java.lang.Object |
newInstance(RXElement anElement)
Creates a new instance of class for given element.
|
void |
performBindKeyGet(javax.swing.JComponent aComponent)
Performs bind key get.
|
void |
setValue(javax.swing.JComponent aComponent,
int aValue)
Sets the list's selected index.
|
void |
setValue(javax.swing.JComponent aComponent,
java.lang.Object aValue)
Sets the list selected index to index of given value.
|
void |
setValue(javax.swing.JComponent aComponent,
java.lang.String aValue)
Sets the list's selected index to the index of given 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, isOpaque, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, 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 JListHpr.Range getSelectedRange(javax.swing.JList aList)
public java.lang.Object getValue(javax.swing.JComponent aComponent)
public void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)
public java.lang.String getStringValue(javax.swing.JComponent aComponent)
getStringValue
in class RJHelper
public void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)
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, int aValue)
public RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)
public void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)
public void performBindKeyGet(javax.swing.JComponent aComponent)
RJHelper
performBindKeyGet
in class RJHelper