org.exoplatform.answer.webui
Class SelectOption

java.lang.Object
  extended by org.exoplatform.answer.webui.SelectItem
      extended by org.exoplatform.answer.webui.SelectOption

public class SelectOption
extends SelectItem

Created by The eXo Platform SARL Author : Philippe Aristote philippe.aristote@gmail.com An item in a UIFormInputItemSelector Each item is actually held in a SelectItemCategory, which is held by the UIFormInputItemSelector

See Also:
SelectItemCategory, UIFormInputItemSelector

Field Summary
protected  String description_
          A description of the item
protected  boolean disabled_
          Whether this item is disabled
protected  String icon_
          The icon url of the item
protected  boolean selected_
          Whether this item is selected
protected  String value_
          THe value of the item
 
Constructor Summary
SelectOption(String value)
           
SelectOption(String label, String value)
           
SelectOption(String label, String value, String icon)
           
SelectOption(String label, String value, String desc, String icon)
           
SelectOption(String label, String value, String desc, String icon, boolean selected)
           
 
Method Summary
 String getDescription()
           
 String getIcon()
           
 String getValue()
           
 boolean isDisabled()
           
 boolean isSelected()
           
 void setDescription(String s)
           
 void setDisabled(boolean disabled)
           
 void setIcon(String icon)
           
 void setSelected(boolean b)
           
 void setValue(String s)
           
 
Methods inherited from class org.exoplatform.answer.webui.SelectItem
getLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value_

protected String value_
THe value of the item


icon_

protected String icon_
The icon url of the item


selected_

protected boolean selected_
Whether this item is selected


description_

protected String description_
A description of the item


disabled_

protected boolean disabled_
Whether this item is disabled

Constructor Detail

SelectOption

public SelectOption(String label,
                    String value,
                    String icon)

SelectOption

public SelectOption(String label,
                    String value,
                    String desc,
                    String icon)

SelectOption

public SelectOption(String label,
                    String value,
                    String desc,
                    String icon,
                    boolean selected)

SelectOption

public SelectOption(String label,
                    String value)

SelectOption

public SelectOption(String value)
Method Detail

isDisabled

public boolean isDisabled()

setDisabled

public void setDisabled(boolean disabled)

getValue

public String getValue()

setValue

public void setValue(String s)

getDescription

public String getDescription()

setDescription

public void setDescription(String s)

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean b)

getIcon

public String getIcon()

setIcon

public void setIcon(String icon)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.