ilog.views.event
Class ManagerSelectionChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.event.ManagerEvent
          extended by ilog.views.event.ManagerSelectionChangedEvent
All Implemented Interfaces:
Serializable

public final class ManagerSelectionChangedEvent
extends ManagerEvent

A ManagerSelectionChangedEvent event is delivered to the listeners of the selections in a manager.

See Also:
ManagerSelectionListener, Serialized Form

Field Summary
static int OBJECT_DESELECTED
          The type of the event when an object is deselected.
static int OBJECT_SELECTED
          The type of the event when an object is selected.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ManagerSelectionChangedEvent(IlvManager manager, IlvGraphic obj)
          Creates the event.
 
Method Summary
 IlvGraphic getGraphic()
          Returns the graphic object whose selection has changed.
 IlvManager getManager()
          Returns the manager source of the event.
 int getType()
          Returns the type of the event.
 boolean isAdjusting()
          Returns true if this event is part of a series of several events.
 boolean isAdjustmentEnd()
          Returns true if this event is the last of a series of several events.
 void setAdjusting(boolean set)
          Changes the adjusting mode of the event You should not call this method.
 void setAdjustmentEnd(boolean set)
          Changes the 'Adjustment' property of the event.
 void setGraphic(IlvGraphic graphic)
          Changes the graphic object whose selection has changed.
 void setSource(Object source)
          Changes the source of the event.
 void setType(int type)
          Sets the type of the event.
 
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

OBJECT_SELECTED

public static final int OBJECT_SELECTED
The type of the event when an object is selected.

Since:
JViews 5.5
See Also:
Constant Field Values

OBJECT_DESELECTED

public static final int OBJECT_DESELECTED
The type of the event when an object is deselected.

Since:
JViews 5.5
See Also:
Constant Field Values
Constructor Detail

ManagerSelectionChangedEvent

public ManagerSelectionChangedEvent(IlvManager manager,
                                    IlvGraphic obj)
Creates the event.

Parameters:
manager - The manager source of the event.
obj - The graphic object whose selection has changed.
Method Detail

setSource

public void setSource(Object source)
Changes the source of the event.

Parameters:
source - The new source.

getManager

public IlvManager getManager()
Returns the manager source of the event.

Overrides:
getManager in class ManagerEvent

getGraphic

public IlvGraphic getGraphic()
Returns the graphic object whose selection has changed.


setGraphic

public void setGraphic(IlvGraphic graphic)
Changes the graphic object whose selection has changed. You should not call this method. This method is public for implementation purposes.


isAdjusting

public boolean isAdjusting()
Returns true if this event is part of a series of several events.


setAdjusting

public void setAdjusting(boolean set)
Changes the adjusting mode of the event You should not call this method. This method is public for implementation purposes.


isAdjustmentEnd

public boolean isAdjustmentEnd()
Returns true if this event is the last of a series of several events.


setAdjustmentEnd

public void setAdjustmentEnd(boolean set)
Changes the 'Adjustment' property of the event. You should not call this method. This method is public for implementation purposes.


getType

public final int getType()
Returns the type of the event. The type indicates the cause of the event. If adjusting, firing of events are delayed for efficiency reasons. A series of selections and deselections on the same object may be received by the listeners at a time when the object is no longer in the same state that caused the event. For instance, if you select and deselect the same object during a selection adjustment session, the listener may receive the event caused by selecting at a time when the object is already deselected.

Since:
JViews 5.5
See Also:
OBJECT_SELECTED, OBJECT_DESELECTED, IlvManager.setSelectionAdjusting(boolean)

setType

public void setType(int type)
Sets the type of the event. You should not call this method. This method is public for implementation purposes.

Since:
JViews 5.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.