|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.metainfo.WidgetAttribute
public class WidgetAttribute
Represents a DOM attribute of the peer widget.
WidgetListener,
Serialized Form| Field Summary | |
|---|---|
protected java.lang.String |
_name
|
protected ExValue |
_value
|
| Constructor Summary | |
|---|---|
WidgetAttribute(EvaluatorRef evalr,
java.lang.String name,
java.lang.String value,
ConditionImpl cond)
|
|
| Method Summary | |
|---|---|
void |
assign(Component comp)
|
ConditionImpl |
getCondition()
Returns the effectiveness condition. |
EvaluatorRef |
getEvaluatorRef()
Returns the evaluator reference. |
java.lang.String |
getName()
Returns the event name, such as, onClick. |
java.lang.String |
getRawValue()
Returns the value passed to the constructor. |
java.lang.String |
getValue(Component comp)
Returns the value associated with this event handler. |
boolean |
isEffective(Component comp)
Used to evaluate whether it is effective. |
boolean |
isEffective(Page page)
Used to evaluate whether it is effective. |
void |
setCondition(ConditionImpl cond)
Sets the effectiveness condition. |
boolean |
withCondition()
Tests if the condition is set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String _name
protected final ExValue _value
| Constructor Detail |
|---|
public WidgetAttribute(EvaluatorRef evalr,
java.lang.String name,
java.lang.String value,
ConditionImpl cond)
name - the event name, such as onClickvalue - the value. EL is allowed and it will be coerced to String
java.lang.IllegalArgumentException - if value is null| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getValue(Component comp)
public java.lang.String getRawValue()
public void assign(Component comp)
public EvaluatorRef getEvaluatorRef()
public ConditionImpl getCondition()
public void setCondition(ConditionImpl cond)
public boolean withCondition()
public boolean isEffective(Component comp)
Condition
isEffective in interface Conditioncomp - used as the self variable. Ignored if null.public boolean isEffective(Page page)
Condition
isEffective in interface Conditionpage - used as the self variable. Ignored if null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||