com.starteam
Class ViewMemberCollection.BehaviorContainer

java.lang.Object
  extended by com.starteam.ViewMemberCollection.BehaviorContainer
Enclosing class:
ViewMemberCollection

public static final class ViewMemberCollection.BehaviorContainer
extends java.lang.Object

A BehaviorContainer can be used to query for ViewMemberBehavior on the underlying collection of ViewMembers. It may also be used to assign Behaviors to a set of ViewMembers. The ViewMembers are queried, retrieved and assigned in bulk. The level of indirection is a requirement of the SDK's contractual obligation, namely, to expose only primitives, native SDK objects, and arrays of objects.


Constructor Summary
ViewMemberCollection.BehaviorContainer()
          create a new BehaviorContainer to assign behavior to view members in bulk
 
Method Summary
 ViewMemberBehavior getBehavior(ViewMember vm)
          Return the ViewMemberBehavior of this view member Note that this ViewMember should be a member of the underlying collection from which this object is derived, for this call to succeed
 void setBehavior(ViewMember vm, ViewMemberBehavior vmb)
          Sets the new behavior for this view member Note that this call stores the unassigned objects in memory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewMemberCollection.BehaviorContainer

public ViewMemberCollection.BehaviorContainer()
create a new BehaviorContainer to assign behavior to view members in bulk

Method Detail

getBehavior

public ViewMemberBehavior getBehavior(ViewMember vm)
Return the ViewMemberBehavior of this view member Note that this ViewMember should be a member of the underlying collection from which this object is derived, for this call to succeed

Parameters:
vm - the ViewMember whose behavior is required
Returns:
the ViewMemberBehavior

setBehavior

public void setBehavior(ViewMember vm,
                        ViewMemberBehavior vmb)
Sets the new behavior for this view member Note that this call stores the unassigned objects in memory. It will not issue a server command After assigning each new behavior to its view member, call setViewMemberBehavior on the collection to issue the bulk command

Parameters:
vm - the view member
vmb - the new behavior to be associated with this view member
See Also:
ViewMemberCollection.setViewMemberBehavior(BehaviorContainer)


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