com.ptc.windchill.enterprise.org.client.impl
Class ViewAttributeVisibilityHyperLinkValidator

java.lang.Object
  extended by com.ptc.windchill.enterprise.org.client.impl.ViewAttributeVisibilityHyperLinkValidator
All Implemented Interfaces:
CoHyperLinkValidator

public class ViewAttributeVisibilityHyperLinkValidator
extends Object
implements CoHyperLinkValidator

This class implements an hyperlink validator capable of taking advantage of Check sub-elements. The typical usage is the following:

   <HyperLink id="hl.checkinActionsLink" >
     <Label   resource="Checkout/Open"/>
     <ToolTip resource="Checkout/Open"/>
       <Validator class="com.ptc.core.ca.co.client.primitive.CoDefaultHyperLinkValidator">
         <Check value="%[attribute#Wizard#checkoutInfo.state]==c/i"/>
       </Validator>
   </HyperLink>
 


Supported API: true

Extendable: true


Method Summary
 boolean canExecute(CoConfigFeature validatorConfig, CoHyperLinkData execData)
          The method to determine whether an action is can be triggered in the current situation.
 boolean isRelevant(CoConfigFeature validatorConfig, CoHyperLinkData execData)
          The method to determine whether an action is relevant to the current situation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canExecute

public boolean canExecute(CoConfigFeature validatorConfig,
                          CoHyperLinkData execData)
                   throws WTException
The method to determine whether an action is can be triggered in the current situation.

Supported API: true

Specified by:
canExecute in interface CoHyperLinkValidator
Parameters:
validatorConfig -
execData -
Returns:
boolean
Throws:
WTException

isRelevant

public boolean isRelevant(CoConfigFeature validatorConfig,
                          CoHyperLinkData execData)
                   throws WTException
The method to determine whether an action is relevant to the current situation.

Supported API: true

Specified by:
isRelevant in interface CoHyperLinkValidator
Parameters:
validatorConfig -
execData -
Returns:
boolean
Throws:
WTException