Package org.zkoss.zk.ui.metainfo
Class WidgetAttribute
java.lang.Object
org.zkoss.zk.ui.metainfo.WidgetAttribute
- All Implemented Interfaces:
Serializable,Condition
Represents a DOM attribute of the peer widget.
- Since:
- 5.0.3
- Author:
- tomyeh
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWidgetAttribute(EvaluatorRef evalr, String name, String value, ConditionImpl cond) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the effectiveness condition.Returns the evaluator reference.getName()Returns the event name, such as, onClick.Returns the value passed to the constructor.Returns the value associated with this event handler.booleanisEffective(Component comp) Used to evaluate whether it is effective.booleanisEffective(Page page) Used to evaluate whether it is effective.voidsetCondition(ConditionImpl cond) Sets the effectiveness condition.booleanTests if the condition is set
-
Field Details
-
_name
-
_value
-
-
Constructor Details
-
WidgetAttribute
- Parameters:
name- the event name, such as onClickvalue- the value. EL is allowed and it will be coerced to String- Throws:
IllegalArgumentException- if value is null
-
-
Method Details
-
getName
Returns the event name, such as, onClick. -
getValue
Returns the value associated with this event handler. -
getRawValue
Returns the value passed to the constructor. In other words, it might contains EL. -
assign
-
getEvaluatorRef
Returns the evaluator reference. -
getCondition
Returns the effectiveness condition. -
setCondition
Sets the effectiveness condition. -
withCondition
public boolean withCondition()Tests if the condition is set -
isEffective
Description copied from interface:ConditionUsed to evaluate whether it is effective.- Specified by:
isEffectivein interfaceCondition- Parameters:
comp- used as the self variable. Ignored if null.
-
isEffective
Description copied from interface:ConditionUsed to evaluate whether it is effective.- Specified by:
isEffectivein interfaceCondition- Parameters:
page- used as the self variable. Ignored if null.
-