Package com.ribs.helpers
Class JTableHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JTableHpr
This class is a JTable helper class to do some table management and archival for Ribs.
 
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classListSelectionListener for table.static classA simple sample table model so Ribs app can show sample table data.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.intgetAutoResizeMode(String aString) Returns the auto resize mode for the given string.getAutoResizeModeString(JTable aTable) Returns the auto resize mode for the given JTable as a simple string.intgetIntValue(JComponent aComponent) Returns the table's selected row.getStringValue(JComponent aComponent) Returns the table's selected cell value as a string.getValue(JComponent aComponent) Returns the table's selected cell value.voidinitInstance(JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).newInstance(RXElement anElement) Creates a new instance of class for given element.voidsetValue(JComponent aComponent, int aValue) Sets the table's selected row.toXML(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, 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
- 
Constructor Details- 
JTableHprpublic JTableHpr()
 
- 
- 
Method Details- 
newInstanceCreates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
- 
initInstanceInitializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
- 
getValueReturns the table's selected cell value.
- 
getStringValueReturns the table's selected cell value as a string.- Overrides:
- getStringValuein class- RJHelper
 
- 
getIntValueReturns the table's selected row.- Overrides:
- getIntValuein class- RJHelper
 
- 
setValueSets the table's selected row.
- 
getAutoResizeModeStringReturns the auto resize mode for the given JTable as a simple string.
- 
getAutoResizeModeReturns the auto resize mode for the given string.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-