Class JTableHeaderOperator

All Implemented Interfaces:
Outputable, Timeoutable

public class JTableHeaderOperator extends JComponentOperator implements Outputable, Timeoutable
ComponentOperator.BeforeDragTimeout - time to sleep before column moving
ComponentOperator.AfterDragTimeout - time to sleep after column moving
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.
Author:
Alexandre Iline (alexandre.iline@sun.com)
  • Constructor Details

    • JTableHeaderOperator

      public JTableHeaderOperator(JTableHeader b)
      Constructor.
      Parameters:
      b - a component
    • JTableHeaderOperator

      public JTableHeaderOperator(ContainerOperator cont, ComponentChooser chooser, int index)
      Constructs a JTableHeaderOperator object.
      Parameters:
      cont - a container
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
    • JTableHeaderOperator

      public JTableHeaderOperator(ContainerOperator cont, ComponentChooser chooser)
      Constructs a JTableHeaderOperator object.
      Parameters:
      cont - a container
      chooser - a component chooser specifying searching criteria.
    • JTableHeaderOperator

      public JTableHeaderOperator(ContainerOperator cont, int index)
      Constructs a JTableHeaderOperator object.
      Parameters:
      cont - a container
      index - an index between appropriate ones.
    • JTableHeaderOperator

      public JTableHeaderOperator(ContainerOperator cont)
      Constructs a JTableHeaderOperator object.
      Parameters:
      cont - a container
  • Method Details

    • setTimeouts

      public void setTimeouts(Timeouts times)
      Description copied from interface: Timeoutable
      Defines current timeouts.
      Specified by:
      setTimeouts in interface Timeoutable
      Overrides:
      setTimeouts in class JComponentOperator
      Parameters:
      times - A collection of timeout assignments.
      See Also:
    • getTimeouts

      public Timeouts getTimeouts()
      Description copied from interface: Timeoutable
      Return current timeouts.
      Specified by:
      getTimeouts in interface Timeoutable
      Overrides:
      getTimeouts in class JComponentOperator
      Returns:
      the collection of current timeout assignments.
      See Also:
    • setOutput

      public void setOutput(TestOut out)
      Description copied from interface: Outputable
      Defines print output streams or writers.
      Specified by:
      setOutput in interface Outputable
      Overrides:
      setOutput in class JComponentOperator
      Parameters:
      out - Identify the streams or writers used for print output.
      See Also:
    • getOutput

      public TestOut getOutput()
      Description copied from interface: Outputable
      Returns print output streams or writers.
      Specified by:
      getOutput in interface Outputable
      Overrides:
      getOutput in class JComponentOperator
      Returns:
      an object that contains references to objects for printing to output and err streams.
      See Also:
    • selectColumn

      public void selectColumn(int columnIndex)
      Selects a column.
      Parameters:
      columnIndex - an index of a column to select.
    • selectColumns

      public void selectColumns(int[] columnIndices)
      Selects some columns.
      Parameters:
      columnIndices - indices of columns to select.
    • moveColumn

      public void moveColumn(int moveColumn, int moveTo)
      Moves a column to a different location.
      Parameters:
      moveColumn - an original column index.
      moveTo - a desctination column index.
    • getPointToClick

      public Point getPointToClick(int columnIndex)
      Return a point to click on column header.
      Parameters:
      columnIndex - an index of a column to click on.
      Returns:
      the point to click.
    • copyEnvironment

      public void copyEnvironment(Operator anotherOperator)
      Description copied from class: Operator
      Copies all environment (output, timeouts, visualizer) from another operator.
      Overrides:
      copyEnvironment in class ComponentOperator
      Parameters:
      anotherOperator - an operator to copy the environment to.
    • setTable

      public void setTable(JTable jTable)
      Maps JTableHeader.setTable(JTable) through queue
    • getTable

      public JTable getTable()
      Maps JTableHeader.getTable() through queue
    • setReorderingAllowed

      public void setReorderingAllowed(boolean b)
      Maps JTableHeader.setReorderingAllowed(boolean) through queue
    • getReorderingAllowed

      public boolean getReorderingAllowed()
      Maps JTableHeader.getReorderingAllowed() through queue
    • setResizingAllowed

      public void setResizingAllowed(boolean b)
      Maps JTableHeader.setResizingAllowed(boolean) through queue
    • getResizingAllowed

      public boolean getResizingAllowed()
      Maps JTableHeader.getResizingAllowed() through queue
    • getDraggedColumn

      public TableColumn getDraggedColumn()
      Maps JTableHeader.getDraggedColumn() through queue
    • getDraggedDistance

      public int getDraggedDistance()
      Maps JTableHeader.getDraggedDistance() through queue
    • getResizingColumn

      public TableColumn getResizingColumn()
      Maps JTableHeader.getResizingColumn() through queue
    • setUpdateTableInRealTime

      public void setUpdateTableInRealTime(boolean b)
      Maps JTableHeader.setUpdateTableInRealTime(boolean) through queue
    • getUpdateTableInRealTime

      public boolean getUpdateTableInRealTime()
      Maps JTableHeader.getUpdateTableInRealTime() through queue
    • setDefaultRenderer

      public void setDefaultRenderer(TableCellRenderer tableCellRenderer)
      Maps JTableHeader.setDefaultRenderer(TableCellRenderer) through queue
    • getDefaultRenderer

      public TableCellRenderer getDefaultRenderer()
      Maps JTableHeader.getDefaultRenderer() through queue
    • columnAtPoint

      public int columnAtPoint(Point point)
      Maps JTableHeader.columnAtPoint(Point) through queue
    • getHeaderRect

      public Rectangle getHeaderRect(int i)
      Maps JTableHeader.getHeaderRect(int) through queue
    • getUI

      public TableHeaderUI getUI()
      Maps JTableHeader.getUI() through queue
    • setUI

      public void setUI(TableHeaderUI tableHeaderUI)
      Maps JTableHeader.setUI(TableHeaderUI) through queue
    • setColumnModel

      public void setColumnModel(TableColumnModel tableColumnModel)
      Maps JTableHeader.setColumnModel(TableColumnModel) through queue
    • getColumnModel

      public TableColumnModel getColumnModel()
      Maps JTableHeader.getColumnModel() through queue
    • columnAdded

      public void columnAdded(TableColumnModelEvent tableColumnModelEvent)
      Maps JTableHeader.columnAdded(TableColumnModelEvent) through queue
    • columnRemoved

      public void columnRemoved(TableColumnModelEvent tableColumnModelEvent)
      Maps JTableHeader.columnRemoved(TableColumnModelEvent) through queue
    • columnMoved

      public void columnMoved(TableColumnModelEvent tableColumnModelEvent)
      Maps JTableHeader.columnMoved(TableColumnModelEvent) through queue
    • columnMarginChanged

      public void columnMarginChanged(ChangeEvent changeEvent)
      Maps JTableHeader.columnMarginChanged(ChangeEvent) through queue
    • columnSelectionChanged

      public void columnSelectionChanged(ListSelectionEvent listSelectionEvent)
      Maps JTableHeader.columnSelectionChanged(ListSelectionEvent) through queue
    • resizeAndRepaint

      public void resizeAndRepaint()
      Maps JTableHeader.resizeAndRepaint() through queue
    • setDraggedColumn

      public void setDraggedColumn(TableColumn tableColumn)
      Maps JTableHeader.setDraggedColumn(TableColumn) through queue
    • setDraggedDistance

      public void setDraggedDistance(int i)
      Maps JTableHeader.setDraggedDistance(int) through queue
    • setResizingColumn

      public void setResizingColumn(TableColumn tableColumn)
      Maps JTableHeader.setResizingColumn(TableColumn) through queue