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 Detail

      • JTableHeaderOperator

        public JTableHeaderOperator​(javax.swing.table.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 Detail

      • 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 java.awt.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​(javax.swing.JTable jTable)
        Maps JTableHeader.setTable(JTable) through queue
      • getTable

        public javax.swing.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 javax.swing.table.TableColumn getDraggedColumn()
        Maps JTableHeader.getDraggedColumn() through queue
      • getDraggedDistance

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

        public javax.swing.table.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​(javax.swing.table.TableCellRenderer tableCellRenderer)
        Maps JTableHeader.setDefaultRenderer(TableCellRenderer) through queue
      • getDefaultRenderer

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

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

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

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

        public void setUI​(javax.swing.plaf.TableHeaderUI tableHeaderUI)
        Maps JTableHeader.setUI(TableHeaderUI) through queue
      • setColumnModel

        public void setColumnModel​(javax.swing.table.TableColumnModel tableColumnModel)
        Maps JTableHeader.setColumnModel(TableColumnModel) through queue
      • getColumnModel

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

        public void columnAdded​(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
        Maps JTableHeader.columnAdded(TableColumnModelEvent) through queue
      • columnRemoved

        public void columnRemoved​(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
        Maps JTableHeader.columnRemoved(TableColumnModelEvent) through queue
      • columnMoved

        public void columnMoved​(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
        Maps JTableHeader.columnMoved(TableColumnModelEvent) through queue
      • columnMarginChanged

        public void columnMarginChanged​(javax.swing.event.ChangeEvent changeEvent)
        Maps JTableHeader.columnMarginChanged(ChangeEvent) through queue
      • columnSelectionChanged

        public void columnSelectionChanged​(javax.swing.event.ListSelectionEvent listSelectionEvent)
        Maps JTableHeader.columnSelectionChanged(ListSelectionEvent) through queue
      • resizeAndRepaint

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

        public void setDraggedColumn​(javax.swing.table.TableColumn tableColumn)
        Maps JTableHeader.setDraggedColumn(TableColumn) through queue
      • setDraggedDistance

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

        public void setResizingColumn​(javax.swing.table.TableColumn tableColumn)
        Maps JTableHeader.setResizingColumn(TableColumn) through queue