Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.locked
Class LockedTableModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.sciapp.table.locked.LockedTableModelEvent
All Implemented Interfaces:
Serializable

public class LockedTableModelEvent
extends EventObject

An event used to notify listeners that a locked table model has changed, such as a locked row/column was added/removed from the table.

See Also:
Serialized Form

Field Summary
protected  int amount
          The number of locked rows/columns at the specified direction.
protected  int direction
          The direction - one of LockedTableModel's directions: TOP, BOTTOM, LEFT or RIGHT.
protected  int previousAmount
          The previous number of locked rows/columns at the specified direction.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LockedTableModelEvent(LockedTableModel source, int direction, int amount)
          Constructs a LockedTableModelEvent.
LockedTableModelEvent(LockedTableModel source, int direction, int amount, int previousAmount)
          Constructs a LockedTableModelEvent.
 
Method Summary
 int getAmount()
          Returns the number of locked rows/columns at the specified direction.
 int getDirection()
          Returns the side that the locked row or column belongs to.
 int getPreviousAmount()
          Returns the previous number of locked rows/columns at the specified direction.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

direction

protected int direction
The direction - one of LockedTableModel's directions: TOP, BOTTOM, LEFT or RIGHT.


amount

protected int amount
The number of locked rows/columns at the specified direction.


previousAmount

protected int previousAmount
The previous number of locked rows/columns at the specified direction.

Constructor Detail

LockedTableModelEvent

public LockedTableModelEvent(LockedTableModel source,
                             int direction,
                             int amount)
Constructs a LockedTableModelEvent.


LockedTableModelEvent

public LockedTableModelEvent(LockedTableModel source,
                             int direction,
                             int amount,
                             int previousAmount)
Constructs a LockedTableModelEvent.

Method Detail

getAmount

public int getAmount()
Returns the number of locked rows/columns at the specified direction.

Returns:
the number of locked rows/columns.

getDirection

public int getDirection()
Returns the side that the locked row or column belongs to.

Returns:
one of LockedTableModel's directions: TOP, BOTTOM, LEFT or RIGHT.

getPreviousAmount

public int getPreviousAmount()
Returns the previous number of locked rows/columns at the specified direction.

Returns:
the previous number of locked rows/columns.

Copyright © 2005 Scientific Applications. All Rights Reserved.