com.starteam
Class ViewMemberBehavior

java.lang.Object
  extended by com.starteam.ViewMemberBehavior

public final class ViewMemberBehavior
extends java.lang.Object

Represents the behavior of a ViewMember.

See Also:
ViewMember, ViewMember.getBehavior()

Constructor Summary
ViewMemberBehavior(ViewMemberBehavior behavior)
          Constructs a new ViewMemberBehavior that is a copy of an existing one.
 
Method Summary
 TypedResource.BranchState getBranchState()
          Gets the branch state.
 ViewConfiguration getConfiguration()
          Gets this ViewMemberBehavior's current configuration.
 boolean isBranchOnChange()
          Determines whether or not this ViewMemberBehavior is set to branch on change.
 boolean isPinned()
          Determines whether or not this ViewMember has a fixed configuration.
 void setBranchOnChange(boolean bBranchOnChange)
          Determines whether or not this ViewMemberBehavior is set to branch on change.
 void setConfiguration(ViewConfiguration config)
          Changes this ViewMemberBehavior to use the given configuration.
 void setFloatingConfiguration()
          Changes this ViewMemberBehavior to use a floating configuration.
 java.lang.String toString()
          Returns a string representation of this configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewMemberBehavior

public ViewMemberBehavior(ViewMemberBehavior behavior)
Constructs a new ViewMemberBehavior that is a copy of an existing one.

Parameters:
behavior - The existing ViewMemberBehavior to be copied.
Method Detail

getConfiguration

public ViewConfiguration getConfiguration()
Gets this ViewMemberBehavior's current configuration.

Returns:
This ViewMemberBehavior's current configuration.

setConfiguration

public void setConfiguration(ViewConfiguration config)
Changes this ViewMemberBehavior to use the given configuration. Note that in order to apply the resulting behavior to a ViewMember, you must call ViewMember.setBehavior().

Parameters:
config - The new configuration, or null to set a tip (floating) configuration.
See Also:
ViewMember.setBehavior(com.starteam.ViewMemberBehavior)

setFloatingConfiguration

public void setFloatingConfiguration()
Changes this ViewMemberBehavior to use a floating configuration. Note that in order to apply the resulting behavior to a ViewMember, you must call ViewMember.setBehavior().

See Also:
ViewMemberBehavior.setConfiguration(com.starteam.ViewConfiguration), ViewMember.setBehavior(com.starteam.ViewMemberBehavior)

isBranchOnChange

public boolean isBranchOnChange()
Determines whether or not this ViewMemberBehavior is set to branch on change.

Returns:
true if this ViewMemberBehavior is set to branch on change; false otherwise.

setBranchOnChange

public void setBranchOnChange(boolean bBranchOnChange)
Determines whether or not this ViewMemberBehavior is set to branch on change. Note that in order to apply the resulting behavior to a ViewMember, you must call ViewMember.setBehavior().

Parameters:
bBranchOnChange - true if this ViewMemberBehavior is set to branch on change; false otherwise.
See Also:
ViewMember.setBehavior(com.starteam.ViewMemberBehavior)

isPinned

public boolean isPinned()
Determines whether or not this ViewMember has a fixed configuration.

Returns:
true if the ViewMember (or its parent ViewMember) has a fixed configuration.

getBranchState

public TypedResource.BranchState getBranchState()
Gets the branch state.

Returns:
The branch state.
See Also:
TypedResource.Type.BranchStateProperty.NAME

toString

public java.lang.String toString()
Returns a string representation of this configuration.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this configuration


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