org.safs.jvmagent
Class JTableAgent

java.lang.Object
  |
  +--org.safs.jvmagent.ObjectAgent
        |
        +--org.safs.jvmagent.ComponentAgent
              |
              +--org.safs.jvmagent.ContainerAgent
                    |
                    +--org.safs.jvmagent.JComponentAgent
                          |
                          +--org.safs.jvmagent.JChildlessAgent
                                |
                                +--org.safs.jvmagent.JTableAgent
All Implemented Interfaces:
AlternateAncestorUser, LocalAgent, LocalAgentFactoryUser
Direct Known Subclasses:
JTableAgent

public class JTableAgent
extends JChildlessAgent


Field Summary
static java.lang.String INDEX_SEP
          ";" Separator used to delimit individual items in indexed fields like columnNames, etc..
static java.lang.String[] JTABLE_PROPERTIES
          Array of property names specific to JTable types.
static java.lang.String objectType
          "JTable" (Subclasses will override) The generic object type supported by this Agent helper class.
 
Fields inherited from class org.safs.jvmagent.JComponentAgent
JCOMPONENT_PROPERTIES
 
Fields inherited from class org.safs.jvmagent.ContainerAgent
CONTAINER_PROPERTIES
 
Fields inherited from class org.safs.jvmagent.ComponentAgent
COMPONENT_PROPERTIES
 
Fields inherited from class org.safs.jvmagent.ObjectAgent
alternateAncestor, alternateAncestorClassname, factory, OBJECT_PROPERTIES
 
Constructor Summary
JTableAgent()
          Constructor for Agent.
 
Method Summary
protected  java.lang.String getColumnNames(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
protected  java.lang.String getColumnWidths(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
protected  java.lang.String getHeaderValues(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
 java.lang.String getProperty(java.lang.Object object, java.lang.String property)
          Retrieve the property value of the object if the object has the property.
 java.lang.String[] getPropertyNames(java.lang.Object object)
          Retrieve the list of available properties for the object.
protected  java.lang.String getRowHeights(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
protected  java.lang.String getSelectedColumns(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
protected  java.lang.String getSelectedRows(javax.swing.JTable table)
          Returns an INDEX_SEP delimited list of values.
 
Methods inherited from class org.safs.jvmagent.JChildlessAgent
getChildCount, getChildren
 
Methods inherited from class org.safs.jvmagent.ComponentAgent
validateActionCommand, validateComponent
 
Methods inherited from class org.safs.jvmagent.ObjectAgent
getAlternateAncestor, getAlternateAncestorClassname, getAncestorAgent, getCaption, getClassName, getID, getLevel, getLocalAgentFactory, getMatchingPathObject, getName, getStringData, getSuperClassNames, getText, isMatchingPath, isShowing, isValid, process, processAncestor, setAlternateAncestor, setAlternateAncestorClassname, setLocalAgentFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectType

public static final java.lang.String objectType
"JTable" (Subclasses will override) The generic object type supported by this Agent helper class. The generic object type is that returned by GuiClassData.getGenericObjectType. Example: Component Button Table etc..
See Also:
GuiClassData.getGenericObjectType(String)

JTABLE_PROPERTIES

public static final java.lang.String[] JTABLE_PROPERTIES
Array of property names specific to JTable types.
  1. autoCreateColumns
  2. autoResizeMode
  3. cellSelectionEnabled
  4. columnCount
  5. columnMargin
  6. columnNames
  7. columnSelectionAllowed
  8. totalColumnWidth
  9. columnWidths
  10. dragEnabled
  11. editingColumn
  12. editingRow
  13. gridColor
  14. intercellSpacing
  15. preferredViewportSize
  16. rowCount
  17. rowHeight
  18. rowHeights
  19. rowMargin
  20. rowSelectionAllowed
  21. scrollTracksViewportHeight
  22. scrollTracksViewportWidth
  23. selectedColumn
  24. selectedColumnCount
  25. selectedColumns
  26. selectedRow
  27. selectedRowCount
  28. selectedRows
  29. selectedBackground
  30. selectedForeground
  31. showHorizontalLines
  32. showVerticalLines
  33. surrendersFocusOnKeys
  34. editing
  35. headerReorderingAllowed
  36. headerResizingAllowed
  37. headerValues
  38. .caption
Subclasses will have additional property names in other named arrays. The full set of property names is received with a call to getPropertyNames();
See Also:
getPropertyNames(Object)

INDEX_SEP

public static java.lang.String INDEX_SEP
";" Separator used to delimit individual items in indexed fields like columnNames, etc.. Default value is the semicolon ";".
Constructor Detail

JTableAgent

public JTableAgent()
Constructor for Agent.
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames(java.lang.Object object)
Description copied from interface: LocalAgent
Retrieve the list of available properties for the object.
Overrides:
getPropertyNames in class JComponentAgent
Parameters:
object - -- the actual object or component to be checked -- not a pseudo reference.
Returns:
ALL_PROPERTIES
See Also:
LocalAgent.getPropertyNames(Object)

getProperty

public java.lang.String getProperty(java.lang.Object object,
                                    java.lang.String property)
                             throws NoSuchPropertyException
Description copied from interface: LocalAgent
Retrieve the property value of the object if the object has the property.
Overrides:
getProperty in class JComponentAgent
Parameters:
object - -- the actual object or component to be checked -- not a pseudo reference.
property - -- case-sensitive name of the property to retrieve
Returns:
property value which may be null
Throws:
NoSuchPropertyException -  
See Also:
LocalAgent.getProperty(Object, String)

getColumnNames

protected java.lang.String getColumnNames(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.

getColumnWidths

protected java.lang.String getColumnWidths(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.

getRowHeights

protected java.lang.String getRowHeights(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.

getSelectedColumns

protected java.lang.String getSelectedColumns(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.

getSelectedRows

protected java.lang.String getSelectedRows(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.

getHeaderValues

protected java.lang.String getHeaderValues(javax.swing.JTable table)
Returns an INDEX_SEP delimited list of values.