com.ptc.core.ca.co.client.primitive
Class CoSimpleDefaultHyperLinkValidator
java.lang.Object
com.ptc.core.ca.co.client.primitive.CoDefaultHyperLinkValidator
com.ptc.core.ca.co.client.primitive.CoSimpleDefaultHyperLinkValidator
- All Implemented Interfaces:
- CoHyperLinkValidator
Deprecated.
@Deprecated
public class CoSimpleDefaultHyperLinkValidator
- extends CoDefaultHyperLinkValidator
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.CoSimpleDefaultHyperLinkValidator">
<Check value="%[attribute#Wizard#checkoutInfo.state]==c/i"/>
</Validator>
</HyperLink>
The hyperlink will be diaplayed and enabled if the check value is true.
If the check value is false, the hyperlink will not be diaplayed at all.
ie., The hyperlink is relevant only if it is in executable state.
Supported API: true
Extendable: true
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isRelevant
public boolean isRelevant(CoConfigFeature validatorConfig,
CoHyperLinkData execData)
throws WTException
- Deprecated.
- The method to determine whether an action is relevant to the current
situation.
Supported API: true
- Specified by:
isRelevant in interface CoHyperLinkValidator- Overrides:
isRelevant in class CoDefaultHyperLinkValidator
- Parameters:
validatorConfig - execData -
- Returns:
- boolean
- Throws:
WTException