public class JTableHpr extends RJHelper
Modifier and Type | Class and Description |
---|---|
static class |
JTableHpr.RibsListSelectionListener
ListSelectionListener for table.
|
static class |
JTableHpr.SampleModel
A simple sample table model so Ribs app can show sample table data.
|
Constructor and Description |
---|
JTableHpr() |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(javax.swing.JComponent aComponent,
RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
int |
getAutoResizeMode(java.lang.String aString)
Returns the auto resize mode for the given string.
|
java.lang.String |
getAutoResizeModeString(javax.swing.JTable aTable)
Returns the auto resize mode for the given JTable as a simple string.
|
int |
getIntValue(javax.swing.JComponent aComponent)
Returns the table's selected row.
|
java.lang.String |
getStringValue(javax.swing.JComponent aComponent)
Returns the table's selected cell value as a string.
|
java.lang.Object |
getValue(javax.swing.JComponent aComponent)
Returns the table's selected cell 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 |
setValue(javax.swing.JComponent aComponent,
int aValue)
Sets the table's selected row.
|
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, getFloatValue, getFocusListener, getForeground, getMaster, getMaximumSize, getMinimumSize, getOwner, getRibHeight, getRibWidth, getRibX, getRibY, getSendActionOnFocusLost, getSubstitutionClassString, isOpaque, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, 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 java.lang.Object getValue(javax.swing.JComponent aComponent)
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 void setValue(javax.swing.JComponent aComponent, int aValue)
public java.lang.String getAutoResizeModeString(javax.swing.JTable aTable)
public int getAutoResizeMode(java.lang.String aString)
public RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)
public void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)