Package com.ribs.helpers
Class JTableHpr
- java.lang.Object
- 
- com.ribs.RJHelper
- 
- com.ribs.helpers.JTableHpr
 
 
- 
 public class JTableHpr extends RJHelper 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 . 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJTableHpr.RibsListSelectionListenerListSelectionListener for table.static classJTableHpr.SampleModelA simple sample table model so Ribs app can show sample table data.
 - 
Constructor SummaryConstructors Constructor Description JTableHpr()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.intgetAutoResizeMode(java.lang.String aString)Returns the auto resize mode for the given string.java.lang.StringgetAutoResizeModeString(javax.swing.JTable aTable)Returns the auto resize mode for the given JTable as a simple string.intgetIntValue(javax.swing.JComponent aComponent)Returns the table's selected row.java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the table's selected cell value as a string.java.lang.ObjectgetValue(javax.swing.JComponent aComponent)Returns the table's selected cell value.voidinitInstance(javax.swing.JComponent aComponent)Initializes the given instance (actually called the first time an owner is set).java.lang.ObjectnewInstance(RXElement anElement)Creates a new instance of class for given element.voidsetValue(javax.swing.JComponent aComponent, int aValue)Sets the table's selected row.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, 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
 
- 
 
- 
- 
- 
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
 
 - 
getValuepublic java.lang.Object getValue(javax.swing.JComponent aComponent) Returns the table's selected cell value.
 - 
getStringValuepublic java.lang.String getStringValue(javax.swing.JComponent aComponent) Returns the table's selected cell value as a string.- Overrides:
- getStringValuein class- RJHelper
 
 - 
getIntValuepublic int getIntValue(javax.swing.JComponent aComponent) Returns the table's selected row.- Overrides:
- getIntValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, int aValue)Sets the table's selected row.
 - 
getAutoResizeModeStringpublic java.lang.String getAutoResizeModeString(javax.swing.JTable aTable) Returns the auto resize mode for the given JTable as a simple string.
 - 
getAutoResizeModepublic int getAutoResizeMode(java.lang.String aString) Returns the auto resize mode for the given string.
 - 
toXMLpublic RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
 
- 
 
-