Class ParamGroupsEditor.ParamGroupsTable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable
Enclosing class:
ParamGroupsEditor

public class ParamGroupsEditor.ParamGroupsTable extends JTable
A JTable that holds a list of DataGroup objects and provides display and editing capabilities
See Also:
  • Constructor Details

    • ParamGroupsTable

      public ParamGroupsTable(List infos, boolean editable)
      Create the table
      Parameters:
      infos - List of DataGroup
      editable - Are the DataGroups editable
  • Method Details

    • selectDataGroup

      public void selectDataGroup(DataGroup info)
      Select the param info
      Parameters:
      info - info
    • getDataGroupList

      public List getDataGroupList()
      Return the list of DataGroup-s held by this table
      Returns:
      List of param infos
    • getSelectedDataGroupList

      public List getSelectedDataGroupList()
      Get the list of selected param infos
      Returns:
      list of selected param infos
    • getDataGroup

      public DataGroup getDataGroup(int row)
      Return the DataGroup
      Parameters:
      row -
      Returns:
      The DataGroup
    • editRow

      public boolean editRow(DataGroup dataGroup)
      Edit the param info
      Parameters:
      dataGroup - info to edit
      Returns:
      user pressed ok
    • editRow

      public boolean editRow(DataGroup dataGroup, boolean removeOnCancel)
      Edit row
      Parameters:
      dataGroup - param info
      removeOnCancel - Should remove param info if user presses cancel_
      Returns:
      ok
    • errorMsg

      protected void errorMsg(String msg)
      Helper to show an error message
      Parameters:
      msg - The message
    • getToolTipText

      public String getToolTipText(MouseEvent event)
      Tool tip for the table
      Overrides:
      getToolTipText in class JTable
      Parameters:
      event - The event
      Returns:
      The tooltip text
    • findByName

      public DataGroup findByName(String name)
      Find the DataGroup from the name
      Parameters:
      name - name
      Returns:
      param info
    • add

      public void add(DataGroup i)
      Add the DataGroup into the table
      Parameters:
      i -
    • addBeginning

      public void addBeginning(DataGroup i)
      Add the DataGroup into the table
      Parameters:
      i -
    • addNewRow

      public void addNewRow()
      Add a new row
    • removeRow

      protected void removeRow(int row)
      Remove the given row
      Parameters:
      row - The given row
    • tableChanged

      public void tableChanged()
      Table changed