org.rcfaces.core.component
Class ExpandableItemComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UISelectItem
              extended by org.rcfaces.core.internal.component.CameliaItemComponent
                  extended by org.rcfaces.core.component.AbstractItemComponent
                      extended by org.rcfaces.core.component.SelectItemComponent
                          extended by org.rcfaces.core.component.UIImageItemComponent
                              extended by org.rcfaces.core.component.ExpandableItemComponent
All Implemented Interfaces:
StateHolder, IAlternateTextCapability, IClientDataCapability, IDisabledCapability, IExpandImageCapability, IForegroundBackgroundColorCapability, IImageCapability, IServerDataCapability, IStatesImageCapability, ITextCapability, IToolTipCapability, IUnlockedClientAttributesCapability, IVisibilityCapability, org.rcfaces.core.internal.capability.IComponentLifeCycle, org.rcfaces.core.internal.capability.IImageAccessorsCapability, org.rcfaces.core.internal.capability.IRCFacesComponent, org.rcfaces.core.internal.manager.IClientDataManager, org.rcfaces.core.internal.manager.IContainerManager, org.rcfaces.core.internal.manager.IServerDataManager, org.rcfaces.core.internal.manager.ITransientAttributesManager
Direct Known Subclasses:
MenuItemComponent, TreeNodeComponent

public abstract class ExpandableItemComponent
extends UIImageItemComponent
implements IForegroundBackgroundColorCapability, ITextCapability, IExpandImageCapability


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
 
Fields inherited from class org.rcfaces.core.component.UIImageItemComponent
COMPONENT_TYPE
 
Fields inherited from class org.rcfaces.core.internal.component.CameliaItemComponent
engine
 
Fields inherited from class javax.faces.component.UISelectItem
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
ExpandableItemComponent()
           
 
Method Summary
 String getBackgroundColor()
          Returns the receiver's background color.
 String getBackgroundColor(FacesContext facesContext)
          See getBackgroundColor() for more details
protected  Set getCameliaFields()
           
 String getExpandedImageURL()
          Returns the url string pointing to an image used for the expanded state.
 String getExpandedImageURL(FacesContext facesContext)
          See getExpandedImageURL() for more details
 String getForegroundColor()
          Returns the foreground color that the receiver will use to draw.
 String getForegroundColor(FacesContext facesContext)
          See getForegroundColor() for more details
 String getText()
          Returns a string value specifying the text shown.
 boolean isBackgroundColorSetted()
          Returns true if the attribute "backgroundColor" is set.
 boolean isExpandedImageURLSetted()
          Returns true if the attribute "expandedImageURL" is set.
 boolean isForegroundColorSetted()
          Returns true if the attribute "foregroundColor" is set.
 boolean isTextSetted()
          Returns true if the attribute "text" is set.
 void setBackgroundColor(String backgroundColor)
          Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.
 void setExpandedImageURL(String expandedImageURL)
          Sets the url string pointing to an image used for the expanded state.
 void setForegroundColor(String foregroundColor)
          Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.
 void setText(String text)
          Sets a string value specifying the text to be shown.
 void setValueExpression(String name, javax.el.ValueExpression binding)
           
 
Methods inherited from class org.rcfaces.core.component.UIImageItemComponent
getAlternateText, getAlternateText, getDisabledImageURL, getDisabledImageURL, getHoverImageURL, getHoverImageURL, getImageAccessors, getImageAccessors, getImageURL, getImageURL, getSelectedImageURL, getSelectedImageURL, getVisibleState, getVisibleState, isAlternateTextSetted, isDisabledImageURLSetted, isHoverImageURLSetted, isImageURLSetted, isSelectedImageURLSetted, isVisible, isVisible, isVisibleSetted, setAlternateText, setDisabledImageURL, setHoverImageURL, setImageURL, setSelectedImageURL, setVisible
 
Methods inherited from class org.rcfaces.core.component.SelectItemComponent
getToolTip, getToolTipText, getToolTipText, isToolTipTextSetted, setToolTip, setToolTipText
 
Methods inherited from class org.rcfaces.core.component.AbstractItemComponent
getClientData, getClientData, getClientDataCount, getClientDataMap, getClientDataMap, getServerData, getServerData, getServerDataCount, getServerDataMap, getServerDataMap, getUnlockedClientAttributeNames, getUnlockedClientAttributeNames, isDisabled, isDisabledSetted, isUnlockedClientAttributeNamesSetted, listClientDataKeys, listClientDataKeys, listServerDataKeys, listServerDataKeys, removeClientData, removeServerData, setClientData, setClientData, setDisabled, setServerData, setServerData, setUnlockedClientAttributeNames
 
