oracle.cabo.ui.data.bind
Class IsAgentTypeBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.bind.IsAgentTypeBoundValue
All Implemented Interfaces:
BoundValue

public class IsAgentTypeBoundValue
extends java.lang.Object
implements BoundValue

BoundValue that returns a Boolean based on the Agent Type.

See Also:
Agent

Constructor Summary
IsAgentTypeBoundValue(int type)
          Construct an instance of AgentTypeBoundValue.
 
Method Summary
 java.lang.Object getValue(RenderingContext context)
          Called to retrieve a value based on the current rendering context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsAgentTypeBoundValue

public IsAgentTypeBoundValue(int type)
Construct an instance of AgentTypeBoundValue.
Parameters:
type - the agent type that is being checked for. The values should be one of the TYPE constants in oracle.cabo.share.agent.Agent
Method Detail

getValue

public java.lang.Object getValue(RenderingContext context)
Description copied from interface: BoundValue
Called to retrieve a value based on the current rendering context.
Specified by:
getValue in interface BoundValue
Returns:
a Boolean indicating whether what was passed to the constructor matches what is returned from context.getAgent().getAgentType()