com.tensegrity.composite.event
Class CompositeTableSelectionEvent

java.lang.Object
  extended bycom.tensegrity.composite.event.CompositeTableSelectionEvent

public class CompositeTableSelectionEvent
extends java.lang.Object

A CompositeTableSelectionEvent is fired when a cell, column or row selection in the CompositeTable has occurred.

The following selection types are defined in interface CompositeTableSelectionEvent:

Type NOTHING_SELECTED indicates that a deselection has occurred and no more table elements are selected. It is a masked type that is always used in conjunction with one of the types containing the postfix DESELECTED in its name. Thus, when a call to getType() returns value ROW_DESELECTED | NOTHING_SELECTED, you will know that a row has been deselected and now no more elements are selected.

Version:
$Id: CompositeTableSelectionEvent.java,v 1.12 2005/04/18 15:14:50 AndreasEbbert Exp $
Author:
Andreas Ebbert
See Also:
CompositeTableSelectionListener

Field Summary
static int CELL_DESELECTED
          A cell was deselected.
static int CELL_SELECTED
          A cell was selected.
static int COLUMN_DESELECTED
          A column was deselected.
static int COLUMN_SELECTED
          A column was selected.
static int NOTHING_SELECTED
          Indicating that nothing is selected.
static int ROW_DESELECTED
          A row was deselected.
static int ROW_SELECTED
          A column was selected.
 
Constructor Summary
CompositeTableSelectionEvent(int type)
          Constructor specifying the type of selection that occurred.
CompositeTableSelectionEvent(int colOrRow, int type)
          Constructor specifying the type of selection that occurred and the column or row where it occurred.
CompositeTableSelectionEvent(int column, int row, int type)
          Constructor specifying the type of selection that occurred and the column or row where it occurred.
 
Method Summary
 int getColumn()
          Returns the column of this selection event.
 int getRow()
          Returns the row of this selection event.
 int getType()
          Returns the type of the selection.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOTHING_SELECTED

public static final int NOTHING_SELECTED
Indicating that nothing is selected.

See Also:
Constant Field Values

COLUMN_SELECTED

public static final int COLUMN_SELECTED
A column was selected.

See Also:
Constant Field Values

COLUMN_DESELECTED

public static final int COLUMN_DESELECTED
A column was deselected.

See Also:
Constant Field Values

ROW_SELECTED

public static final int ROW_SELECTED
A column was selected.

See Also:
Constant Field Values

ROW_DESELECTED

public static final int ROW_DESELECTED
A row was deselected.

See Also:
Constant Field Values

CELL_SELECTED

public static final int CELL_SELECTED
A cell was selected.

See Also:
Constant Field Values

CELL_DESELECTED

public static final int CELL_DESELECTED
A cell was deselected.

See Also:
Constant Field Values
Constructor Detail

CompositeTableSelectionEvent

public CompositeTableSelectionEvent(int type)
Constructor specifying the type of selection that occurred.

Parameters:
type - the selection type.

CompositeTableSelectionEvent

public CompositeTableSelectionEvent(int colOrRow,
                                    int type)
Constructor specifying the type of selection that occurred and the column or row where it occurred.

Parameters:
colOrRow - the column or row where the selection occurred.
type - the selection type.

CompositeTableSelectionEvent

public CompositeTableSelectionEvent(int column,
                                    int row,
                                    int type)
Constructor specifying the type of selection that occurred and the column or row where it occurred.

Parameters:
column - the column of the cell where the selection occurred.
row - the row of the cell where the selection occurred.
type - the selection type.
Method Detail

getType

public int getType()
Returns the type of the selection.

Returns:
the type of the selection.

getColumn

public int getColumn()
Returns the column of this selection event.

Returns:
the column of this selection event.

getRow

public int getRow()
Returns the row of this selection event.

Returns:
the row of this selection event.

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.