Methods inherited from class org.rcfaces.core.internal.component.CameliaItemComponent
clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setDefaultProperties, setRendered, setTransientAttribute, toString, updatePhase, validationPhase, verifyAsyncDecode
 
Methods inherited from class javax.faces.component.UISelectItem
getItemDescription, getItemLabel, getItemValue, getValue, isItemDisabled, isItemEscaped, setItemDescription, setItemDisabled, setItemEscaped, setItemLabel, setItemValue, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.rcfaces.core.component.capability.IStatesImageCapability
getDisabledImageURL, getHoverImageURL, getSelectedImageURL, setDisabledImageURL, setHoverImageURL, setSelectedImageURL
 
Methods inherited from interface org.rcfaces.core.component.capability.IImageCapability
getImageAccessors, getImageURL, setImageURL
 
Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager
getChildCount
 

Field Detail

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

ExpandableItemComponent

public ExpandableItemComponent()
Method Detail

setText

public void setText(String text)
Description copied from interface: ITextCapability
Sets a string value specifying the text to be shown.

Specified by:
setText in interface ITextCapability
Parameters:
text - text

getText

public String getText()
Description copied from interface: ITextCapability
Returns a string value specifying the text shown.

Specified by:
getText in interface ITextCapability
Returns:
text

getBackgroundColor

public String getBackgroundColor()
Description copied from interface: IForegroundBackgroundColorCapability
Returns the receiver's background color.

Specified by:
getBackgroundColor in interface IForegroundBackgroundColorCapability
Returns:
the background color

getBackgroundColor

public String getBackgroundColor(FacesContext facesContext)
See getBackgroundColor() for more details


isBackgroundColorSetted

public final boolean isBackgroundColorSetted()
Returns true if the attribute "backgroundColor" is set.

Returns:
true if the attribute is set.

setBackgroundColor

public void setBackgroundColor(String backgroundColor)
Description copied from interface: IForegroundBackgroundColorCapability
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.

Specified by:
setBackgroundColor in interface IForegroundBackgroundColorCapability
Parameters:
backgroundColor - background color

getForegroundColor

public String getForegroundColor()
Description copied from interface: IForegroundBackgroundColorCapability
Returns the foreground color that the receiver will use to draw.

Specified by:
getForegroundColor in interface IForegroundBackgroundColorCapability
Returns:
the receiver's foreground color

getForegroundColor

public String getForegroundColor(FacesContext facesContext)
See getForegroundColor() for more details


isForegroundColorSetted

public final boolean isForegroundColorSetted()
Returns true if the attribute "foregroundColor" is set.

Returns:
true if the attribute is set.

setForegroundColor

public void setForegroundColor(String foregroundColor)
Description copied from interface: IForegroundBackgroundColorCapability
Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.

Specified by:
setForegroundColor in interface IForegroundBackgroundColorCapability
Parameters:
foregroundColor - foreground color

isTextSetted

public final boolean isTextSetted()
Returns true if the attribute "text" is set.

Returns:
true if the attribute is set.

getExpandedImageURL

public String getExpandedImageURL()
Description copied from interface: IExpandImageCapability
Returns the url string pointing to an image used for the expanded state.

Specified by:
getExpandedImageURL in interface IExpandImageCapability
Returns:
url

getExpandedImageURL

public String getExpandedImageURL(FacesContext facesContext)
See getExpandedImageURL() for more details


isExpandedImageURLSetted

public final boolean isExpandedImageURLSetted()
Returns true if the attribute "expandedImageURL" is set.

Returns:
true if the attribute is set.

setExpandedImageURL

public void setExpandedImageURL(String expandedImageURL)
Description copied from interface: IExpandImageCapability
Sets the url string pointing to an image used for the expanded state.

Specified by:
setExpandedImageURL in interface IExpandImageCapability
Parameters:
expandedImageURL - url for image

getCameliaFields

protected Set getCameliaFields()
Overrides:
getCameliaFields in class UIImageItemComponent

setValueExpression

public void setValueExpression(String name,
                               javax.el.ValueExpression binding)
Overrides:
setValueExpression in class SelectItemComponent


Copyright © 2006-2011 Vedana. All Rights Reserved.