org.alfresco.web.ui.common.component
Class UIListItem

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
              extended by org.alfresco.web.ui.common.component.UIListItem
All Implemented Interfaces:
java.io.Serializable, javax.faces.component.StateHolder

public class UIListItem
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
UIListItem()
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getFamily()
           
 java.lang.String getImage()
           
 java.lang.String getLabel()
           
 java.lang.String getTooltip()
           
 java.lang.Object getValue()
          Get the value - the value is used in a equals() match against the current value in the parent ModeList component to set the selected item.
 boolean isDisabled()
          Returns the disabled flag
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDescription(java.lang.String description)
           
 void setDisabled(boolean disabled)
          Sets whether the mode list is disabled
 void setImage(java.lang.String image)
           
 void setLabel(java.lang.String label)
           
 void setTooltip(java.lang.String tooltip)
           
 void setValue(java.lang.Object value)
          Set the value - the value is used in a equals() match against the current value in the parent ModeList component to set the selected item.
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
outputAttribute
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIListItem

public UIListItem()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent
See Also:
UIComponent.getFamily()

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase
See Also:
StateHolder.saveState(javax.faces.context.FacesContext)

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase
See Also:
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)

getValue

public java.lang.Object getValue()
Get the value - the value is used in a equals() match against the current value in the parent ModeList component to set the selected item.

Returns:
the value

setValue

public void setValue(java.lang.Object value)
Set the value - the value is used in a equals() match against the current value in the parent ModeList component to set the selected item.

Parameters:
value - the value

isDisabled

public boolean isDisabled()
Returns the disabled flag

Returns:
true if the mode list is disabled

setDisabled

public void setDisabled(boolean disabled)
Sets whether the mode list is disabled

Parameters:
disabled - the disabled flag

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - The label to set.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getImage

public java.lang.String getImage()
Returns:
Returns the image.

setImage

public void setImage(java.lang.String image)
Parameters:
image - The image to set.

getTooltip

public java.lang.String getTooltip()
Returns:
Returns the tooltip.

setTooltip

public void setTooltip(java.lang.String tooltip)
Parameters:
tooltip - The tooltip to set.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.