|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.rcfaces.core.internal.component.CameliaInputComponent
org.rcfaces.core.component.AbstractInputComponent
org.rcfaces.core.component.AbstractCalendarComponent
org.rcfaces.core.component.DateEntryComponent
public class DateEntryComponent
The dateEntry Component is a specialized textEntry Component. it sports auto-completion related to the validity of the numbers entered as a date.
The dateEntry Component has the following capabilities :
The default dateEntry renderer is link to the f_dateEntry javascript class. f_dateEntry extends f_compositeNumEntry, fa_calendarPopup
Table of component style classes:
| Style Name | Description |
|---|---|
| f_dateEntry | Defines styles for the wrapper DIV element |
| f_dateEntry_dd | Defines styles for day INPUT element. |
| f_dateEntry_MM | Defines styles for month INPUT element. |
| f_dateEntry_yyyy | Defines styles for years INPUT element. |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaInputComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UIInput |
|---|
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface org.rcfaces.core.component.capability.IClientDatesStrategyCapability |
|---|
ALL_DATES_STRATEGY, DEFAULT_DATES_STRATEGY, MONTH_DATES_STRATEGY, YEAR_DATES_STRATEGY |
| Fields inherited from interface org.rcfaces.core.component.capability.IHiddenModeCapability |
|---|
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE |
| Constructor Summary | |
|---|---|
DateEntryComponent()
|
|
DateEntryComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addValueChangeListener(ValueChangeListener listener)
Adds a listener to the component for the valueChange event |
protected Set |
getCameliaFields()
|
Map |
getClientValidationParametersMap()
|
Map |
getClientValidationParametersMap(FacesContext facesContext)
|
String |
getDateFormat()
|
String |
getDateFormat(FacesContext facesContext)
See getDateFormat() for more details |
Date |
getDefaultDate()
Returns the date selected by default. |
Date |
getDefaultDate(FacesContext facesContext)
|
String |
getErrorStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for error messages. |
String |
getErrorStyleClass(FacesContext facesContext)
See getErrorStyleClass() for more details |
String |
getFatalStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for fatal messages. |
String |
getFatalStyleClass(FacesContext facesContext)
See getFatalStyleClass() for more details |
String |
getFocusStyleClass()
Returns the style class of the component. |
String |
getFocusStyleClass(FacesContext facesContext)
See getFocusStyleClass() for more details |
String |
getInfoStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for info messages. |
String |
getInfoStyleClass(FacesContext facesContext)
See getInfoStyleClass() for more details |
String |
getValidationParameter(String name)
|
String |
getValidationParameter(String name,
FacesContext facesContext)
|
int |
getValidationParametersCount()
|
int |
getValidationParametersCount(FacesContext facesContext)
|
Map |
getValidationParametersMap()
|
Map |
getValidationParametersMap(FacesContext facesContext)
|
String |
getWarnStyleClass()
Returns a space-separated list of CSS style class(es) to be applied for warning messages. |
String |
getWarnStyleClass(FacesContext facesContext)
See getWarnStyleClass() for more details |
boolean |
isAutoCompletion()
Returns a boolean value indicating if the component should complete automaticaly the user entry. |
boolean |
isAutoCompletion(FacesContext facesContext)
Returns a boolean value indicating if the component should complete automaticaly the user entry. |
boolean |
isAutoCompletionSetted()
Returns true if the attribute "autoCompletion" is set. |
boolean |
isAutoTab()
Returns a boolean value indicating if the focus should move automatically to the next element when the entry is completed. |
boolean |
isAutoTab(FacesContext facesContext)
See isAutoTab() for more details |
boolean |
isAutoTabSetted()
Returns true if the attribute "autoTab" is set. |
boolean |
isClientSideValidationParameter(String name)
|
boolean |
isClientSideValidationParameter(String name,
FacesContext facesContext)
|
boolean |
isDateFormatSetted()
Returns true if the attribute "dateFormat" is set. |
boolean |
isDefaultDateSetted()
Returns true if the attribute "defaultDate" is set. |
boolean |
isErrorStyleClassSetted()
Returns true if the attribute "errorStyleClass" is set. |
boolean |
isFatalStyleClassSetted()
Returns true if the attribute "fatalStyleClass" is set. |
boolean |
isFocusStyleClassSetted()
Returns true if the attribute "focusStyleClass" is set. |
boolean |
isInfoStyleClassSetted()
Returns true if the attribute "infoStyleClass" is set. |
boolean |
isShowCalendarOnFocus()
Returns a boolean value indicating wether the associated dateChooser Component should be automatically opened when the component gets the focus. |
boolean |
isShowCalendarOnFocus(FacesContext facesContext)
Returns a boolean value indicating wether the associated dateChooser Component should be automatically opened when the component gets the focus. |
boolean |
isShowCalendarOnFocusSetted()
Returns true if the attribute "showCalendarOnFocus" is set. |
boolean |
isWarnStyleClassSetted()
Returns true if the attribute "warnStyleClass" is set. |
FacesListener[] |
listValueChangeListeners()
Returns a list of valueChange listener for the component |
String |
removeValidationParameter(String name)
|
void |
removeValueChangeListener(ValueChangeListener listener)
Removes a listener from the component for the valueChange event |
void |
setAutoCompletion(boolean autoCompletion)
Sets a boolean value indicating if the component should complete automaticaly the user entry. |
void |
setAutoTab(boolean autoTab)
Sets a boolean value indicating if the focus should move automatically to the next element when the entry is completed. |
void |
setDateFormat(String dateFormat)
|
void |
setDefaultDate(Date defaultDate)
Sets the date to select by default. |
void |
setDefaultDate(String date)
|
void |
setErrorStyleClass(String errorStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for error messages. |
void |
setFatalStyleClass(String fatalStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for fatal messages. |
void |
setFocusStyleClass(String focusStyleClass)
Specify the style class of the component. |
void |
setInfoStyleClass(String infoStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for info messages. |
void |
setShowCalendarOnFocus(boolean showCalendarOnFocus)
Sets a boolean value indicating wether the associated dateChooser Component should be automatically opened when the component gets the focus. |
String |
setValidationParameter(String name,
String value,
boolean client)
|
void |
setValidationParameter(String name,
javax.el.ValueExpression value,
boolean client)
|
void |
setWarnStyleClass(String warnStyleClass)
Sets a space-separated list of CSS style class(es) to be applied for warning messages. |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaInputComponent |
|---|
broadcast, clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getConvertedValue, getFamily, getLocalValue, getRendererType, getSubmittedExternalValue, getTransientAttribute, getValue, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isSubmittedValueSetted, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setConverter, setConverter, setDefaultProperties, setRendered, setSubmittedExternalValue, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UIInput |
|---|
addValidator, compareValues, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, removeValidator, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, 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.IRequiredCapability |
|---|
isRequired, setRequired |
| Methods inherited from interface org.rcfaces.core.component.capability.IStyleClassCapability |
|---|
getStyleClass, setStyleClass |
| Methods inherited from interface org.rcfaces.core.component.capability.IImmediateCapability |
|---|
isImmediate, setImmediate |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, setConverter, setValue |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public DateEntryComponent()
public DateEntryComponent(String componentId)
| Method Detail |
|---|
public int getValidationParametersCount()
getValidationParametersCount in interface org.rcfaces.core.internal.manager.IValidationParameterspublic boolean isClientSideValidationParameter(String name)
isClientSideValidationParameter in interface org.rcfaces.core.internal.manager.IValidationParameterspublic Map getValidationParametersMap()
getValidationParametersMap in interface org.rcfaces.core.internal.manager.IValidationParameters
public void setValidationParameter(String name,
javax.el.ValueExpression value,
boolean client)
setValidationParameter in interface org.rcfaces.core.internal.manager.IValidationParameterspublic String getValidationParameter(String name)
getValidationParameter in interface org.rcfaces.core.internal.manager.IValidationParameterspublic Map getClientValidationParametersMap()
getClientValidationParametersMap in interface org.rcfaces.core.internal.manager.IValidationParameterspublic String removeValidationParameter(String name)
removeValidationParameter in interface org.rcfaces.core.internal.manager.IValidationParameters
public String setValidationParameter(String name,
String value,
boolean client)
setValidationParameter in interface org.rcfaces.core.internal.manager.IValidationParameterspublic void setDefaultDate(String date)
public Date getDefaultDate(FacesContext facesContext)
public String getValidationParameter(String name,
FacesContext facesContext)
public int getValidationParametersCount(FacesContext facesContext)
public Map getValidationParametersMap(FacesContext facesContext)
public Map getClientValidationParametersMap(FacesContext facesContext)
public boolean isClientSideValidationParameter(String name,
FacesContext facesContext)
public boolean isAutoTab()
IAutoTabCapability
isAutoTab in interface IAutoTabCapabilitypublic boolean isAutoTab(FacesContext facesContext)
isAutoTab() for more details
public final boolean isAutoTabSetted()
true if the attribute "autoTab" is set.
true if the attribute is set.public void setAutoTab(boolean autoTab)
IAutoTabCapability
setAutoTab in interface IAutoTabCapabilityautoTab - booleanpublic final void addValueChangeListener(ValueChangeListener listener)
IValueChangeEventCapability
addValueChangeListener in interface EditableValueHolderaddValueChangeListener in interface IValueChangeEventCapabilityaddValueChangeListener in class UIInputlistener - the valueChange listener to addpublic final void removeValueChangeListener(ValueChangeListener listener)
IValueChangeEventCapability
removeValueChangeListener in interface EditableValueHolderremoveValueChangeListener in interface IValueChangeEventCapabilityremoveValueChangeListener in class UIInputlistener - the valueChange listener to removepublic final FacesListener[] listValueChangeListeners()
IValueChangeEventCapability
listValueChangeListeners in interface IValueChangeEventCapabilitypublic String getFocusStyleClass()
IFocusStyleClassCapability
getFocusStyleClass in interface IFocusStyleClassCapabilitypublic String getFocusStyleClass(FacesContext facesContext)
getFocusStyleClass() for more details
public final boolean isFocusStyleClassSetted()
true if the attribute "focusStyleClass" is set.
true if the attribute is set.public void setFocusStyleClass(String focusStyleClass)
IFocusStyleClassCapability
setFocusStyleClass in interface IFocusStyleClassCapabilityfocusStyleClass - style classpublic String getErrorStyleClass()
ISeverityStyleClassCapability
getErrorStyleClass in interface ISeverityStyleClassCapabilitypublic String getErrorStyleClass(FacesContext facesContext)
getErrorStyleClass() for more details
public final boolean isErrorStyleClassSetted()
true if the attribute "errorStyleClass" is set.
true if the attribute is set.public void setErrorStyleClass(String errorStyleClass)
ISeverityStyleClassCapability
setErrorStyleClass in interface ISeverityStyleClassCapabilityerrorStyleClass - list of CSS style classespublic String getFatalStyleClass()
ISeverityStyleClassCapability
getFatalStyleClass in interface ISeverityStyleClassCapabilitypublic String getFatalStyleClass(FacesContext facesContext)
getFatalStyleClass() for more details
public final boolean isFatalStyleClassSetted()
true if the attribute "fatalStyleClass" is set.
true if the attribute is set.public void setFatalStyleClass(String fatalStyleClass)
ISeverityStyleClassCapability
setFatalStyleClass in interface ISeverityStyleClassCapabilityfatalStyleClass - list of CSS style classespublic String getInfoStyleClass()
ISeverityStyleClassCapability
getInfoStyleClass in interface ISeverityStyleClassCapabilitypublic String getInfoStyleClass(FacesContext facesContext)
getInfoStyleClass() for more details
public final boolean isInfoStyleClassSetted()
true if the attribute "infoStyleClass" is set.
true if the attribute is set.public void setInfoStyleClass(String infoStyleClass)
ISeverityStyleClassCapability
setInfoStyleClass in interface ISeverityStyleClassCapabilityinfoStyleClass - list of CSS style classespublic String getWarnStyleClass()
ISeverityStyleClassCapability
getWarnStyleClass in interface ISeverityStyleClassCapabilitypublic String getWarnStyleClass(FacesContext facesContext)
getWarnStyleClass() for more details
public final boolean isWarnStyleClassSetted()
true if the attribute "warnStyleClass" is set.
true if the attribute is set.public void setWarnStyleClass(String warnStyleClass)
ISeverityStyleClassCapability
setWarnStyleClass in interface ISeverityStyleClassCapabilitywarnStyleClass - list of CSS style classespublic String getDateFormat()
getDateFormat in interface IDateFormatCapabilitypublic String getDateFormat(FacesContext facesContext)
getDateFormat() for more details
public final boolean isDateFormatSetted()
true if the attribute "dateFormat" is set.
true if the attribute is set.public void setDateFormat(String dateFormat)
setDateFormat in interface IDateFormatCapabilitypublic boolean isShowCalendarOnFocus()
public boolean isShowCalendarOnFocus(FacesContext facesContext)
public void setShowCalendarOnFocus(boolean showCalendarOnFocus)
showCalendarOnFocus - true if calendar is shownpublic boolean isShowCalendarOnFocusSetted()
true if the attribute "showCalendarOnFocus" is set.
true if the attribute is set.public boolean isAutoCompletion()
public boolean isAutoCompletion(FacesContext facesContext)
public void setAutoCompletion(boolean autoCompletion)
autoCompletion - true if the user entry must completedpublic boolean isAutoCompletionSetted()
true if the attribute "autoCompletion" is set.
true if the attribute is set.public Date getDefaultDate()
public void setDefaultDate(Date defaultDate)
defaultDate - default datepublic boolean isDefaultDateSetted()
true if the attribute "defaultDate" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class AbstractCalendarComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||