Class WidgetAttribute

java.lang.Object
org.zkoss.zk.ui.metainfo.WidgetAttribute
All Implemented Interfaces:
Serializable, Condition

public class WidgetAttribute extends Object
Represents a DOM attribute of the peer widget.
Since:
5.0.3
Author:
tomyeh
See Also:
  • Field Details

    • _name

      protected final String _name
    • _value

      protected final ExValue _value
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the event name, such as, onClick.
    • getValue

      public String getValue(Component comp)
      Returns the value associated with this event handler.
    • getRawValue

      public String getRawValue()
      Returns the value passed to the constructor. In other words, it might contains EL.
    • assign

      public void assign(Component comp)
    • getEvaluatorRef

      public EvaluatorRef getEvaluatorRef()
      Returns the evaluator reference.
    • getCondition

      public ConditionImpl getCondition()
      Returns the effectiveness condition.
    • setCondition

      public void setCondition(ConditionImpl cond)
      Sets the effectiveness condition.
    • withCondition

      public boolean withCondition()
      Tests if the condition is set
    • isEffective

      public boolean isEffective(Component comp)
      Description copied from interface: Condition
      Used to evaluate whether it is effective.
      Specified by:
      isEffective in interface Condition
      Parameters:
      comp - used as the self variable. Ignored if null.
    • isEffective

      public boolean isEffective(Page page)
      Description copied from interface: Condition
      Used to evaluate whether it is effective.
      Specified by:
      isEffective in interface Condition
      Parameters:
      page - used as the self variable. Ignored if null.