org.rcfaces.core.component
Class DateItemComponent

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.DateItemComponent
All Implemented Interfaces:
StateHolder, IClientDataCapability, IDisabledCapability, ILiteralLocaleCapability, ILiteralTimeZoneCapability, IMenuPopupIdCapability, IServerDataCapability, IStyleClassCapability, ITextCapability, IToolTipCapability, IUnlockedClientAttributesCapability, org.rcfaces.core.internal.capability.IComponentLifeCycle, 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

public class DateItemComponent
extends SelectItemComponent
implements ITextCapability, IStyleClassCapability, IMenuPopupIdCapability, ILiteralLocaleCapability, ILiteralTimeZoneCapability

An item specialized for date values.


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
static String 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
DateItemComponent()
           
DateItemComponent(String componentId)
           
 
Method Summary
protected  Set getCameliaFields()
           
 Date getDate()
           
 Locale getLiteralLocale()
          Returns the locale defined for literal attributes.
 Locale getLiteralLocale(FacesContext facesContext)
          See getLiteralLocale() for more details
 TimeZone getLiteralTimeZone()
          Returns the timeZone defined for literal attributes.
 TimeZone getLiteralTimeZone(FacesContext facesContext)
          See getLiteralTimeZone() for more details
 String getMenuPopupId()
           
 String getMenuPopupId(FacesContext facesContext)
          See getMenuPopupId() for more details
 String getStyleClass()
          Returns the style class of the component.
 String getStyleClass(FacesContext facesContext)
          See getStyleClass() for more details
 String getText()
          Returns a string value specifying the text shown.
 boolean isLiteralLocaleSetted()
          Returns true if the attribute "literalLocale" is set.
 boolean isLiteralTimeZoneSetted()
          Returns true if the attribute "literalTimeZone" is set.
 boolean isMenuPopupIdSetted()
          Returns true if the attribute "menuPopupId" is set.
 boolean isStyleClassSetted()
          Returns true if the attribute "styleClass" is set.
 boolean isTextSetted()
          Returns true if the attribute "text" is set.
 void setDate(Date date)
           
 void setDate(String date)
           
 void setLiteralLocale(Locale literalLocale)
          Sets the locale for literal attributes.
 void setLiteralLocale(String locale)
           
 void setLiteralTimeZone(String timeZone)
           
 void setLiteralTimeZone(TimeZone literalTimeZone)
          Sets the timeZone for literal attributes.
 void setMenuPopupId(String menuPopupId)
           
 void setStyleClass(String styleClass)
          Specify the style class of the component.
 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.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.internal.manager.IContainerManager
getChildCount
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

DateItemComponent

public DateItemComponent()

DateItemComponent

public DateItemComponent(String componentId)
Method Detail

getDate

public Date getDate()

setDate

public void setDate(Date date)

setDate

public void setDate(String date)

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

setLiteralLocale

public void setLiteralLocale(String locale)

setLiteralTimeZone

public void setLiteralTimeZone(String timeZone)

isTextSetted

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

Returns:
true if the attribute is set.

getStyleClass

public String getStyleClass()
Description copied from interface: IStyleClassCapability
Returns the style class of the component.

Specified by:
getStyleClass in interface IStyleClassCapability
Returns:
style class

getStyleClass

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


isStyleClassSetted

public final boolean isStyleClassSetted()
Returns true if the attribute "styleClass" is set.

Returns:
true if the attribute is set.

setStyleClass

public void setStyleClass(String styleClass)
Description copied from interface: IStyleClassCapability
Specify the style class of the component.

Specified by:
setStyleClass in interface IStyleClassCapability
Parameters:
styleClass - style class

getMenuPopupId

public String getMenuPopupId()
Specified by:
getMenuPopupId in interface IMenuPopupIdCapability

getMenuPopupId

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


isMenuPopupIdSetted

public final boolean isMenuPopupIdSetted()
Returns true if the attribute "menuPopupId" is set.

Returns:
true if the attribute is set.

setMenuPopupId

public void setMenuPopupId(String menuPopupId)
Specified by:
setMenuPopupId in interface IMenuPopupIdCapability

getLiteralLocale

public Locale getLiteralLocale()
Description copied from interface: ILiteralLocaleCapability
Returns the locale defined for literal attributes. (date, number)

Specified by:
getLiteralLocale in interface ILiteralLocaleCapability
Returns:
the defined locale

getLiteralLocale

public Locale getLiteralLocale(FacesContext facesContext)
See getLiteralLocale() for more details


isLiteralLocaleSetted

public final boolean isLiteralLocaleSetted()
Returns true if the attribute "literalLocale" is set.

Returns:
true if the attribute is set.

setLiteralLocale

public void setLiteralLocale(Locale literalLocale)
Description copied from interface: ILiteralLocaleCapability
Sets the locale for literal attributes. (date, number)

Specified by:
setLiteralLocale in interface ILiteralLocaleCapability
Parameters:
literalLocale - locale to define

getLiteralTimeZone

public TimeZone getLiteralTimeZone()
Description copied from interface: ILiteralTimeZoneCapability
Returns the timeZone defined for literal attributes. (date)

Specified by:
getLiteralTimeZone in interface ILiteralTimeZoneCapability
Returns:
the defined timeZone

getLiteralTimeZone

public TimeZone getLiteralTimeZone(FacesContext facesContext)
See getLiteralTimeZone() for more details


isLiteralTimeZoneSetted

public final boolean isLiteralTimeZoneSetted()
Returns true if the attribute "literalTimeZone" is set.

Returns:
true if the attribute is set.

setLiteralTimeZone

public void setLiteralTimeZone(TimeZone literalTimeZone)
Description copied from interface: ILiteralTimeZoneCapability
Sets the timeZone for literal attributes. (date)

Specified by:
setLiteralTimeZone in interface ILiteralTimeZoneCapability
Parameters:
literalTimeZone - timeZone to define

getCameliaFields

protected Set getCameliaFields()
Overrides:
getCameliaFields in class SelectItemComponent

setValueExpression

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


Copyright © 2006-2011 Vedana. All Rights Reserved.