com.sun.rave.web.ui.model
Class Option

java.lang.Object
  extended by javax.faces.model.SelectItem
      extended by com.sun.rave.web.ui.model.Option
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OptionGroup, OptionTitle, RepeatIntervalOption, RepeatUnitOption, Separator

public class Option
extends javax.faces.model.SelectItem

Model bean that represents a selectable choice in a selection component such as Menu, RadioButtonGroup, etc.

See Also:
Serialized Form

Constructor Summary
Option()
          Create an instance of Selection.
Option(java.lang.Object value)
          Create an instance of Selection.
Option(java.lang.Object value, java.lang.String label)
          Create an instance of Selection.
Option(java.lang.Object value, java.lang.String label, java.lang.String description)
          Create an instance of Selection.
Option(java.lang.Object value, java.lang.String label, java.lang.String description, boolean disabled)
          Create an instance of Selection.
 
Method Summary
 java.lang.String getImage()
          Get the image resource path.
 java.lang.String getImageAlt()
          Get the alternate text for the image.
 int getImageHeight()
          Get the image height.
 int getImageWidth()
          Get the image width.
 java.lang.String getTooltip()
          Get the tooltip for this instance.
 void setImage(java.lang.String image)
          Set an image resource path Used for an image in a radio button for example.
 void setImageAlt(java.lang.String imageAlt)
          Set the alternate text for the image.
 void setImageHeight(int imageHeight)
          Set an image resource path Used for an image in a radio button for example.
 void setImageWidth(int imageWidth)
          Set an image resource path Used for an image in a radio button for example.
 void setTooltip(java.lang.String tooltip)
          Set the tooltip for this instance.
 
Methods inherited from class javax.faces.model.SelectItem
getDescription, getLabel, getValue, isDisabled, isEscape, setDescription, setDisabled, setEscape, setLabel, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Option

public Option()
Create an instance of Selection.


Option

public Option(java.lang.Object value)
Create an instance of Selection.


Option

public Option(java.lang.Object value,
              java.lang.String label)
Create an instance of Selection.


Option

public Option(java.lang.Object value,
              java.lang.String label,
              java.lang.String description)
Create an instance of Selection.


Option

public Option(java.lang.Object value,
              java.lang.String label,
              java.lang.String description,
              boolean disabled)
Create an instance of Selection.

Method Detail

getImage

public java.lang.String getImage()
Get the image resource path.


setImage

public void setImage(java.lang.String image)
Set an image resource path Used for an image in a radio button for example.


getImageWidth

public int getImageWidth()
Get the image width.


setImageWidth

public void setImageWidth(int imageWidth)
Set an image resource path Used for an image in a radio button for example.


getImageHeight

public int getImageHeight()
Get the image height.


setImageHeight

public void setImageHeight(int imageHeight)
Set an image resource path Used for an image in a radio button for example.


getImageAlt

public java.lang.String getImageAlt()
Get the alternate text for the image.


setImageAlt

public void setImageAlt(java.lang.String imageAlt)
Set the alternate text for the image.


getTooltip

public java.lang.String getTooltip()
Get the tooltip for this instance.


setTooltip

public void setTooltip(java.lang.String tooltip)
Set the tooltip for this instance.