Class ObjectTableModel

All Implemented Interfaces:
Serializable, TableModel

public class ObjectTableModel extends DefaultTableModel
The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
See Also:
  • Constructor Details

    • ObjectTableModel

      public ObjectTableModel(String[] headers, Class<?> _objClass, Functor[] readFunctors, Functor[] writeFunctors, Class<?>[] editorClasses)
      The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
      Parameters:
      headers - - Column names
      _objClass - - Object class that will be used
      readFunctors - - used to get the values
      writeFunctors - - used to set the values
      editorClasses - - class for each column
    • ObjectTableModel

      public ObjectTableModel(String[] headers, Class<?> _objClass, Functor[] readFunctors, Functor[] writeFunctors, Class<?>[] editorClasses, boolean cellEditable)
      The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
      Parameters:
      headers - - Column names
      _objClass - - Object class that will be used
      readFunctors - - used to get the values
      writeFunctors - - used to set the values
      editorClasses - - class for each column
      cellEditable - - if cell must editable (false to allow double click on cell)
    • ObjectTableModel

      public ObjectTableModel(String[] headers, Functor[] readFunctors, Functor[] writeFunctors, Class<?>[] editorClasses)
      The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
      Parameters:
      headers - - Column names
      readFunctors - - used to get the values
      writeFunctors - - used to set the values
      editorClasses - - class for each column
  • Method Details