com.starteam.events
Class LabelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.starteam.events.LabelEvent
All Implemented Interfaces:
java.io.Serializable

public final class LabelEvent
extends java.util.EventObject

An event triggered whenever a Label is added, changed or deleted on the server.

See Also:
LabelListener, View.addLabelListener(com.starteam.events.LabelListener), Serialized Form

Method Summary
 Label getLabel()
          Gets the Label that has been added, changed or deleted, in its new state.
 java.lang.String toString()
          Gets a short description of this LabelEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLabel

public Label getLabel()
Gets the Label that has been added, changed or deleted, in its new state.

Returns a Label object that is not a member of the View's Label collection (that is, it is not among the Label objects returned by View.getLabels()). There may be a Label in the collection with the same ID, but it would be a physically different object that is likely to have different properties.

If an application wants to refresh the Label objects in the View's Label collection, it must explicitly call View.refreshLabels().

Returns:
The Label that has been added, changed or deleted, in its new state.
See Also:
Label, View.getLabels(), View.refreshLabels()

toString

public java.lang.String toString()
Gets a short description of this LabelEvent.

Overrides:
toString in class java.util.EventObject
Returns:
A short description of this LabelEvent.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.