tico.components.events
Class OrderChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by tico.components.events.OrderChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class OrderChangeEvent
extends java.util.EventObject

A semantic event which indicates that a change of order action occured. This event is generated by an ordered list component (such as a TOrderList) when the change of order occurs. The event is passed to every every OrderChangeListener object that registered to receive such events using the component's addOrderChangeListener method. The object that implements the OrderChangeListener interface gets this OrderChangeEvent when the event occurs.

Version:
1.0 Nov 20, 2006
Author:
Pablo Muñoz
See Also:
Serialized Form

Constructor Summary
OrderChangeEvent(java.lang.Object source, java.lang.Object changedObject, int initialPosition, int finalPosition)
          Constructs an OrderChangeEvent object.
 
Method Summary
 java.lang.Object getChangedObject()
          Returns the position changed object.
 int getFinalPosition()
          Returns the changed object finalPosition.
 int getInitialPosition()
          Returns the changed object initialPosition.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderChangeEvent

public OrderChangeEvent(java.lang.Object source,
                        java.lang.Object changedObject,
                        int initialPosition,
                        int finalPosition)
Constructs an OrderChangeEvent object.

Parameters:
source - The object that originated the event
changedObject - The position changed object
initialPosition - The changed object initialPosition
finalPosition - The changed object finalPosition
Method Detail

getChangedObject

public java.lang.Object getChangedObject()
Returns the position changed object.

Returns:
The position changed object

getInitialPosition

public int getInitialPosition()
Returns the changed object initialPosition.

Returns:
The changed object initialPosition

getFinalPosition

public int getFinalPosition()
Returns the changed object finalPosition.

Returns:
The changed object finalPosition