public class WidgetAttribute
extends java.lang.Object
WidgetListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String |
_name |
protected ExValue |
_value |
Constructor and Description |
---|
WidgetAttribute(EvaluatorRef evalr,
java.lang.String name,
java.lang.String value,
ConditionImpl cond) |
Modifier and Type | Method and Description |
---|---|
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
|
protected final java.lang.String _name
protected final ExValue _value
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 Stringjava.lang.IllegalArgumentException
- if value is nullpublic 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 Condition
comp
- used as the self variable. Ignored if null.public boolean isEffective(Page page)
Condition
isEffective
in interface Condition
page
- used as the self variable. Ignored if null.Copyright © 2005-2011 Potix Corporation. All Rights Reserved.