All Implemented Interfaces:
TagBase, BooleanAttribute, OptionAttributable, Serializable, Cloneable

public class Selected extends AbstractAttribute implements OptionAttributable, BooleanAttribute
The selected attribute is a boolean attribute. When present, it specifies that an option should be pre-selected when the page loads. The pre-selected option will be displayed first in the drop-down list.
Since:
2.1.4
See Also:
  • Constructor Details

    • Selected

      public Selected()
      sets the default value as selected (since 2.1.5). If value is not required then use new Selected(null). Note : There might be some issue in dynamically changing state of tag if there is no default value.
      Since:
      2.1.4
    • Selected

      public Selected(String value)
  • Method Details

    • setValue

      public void setValue(String value)
    • getValue

      public String getValue()
    • init

      protected void init()
      invokes only once per object
      Since:
      2.1.4