Package rma.swing

Class RmaJXTreeTable

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
org.jdesktop.swingx.JXTable
org.jdesktop.swingx.JXTreeTable
rma.swing.RmaJXTreeTable
All Implemented Interfaces:
ItemListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable, org.jdesktop.swingx.event.TableColumnModelExtListener, Modifiable, FormManagementListener

public class RmaJXTreeTable extends org.jdesktop.swingx.JXTreeTable implements MouseListener, ItemListener, FormManagementListener, Modifiable
See Also:
  • Field Details

  • Constructor Details

    • RmaJXTreeTable

      public RmaJXTreeTable()
    • RmaJXTreeTable

      public RmaJXTreeTable(org.jdesktop.swingx.treetable.TreeTableModel model)
  • Method Details

    • init

      protected void init()
    • createScrollPane

      protected JScrollPane createScrollPane()
    • getToolTipText

      public String getToolTipText(MouseEvent event)
      Overrides:
      getToolTipText in class org.jdesktop.swingx.JXTreeTable
    • getScrollPane

      public JScrollPane getScrollPane()
      return the scroll pane that this table is residing in this is the component that needs added to the screen
      Returns:
      The ScrollPane value
    • setComboBoxEditor

      public JComboBox setComboBoxEditor(int col, Vector<Object> data)
      set the column col to have a combo box editor with the dropdown filled with data
      Parameters:
      col - The new ComboBoxEditor value
      data - The new ComboBoxEditor value
      Returns:
      Description
    • setComboBoxEditor

      public JComboBox setComboBoxEditor(int col, Object[] data)
      Parameters:
      col -
      data -
      Returns:
    • setComboBoxRowEditor

      public JComboBox setComboBoxRowEditor(TreeNode node, int col, Vector data)
    • mouseClicked

      public void mouseClicked(MouseEvent arg0)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent arg0)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent arg0)
      Specified by:
      mouseExited in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent arg0)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent arg0)
      Specified by:
      mouseReleased in interface MouseListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      editor listener methods
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      e - Description
    • isModified

      public boolean isModified()
      returns whether this table has been modified
      Specified by:
      isModified in interface Modifiable
      Returns:
      The Modified value
    • setModified

      public void setModified(boolean modified)
      sets whether this table has been modified
      Specified by:
      setModified in interface Modifiable
      Parameters:
      modified - The new Modified value
    • clearPerformed

      public void clearPerformed()
      Specified by:
      clearPerformed in interface FormManagementListener
    • clearCells

      public void clearCells()
      clear all the cells, leaving cells visible on screen
    • commitEdit

      public boolean commitEdit(boolean commit)
      if editing is occurring, either commit or cancel it
      Parameters:
      commit - Description
      Returns:
      Description
    • getClearedCellValue

      protected Object getClearedCellValue(int col)
      get the default value to be used when a cell is cleared.
      Returns:
    • setMlHeaderRenderer

      public MleHeadRenderer setMlHeaderRenderer()
      sets table up to display multi line headers
    • setColumnWidths

      public void setColumnWidths(int... widths)
      set the column widths to the array of widths.
      Parameters:
      widths - The new ColumnWidths value
    • setColumnWidth

      public void setColumnWidth(int colNum, int width)
      set the column width for a given column
      Parameters:
      colNum - The new ColumnWidth value
      width - The new ColumnWidth value
    • setAlternatingReportBackground

      public void setAlternatingReportBackground(boolean b)
    • getAlternatingReportBackground

      public boolean getAlternatingReportBackground()
    • setAlternatingReportBackgroundColor

      public void setAlternatingReportBackgroundColor(Color color)
    • getAlternatingReportBackgroundColor

      public Color getAlternatingReportBackgroundColor()
    • setRowForeground

      public void setRowForeground(int rowNum, Color rfColor)
      set the foreground color for the row at rowNum
      Parameters:
      rowNum - The new RowForeground value
      rfColor - The new RowForeground value
    • getRowForeground

      public Color getRowForeground(int rowNum)
      get the foreground color for the row at rowNum
      Parameters:
      rowNum - Description
      Returns:
      The RowForeground value