ilog.views.graphic.linkbundle.event
Class LinkBundleSelectionChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.graphic.linkbundle.event.LinkBundleEvent
          extended by ilog.views.graphic.linkbundle.event.LinkBundleSelectionChangedEvent
All Implemented Interfaces:
Serializable

public final class LinkBundleSelectionChangedEvent
extends LinkBundleEvent

A LinkBundleSelectionChangedEvent event is delivered to the listeners of the sublink selections in a link bundle.

Since:
JViews 8.0
See Also:
IlvLinkBundle, LinkBundleSelectionChangedListener, Serialized Form

Field Summary
static int SUBLINK_DESELECTED
          The type of the event when a sublink is deselected.
static int SUBLINK_SELECTED
          The type of the event when a sublink is selected.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LinkBundleSelectionChangedEvent(IlvLinkBundle linkBundle, IlvLinkImage sublink)
          Creates the event.
 
Method Summary
 IlvLinkBundle getLinkBundle()
          Returns the IlvLinkBundle source of the event.
 IlvLinkImage getSublink()
          Returns the sublink whose selection has changed.
 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.
 void setAdjustmentEnd(boolean set)
          Changes the Adjustment property of the event.
 void setSource(Object source)
          Changes the source of the event.
 void setSublink(IlvLinkImage sublink)
          Changes the sublink whose selection has changed.
 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

SUBLINK_SELECTED

public static final int SUBLINK_SELECTED
The type of the event when a sublink is selected.

See Also:
Constant Field Values

SUBLINK_DESELECTED

public static final int SUBLINK_DESELECTED
The type of the event when a sublink is deselected.

See Also:
Constant Field Values
Constructor Detail

LinkBundleSelectionChangedEvent

public LinkBundleSelectionChangedEvent(IlvLinkBundle linkBundle,
                                       IlvLinkImage sublink)
Creates the event.

Parameters:
linkBundle - The link bundle source of the event.
sublink - The sublink whose selection has changed.
Method Detail

setSource

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

Parameters:
source - The new source.

getLinkBundle

public IlvLinkBundle getLinkBundle()
Returns the IlvLinkBundle source of the event.

Overrides:
getLinkBundle in class LinkBundleEvent

getSublink

public IlvLinkImage getSublink()
Returns the sublink whose selection has changed.


setSublink

public void setSublink(IlvLinkImage sublink)
Changes the sublink 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 sublink may be received by the listeners at a time when the sublink is no longer in the same state that caused the event. For instance, if you select and deselect the same sublink during a selection adjustment session, the listener may receive the event caused by selecting at a time when the sublink is already deselected.

See Also:
SUBLINK_SELECTED, SUBLINK_DESELECTED, IlvLinkBundle.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.



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