com.tensegrity.composite.event
Class CompositeTableModelEvent

java.lang.Object
  extended bycom.tensegrity.composite.event.CompositeTableModelEvent
All Implemented Interfaces:
CompositeRootEvent

public class CompositeTableModelEvent
extends java.lang.Object
implements CompositeRootEvent

This event is fired on all registered CompositeTableModelListener's whenever a change in the table model occurs. For example, an event of this type is fired when columns or rows are added or removed.

Version:
$Id: CompositeTableModelEvent.java,v 1.9 2006/02/22 12:54:59 BurkhardWick Exp $
Author:
Andreas Ebbert

Field Summary
static int CELL_ADDED
          the different types of this event
static int CELL_CHANGED
          the different types of this event
static int CELL_REMOVED
          the different types of this event
static int CLEARED
          the different types of this event
static int COLUMN_ADDED
          the different types of this event
static int COLUMN_COUNT_CHANGED
          the different types of this event
static int COLUMN_REMOVED
          the different types of this event
static int RESIZING
          the different types of this event
static int ROW_ADDED
          the different types of this event
static int ROW_COUNT_CHANGED
          the different types of this event
static int ROW_REMOVED
          the different types of this event
 
Constructor Summary
CompositeTableModelEvent(int type, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type.
CompositeTableModelEvent(int index, int type, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type and the index where the change in the model occurred.
CompositeTableModelEvent(int column, int row, int type, Composite composite, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type and the column and row and composite on which the change in the model occurred.
CompositeTableModelEvent(int column, int row, int type, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type and the column and row where the change in the model occurred.
CompositeTableModelEvent(int columnStart, int rowStart, int columnStop, int rowStop, int type, Composite composite, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type and the area where the change in the model occurred.
CompositeTableModelEvent(int columnStart, int rowStart, int columnStop, int rowStop, int type, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Constructor specifying the event type and the area where the change in the model occurred.
 
Method Summary
 Composite getComposite()
          Returns the composite that has been passed to the constructor of this event instance
 int getFirstColumn()
          Returns the (first) column of this event.
 int getFirstRow()
          Returns the (first) row of this event.
 int getLastColumn()
          Returns the (last) column of this event.
 int getLastRow()
          Returns the (last) row of this event.
 com.tensegrity.composite.defaultimpl.table.CompositeTableModel getModel()
          Returns the affected CompositeTableModel instance.
 int getType()
          Returns the type of this event.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESIZING

public static final int RESIZING
the different types of this event

See Also:
Constant Field Values

COLUMN_COUNT_CHANGED

public static final int COLUMN_COUNT_CHANGED
the different types of this event

See Also:
Constant Field Values

ROW_COUNT_CHANGED

public static final int ROW_COUNT_CHANGED
the different types of this event

See Also:
Constant Field Values

COLUMN_ADDED

public static final int COLUMN_ADDED
the different types of this event

See Also:
Constant Field Values

COLUMN_REMOVED

public static final int COLUMN_REMOVED
the different types of this event

See Also:
Constant Field Values

ROW_ADDED

public static final int ROW_ADDED
the different types of this event

See Also:
Constant Field Values

ROW_REMOVED

public static final int ROW_REMOVED
the different types of this event

See Also:
Constant Field Values

CELL_ADDED

public static final int CELL_ADDED
the different types of this event

See Also:
Constant Field Values

CELL_REMOVED

public static final int CELL_REMOVED
the different types of this event

See Also:
Constant Field Values

CELL_CHANGED

public static final int CELL_CHANGED
the different types of this event

See Also:
Constant Field Values

CLEARED

public static final int CLEARED
the different types of this event

See Also:
Constant Field Values
Constructor Detail

CompositeTableModelEvent

public CompositeTableModelEvent(int type,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type.

Parameters:
type - the type of this event. Valid values are
model - The source model of this event RESIZING, COLUMN_ADDED, COLUMN_REMOVED, ROW_ADDED or ROW_REMOVED.

CompositeTableModelEvent

public CompositeTableModelEvent(int index,
                                int type,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the index where the change in the model occurred. Index is the number of the row when type is one of the 2 row types, or the column.

Parameters:
index - the column / row where the change occurred.
type - the type of event.
model - The source model of this event

CompositeTableModelEvent

public CompositeTableModelEvent(int column,
                                int row,
                                int type,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the column and row where the change in the model occurred.

Parameters:
column - the column of the change.
row - the row of the change
type - the type of event.
model - The source model of this event

CompositeTableModelEvent

public CompositeTableModelEvent(int column,
                                int row,
                                int type,
                                Composite composite,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the column and row and composite on which the change in the model occurred.

Parameters:
column - the column of the change.
row - the row of the change
type - the type of event.
composite - the affected Composite.
model - The source model of this event

CompositeTableModelEvent

public CompositeTableModelEvent(int columnStart,
                                int rowStart,
                                int columnStop,
                                int rowStop,
                                int type,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the area where the change in the model occurred.

Parameters:
columnStart - the start column.
rowStart - the start row.
columnStop - the stop column.
rowStop - the stop row.
type - the type of the event.
model - The source model of this event

CompositeTableModelEvent

public CompositeTableModelEvent(int columnStart,
                                int rowStart,
                                int columnStop,
                                int rowStop,
                                int type,
                                Composite composite,
                                com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the area where the change in the model occurred.

Parameters:
columnStart - the start column.
rowStart - the start row.
columnStop - the stop column.
rowStop - the stop row.
type - the type of the event.
composite - the composite for composite add and remove events
model - The source model of this event
Method Detail

getFirstColumn

public int getFirstColumn()
Returns the (first) column of this event.

Returns:
the (first) column of this event.

getFirstRow

public int getFirstRow()
Returns the (first) row of this event.

Returns:
the (first) row of this event.

getLastColumn

public int getLastColumn()
Returns the (last) column of this event.

Returns:
the (last) column of this event.

getLastRow

public int getLastRow()
Returns the (last) row of this event.

Returns:
the (last) row of this event.

getType

public int getType()
Returns the type of this event.

Returns:
the type of this event.

toString

public java.lang.String toString()

getComposite

public Composite getComposite()
Returns the composite that has been passed to the constructor of this event instance

Returns:
the composite that has been passed to the constructor of this event instance

getModel

public com.tensegrity.composite.defaultimpl.table.CompositeTableModel getModel()
Returns the affected CompositeTableModel instance.

Returns:
the affected CompositeTableModel instance.


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