Class JTableShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class JTableShape extends JComponentShape
A RMShape subclass for JTable.
  • Constructor Details

    • JTableShape

      public JTableShape()
  • Method Details

    • getShowHeader

      public boolean getShowHeader()
      Returns whether to show header.
    • setShowHeader

      public void setShowHeader(boolean aValue)
      Sets whether to show header.
    • getRowSelectionAllowed

      public boolean getRowSelectionAllowed()
      Returns whether row selection is allowed.
    • setRowSelectionAllowed

      public void setRowSelectionAllowed(boolean aValue)
      Sets whether row selection is allowed.
    • getColumnSelectionAllowed

      public boolean getColumnSelectionAllowed()
      Returns whether column selection is allowed.
    • setColumnSelectionAllowed

      public void setColumnSelectionAllowed(boolean aValue)
      Sets whether row selection is allowed.
    • getAutoResizeMode

      public int getAutoResizeMode()
      Returns the auto resize mode.
    • setAutoResizeMode

      public void setAutoResizeMode(int aValue)
      Sets the auto resize mode.
    • getAutoResizeModeString

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

      public void setAutoResizeModeString(String aString)
      Set the auto resize mode for a table from the given string.
    • getSelectionMode

      public int getSelectionMode()
      Returns the selection mode.
    • setSelectionMode

      public void setSelectionMode(int aValue)
      Sets the selection mode.
    • getSelectionModeString

      public String getSelectionModeString()
      Returns the selection mode string for a table.
    • setSelectionModeString

      public void setSelectionModeString(String aString)
      Sets the selection mode for a table from given string.
    • getShowHorizontalLines

      public boolean getShowHorizontalLines()
      Returns whether to show horizontal lines.
    • setShowHorizontalLines

      public void setShowHorizontalLines(boolean aValue)
      Sets whether to show horizontal lines.
    • getShowVerticalLines

      public boolean getShowVerticalLines()
      Returns whether to show vertical lines.
    • setShowVerticalLines

      public void setShowVerticalLines(boolean aValue)
      Sets whether to show vertical lines.
    • getAutoCreateRowSorter

      public boolean getAutoCreateRowSorter()
      Returns whether to auto create row sorter.
    • setAutoCreateRowSorter

      public void setAutoCreateRowSorter(boolean aValue)
      Sets whether to auto create row sorter.
    • getGridColor

      public RMColor getGridColor()
      Returns grid color.
    • setGridColor

      public void setGridColor(RMColor aValue)
      Sets grid color.
    • getRowHeight

      public int getRowHeight()
      Returns the row height.
    • setRowHeight

      public void setRowHeight(int aValue)
      Sets the row height.
    • getIntercellSpacing

      public Dimension getIntercellSpacing()
      Returns the intercell spacing.
    • setIntercellSpacing

      public void setIntercellSpacing(Dimension aValue)
      Sets the intercell spacing.
    • getColumnCount

      public int getColumnCount()
      Returns the number of columns.
    • getColumnShape

      public JTableColumnShape getColumnShape(int anIndex)
      Returns the column shape at given index.
    • superSelectable

      public boolean superSelectable()
      Editor method - overrides default implementation to indicate shape is super selectable.
      Overrides:
      superSelectable in class RMShape
    • childrenSuperSelectImmediately

      public boolean childrenSuperSelectImmediately()
      Editor method - overrides default implementation to indicate children should super select immediately.
      Overrides:
      childrenSuperSelectImmediately in class RMShape
    • layoutChildren

      protected void layoutChildren()
      Performs layout.
      Overrides:
      layoutChildren in class RMParentShape
    • getComponentClass

      public Class<? extends JComponent> getComponentClass()
      Returns the component class for this component shape.
      Overrides:
      getComponentClass in class JComponentShape
    • configureComponent

      protected void configureComponent(JBuilder aBldr, JComponent aComp)
      Configures the component.
      Overrides:
      configureComponent in class JComponentShape
    • createComponentDeep

      public void createComponentDeep(JBuilder aBldr, JComponent aComp)
      Override to add children as TableColumns.
      Overrides:
      createComponentDeep in class JComponentShape
    • toXMLShape

      public RXElement toXMLShape(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXMLShape in class JComponentShape
    • fromXMLShape

      public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class JComponentShape