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 <info@reportmill.com>.

  • Constructor Details

    • JTableHpr

      public JTableHpr()
  • Method Details

    • newInstance

      public Object newInstance(RXElement anElement)
      Creates a new instance of class for given element.
      Overrides:
      newInstance in class RJHelper
    • initInstance

      public void initInstance(JComponent aComponent)
      Initializes the given instance (actually called the first time an owner is set).
      Overrides:
      initInstance in class RJHelper
    • getValue

      public Object getValue(JComponent aComponent)
      Returns the table's selected cell value.
      Overrides:
      getValue in class RJHelper
    • getStringValue

      public String getStringValue(JComponent aComponent)
      Returns the table's selected cell value as a string.
      Overrides:
      getStringValue in class RJHelper
    • getIntValue

      public int getIntValue(JComponent aComponent)
      Returns the table's selected row.
      Overrides:
      getIntValue in class RJHelper
    • setValue

      public void setValue(JComponent aComponent, int aValue)
      Sets the table's selected row.
      Overrides:
      setValue in class RJHelper
    • getAutoResizeModeString

      public String getAutoResizeModeString(JTable aTable)
      Returns the auto resize mode for the given JTable as a simple string.
    • getAutoResizeMode

      public int getAutoResizeMode(String aString)
      Returns the auto resize mode for the given string.
    • toXML

      public RXElement toXML(JComponent aComponent, RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXML in class RJHelper
    • fromXML

      public void fromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXML in class RJHelper