|
||||||||||
| 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.DateChooserComponent
public class DateChooserComponent
The dateChooser Component is a button that shows a calendar and help the user to choose a date. It can be associated to a entry field, the choosen date is then automatically entered in the field. It works like an Image Button Component. The dateChooser Component does not provide an Entry field.
The dateChooser Component has the following capabilities :
The default dateChooser renderer is link to the f_dateChooser javascript class. f_dateChooser extends f_imageButton, fa_calendarPopup
Table of component style classes:
| Style Name | Description |
|---|---|
| f_dateChooser | Defines styles for the wrapper DIV element. |
| f_dateChooser_image | Defines styles for the wrapper IMG element for the calendar icone . |
| f_dateChooser_popup | Defines styles for the wrapper DIV element for the calendar pop-up. |
| 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.IBorderTypeCapability |
|---|
NONE_BORDER_TYPE_NAME |
| Fields inherited from interface org.rcfaces.core.component.capability.ITextPositionCapability |
|---|
BOTTOM_POSITION, TOP_POSITION |
| Fields inherited from interface org.rcfaces.core.component.capability.IHorizontalTextPositionCapability |
|---|
CENTER_POSITION, DEFAULT_POSITION, LEFT_POSITION, RIGHT_POSITION, UNKNOWN_POSITION |
| Fields inherited from interface org.rcfaces.core.component.capability.ICalendarLayoutCapability |
|---|
DEFAULT_LAYOUT, FULL_LAYOUT, LONG_LAYOUT, MEDIUM_LAYOUT, SHORT_LAYOUT |
| 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 | |
|---|---|
DateChooserComponent()
|
|
DateChooserComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addValueChangeListener(ValueChangeListener listener)
Adds a listener to the component for the valueChange event |
String |
getBorderType()
Returns a string that indicates the type of border the component should show. |
String |
getBorderType(FacesContext facesContext)
See getBorderType() for more details |
int |
getCalendarLayout()
|
int |
getCalendarLayout(FacesContext facesContext)
See getCalendarLayout() for more details |
protected Set |
getCameliaFields()
|
Date |
getDefaultSelectedDate()
|
Date |
getDefaultSelectedDate(FacesContext facesContext)
|
String |
getDisabledImageURL()
Returns an url string pointing to the image used for the disabled state. |
String |
getDisabledImageURL(FacesContext facesContext)
See getDisabledImageURL() for more details |
String |
getFor()
Returns a component's id that express the link between the two components. |
String |
getFor(FacesContext facesContext)
See getFor() for more details |
String |
getForValueFormat()
Returns a string specifying the format to use for the value that will be send to the component specified in the for property. |
String |
getForValueFormat(FacesContext facesContext)
Returns a string specifying the format to use for the value that will be send to the component specified in the for property. |
Date |
getHomeDate()
|
Date |
getHomeDate(FacesContext facesContext)
|
String |
getHomeDateLabel()
Returns a string specifying the label associated with the home button. |
String |
getHomeDateLabel(FacesContext facesContext)
Returns a string specifying the label associated with the home button. |
String |
getHoverImageURL()
Returns an url string pointing to the image used chen the pointer hover the component. |
String |
getHoverImageURL(FacesContext facesContext)
See getHoverImageURL() for more details |
IContentAccessors |
getImageAccessors()
Returns ImageAccessors associated to the url. |
IContentAccessors |
getImageAccessors(FacesContext facesContext)
|
int |
getImageHeight()
Returns an int value specifying the height (in pixels) to use for the image shown. |
int |
getImageHeight(FacesContext facesContext)
See getImageHeight() for more details |
String |
getImageURL()
Returns the URL of the image. |
String |
getImageURL(FacesContext facesContext)
See getImageURL() for more details |
int |
getImageWidth()
Returns an int value specifying the width (in pixels) to use for the image shown. |
int |
getImageWidth(FacesContext facesContext)
See getImageWidth() for more details |
String |
getPopupStyleClass()
|
String |
getPopupStyleClass(FacesContext facesContext)
|
String |
getSelectedImageURL()
Returns an url string pointing to the image used when the component is selected. |
String |
getSelectedImageURL(FacesContext facesContext)
See getSelectedImageURL() for more details |
String |
getText()
Returns a string value specifying the text shown. |
String |
getText(FacesContext facesContext)
See getText() for more details |
int |
getTextPosition()
Returns an int value specifying the position of the text in the component. |
int |
getTextPosition(FacesContext facesContext)
See getTextPosition() for more details |
protected Converter |
getTextPositionConverter()
|
boolean |
isBorder()
Returns a boolean value that indicates if the component should show a border or not. |
boolean |
isBorder(FacesContext facesContext)
See isBorder() for more details |
boolean |
isBorderSetted()
Returns true if the attribute "border" is set. |
boolean |
isBorderTypeSetted()
Returns true if the attribute "borderType" is set. |
boolean |
isCalendarLayoutSetted()
Returns true if the attribute "calendarLayout" is set. |
boolean |
isDefaultSelectedDateSetted()
Returns true if the attribute "defaultSelectedDate" is set. |
boolean |
isDisabledImageURLSetted()
Returns true if the attribute "disabledImageURL" is set. |
boolean |
isForSetted()
Returns true if the attribute "for" is set. |
boolean |
isForValueFormatSetted()
Returns true if the attribute "forValueFormat" is set. |
boolean |
isHomeDateLabelSetted()
Returns true if the attribute "homeDateLabel" is set. |
boolean |
isHomeDateSetted()
Returns true if the attribute "homeDate" is set. |
boolean |
isHoverImageURLSetted()
Returns true if the attribute "hoverImageURL" is set. |
boolean |
isImageHeightSetted()
Returns true if the attribute "imageHeight" is set. |
boolean |
isImageURLSetted()
Returns true if the attribute "imageURL" is set. |
boolean |
isImageWidthSetted()
Returns true if the attribute "imageWidth" is set. |
boolean |
isPopupStyleClassSetted()
Returns true if the attribute "popupStyleClass" is set. |
boolean |
isSelectedImageURLSetted()
Returns true if the attribute "selectedImageURL" is set. |
boolean |
isTextPositionSetted()
Returns true if the attribute "textPosition" is set. |
boolean |
isTextSetted()
Returns true if the attribute "text" is set. |
FacesListener[] |
listValueChangeListeners()
Returns a list of valueChange listener for the component |
void |
removeValueChangeListener(ValueChangeListener listener)
Removes a listener from the component for the valueChange event |
void |
setBorder(boolean border)
Sets a boolean value that indicates if the component should show a border or not. |
void |
setBorderType(String borderType)
Sets a string that indicates the type of border the component should show. |
void |
setCalendarLayout(int calendarLayout)
|
void |
setCalendarLayout(String layout)
|
void |
setDefaultSelectedDate(Date defaultSelectedDate)
|
void |
setDefaultSelectedDate(String date)
|
void |
setDisabledImageURL(String disabledImageURL)
Sets an url string pointing to the image used for the disabled state. |
void |
setFor(String forValue)
Sets a component's id that express the link between the two components. |
void |
setForValueFormat(String forValueFormat)
Sets a string specifying the format to use for the value that will be send to the component specified in the for property. |
void |
setHomeDate(Date homeDate)
|
void |
setHomeDate(String date)
|
void |
setHomeDateLabel(String homeDateLabel)
Sets a string specifying the label associated with the home button. |
void |
setHoverImageURL(String hoverImageURL)
Sets an url string pointing to the image used chen the pointer hover the component. |
void |
setImageHeight(int imageHeight)
Sets an int value specifying the height (in pixels) to use for the image shown. |
void |
setImageURL(String imageURL)
Specify the URL of the image. |
void |
setImageWidth(int imageWidth)
Sets an int value specifying the width (in pixels) to use for the image shown. |
void |
setPopupStyleClass(String popupStyleClass)
|
void |
setSelectedImageURL(String selectedImageURL)
Sets an url string pointing to the image used when the component is selected. |
void |
setText(String text)
Sets a string value specifying the text to be shown. |
void |
setTextPosition(int textPosition)
Sets an int value specifying the position of the text in the component. |
void |
setTextPosition(String textPosition)
|
| 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.familly.IImageButtonFamilly |
|---|
getTabIndex, isDisabled, isReadOnly |
| Methods inherited from interface org.rcfaces.core.component.capability.ISelectionEventCapability |
|---|
addSelectionListener, listSelectionListeners, removeSelectionListener |
| Methods inherited from interface org.rcfaces.core.component.capability.IReadOnlyCapability |
|---|
isReadOnly, setReadOnly |
| Methods inherited from interface org.rcfaces.core.component.capability.IDisabledCapability |
|---|
isDisabled, setDisabled |
| Methods inherited from interface org.rcfaces.core.component.capability.ITabIndexCapability |
|---|
getTabIndex, setTabIndex |
| 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 DateChooserComponent()
public DateChooserComponent(String componentId)
| Method Detail |
|---|
public void setHomeDate(String date)
public Date getHomeDate(FacesContext facesContext)
public void setDefaultSelectedDate(String date)
public Date getDefaultSelectedDate(FacesContext facesContext)
protected Converter getTextPositionConverter()
public void setTextPosition(String textPosition)
public void setCalendarLayout(String layout)
public String getImageURL()
IImageCapability
getImageURL in interface IImageCapabilitypublic String getImageURL(FacesContext facesContext)
getImageURL() for more details
getImageURL in interface IImageButtonFamillypublic final boolean isImageURLSetted()
true if the attribute "imageURL" is set.
true if the attribute is set.public void setImageURL(String imageURL)
IImageCapability
setImageURL in interface IImageCapabilitypublic String getDisabledImageURL()
IStatesImageCapability
getDisabledImageURL in interface IStatesImageCapabilitypublic String getDisabledImageURL(FacesContext facesContext)
getDisabledImageURL() for more details
getDisabledImageURL in interface IImageButtonFamillypublic final boolean isDisabledImageURLSetted()
true if the attribute "disabledImageURL" is set.
true if the attribute is set.public void setDisabledImageURL(String disabledImageURL)
IStatesImageCapability
setDisabledImageURL in interface IStatesImageCapabilitydisabledImageURL - urlpublic String getHoverImageURL()
IStatesImageCapability
getHoverImageURL in interface IStatesImageCapabilitypublic String getHoverImageURL(FacesContext facesContext)
getHoverImageURL() for more details
getHoverImageURL in interface IImageButtonFamillypublic final boolean isHoverImageURLSetted()
true if the attribute "hoverImageURL" is set.
true if the attribute is set.public void setHoverImageURL(String hoverImageURL)
IStatesImageCapability
setHoverImageURL in interface IStatesImageCapabilityhoverImageURL - urlpublic String getSelectedImageURL()
IStatesImageCapability
getSelectedImageURL in interface IStatesImageCapabilitypublic String getSelectedImageURL(FacesContext facesContext)
getSelectedImageURL() for more details
getSelectedImageURL in interface IImageButtonFamillypublic final boolean isSelectedImageURLSetted()
true if the attribute "selectedImageURL" is set.
true if the attribute is set.public void setSelectedImageURL(String selectedImageURL)
IStatesImageCapability
setSelectedImageURL in interface IStatesImageCapabilityselectedImageURL - urlpublic boolean isBorder()
IBorderCapability
isBorder in interface IBorderCapabilitypublic boolean isBorder(FacesContext facesContext)
isBorder() for more details
isBorder in interface IImageButtonFamillypublic final boolean isBorderSetted()
true if the attribute "border" is set.
true if the attribute is set.public void setBorder(boolean border)
IBorderCapability
setBorder in interface IBorderCapabilityborder - booleanpublic String getBorderType()
IBorderTypeCapability
getBorderType in interface IBorderTypeCapabilitypublic String getBorderType(FacesContext facesContext)
getBorderType() for more details
getBorderType in interface IImageButtonFamillypublic final boolean isBorderTypeSetted()
true if the attribute "borderType" is set.
true if the attribute is set.public void setBorderType(String borderType)
IBorderTypeCapability
setBorderType in interface IBorderTypeCapabilityborderType - none|solid|relief|flat|roundedpublic String getText()
ITextCapability
getText in interface ITextCapabilitypublic String getText(FacesContext facesContext)
getText() for more details
getText in interface IImageButtonFamillypublic final boolean isTextSetted()
true if the attribute "text" is set.
true if the attribute is set.public void setText(String text)
ITextCapability
setText in interface ITextCapabilitytext - textpublic int getTextPosition()
IHorizontalTextPositionCapability
getTextPosition in interface IHorizontalTextPositionCapabilitypublic int getTextPosition(FacesContext facesContext)
getTextPosition() for more details
getTextPosition in interface IImageButtonFamillypublic final boolean isTextPositionSetted()
true if the attribute "textPosition" is set.
true if the attribute is set.public void setTextPosition(int textPosition)
IHorizontalTextPositionCapability
setTextPosition in interface IHorizontalTextPositionCapabilitytextPosition - 0x00:right|0x10:leftpublic int getImageHeight()
IImageSizeCapability
getImageHeight in interface IImageSizeCapabilitypublic int getImageHeight(FacesContext facesContext)
getImageHeight() for more details
getImageHeight in interface IImageButtonFamillypublic final boolean isImageHeightSetted()
true if the attribute "imageHeight" is set.
true if the attribute is set.public void setImageHeight(int imageHeight)
IImageSizeCapability
setImageHeight in interface IImageSizeCapabilityimageHeight - image height in pixelspublic int getImageWidth()
IImageSizeCapability
getImageWidth in interface IImageSizeCapabilitypublic int getImageWidth(FacesContext facesContext)
getImageWidth() for more details
getImageWidth in interface IImageButtonFamillypublic final boolean isImageWidthSetted()
true if the attribute "imageWidth" is set.
true if the attribute is set.public void setImageWidth(int imageWidth)
IImageSizeCapability
setImageWidth in interface IImageSizeCapabilityimageWidth - image width in pixelspublic IContentAccessors getImageAccessors(FacesContext facesContext)
getImageAccessors in interface IImageButtonFamillypublic IContentAccessors getImageAccessors()
IImageCapability
getImageAccessors in interface IImageCapabilitypublic 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 getFor()
IForCapability
getFor in interface IForCapabilitypublic String getFor(FacesContext facesContext)
getFor() for more details
public final boolean isForSetted()
true if the attribute "for" is set.
true if the attribute is set.public void setFor(String forValue)
IForCapability
setFor in interface IForCapabilityforValue - id for a linked componentpublic int getCalendarLayout()
getCalendarLayout in interface ICalendarLayoutCapabilitypublic int getCalendarLayout(FacesContext facesContext)
getCalendarLayout() for more details
public final boolean isCalendarLayoutSetted()
true if the attribute "calendarLayout" is set.
true if the attribute is set.public void setCalendarLayout(int calendarLayout)
setCalendarLayout in interface ICalendarLayoutCapabilitypublic String getForValueFormat()
public String getForValueFormat(FacesContext facesContext)
public void setForValueFormat(String forValueFormat)
forValueFormat - value formatpublic boolean isForValueFormatSetted()
true if the attribute "forValueFormat" is set.
true if the attribute is set.public Date getHomeDate()
public void setHomeDate(Date homeDate)
public boolean isHomeDateSetted()
true if the attribute "homeDate" is set.
true if the attribute is set.public Date getDefaultSelectedDate()
public void setDefaultSelectedDate(Date defaultSelectedDate)
public boolean isDefaultSelectedDateSetted()
true if the attribute "defaultSelectedDate" is set.
true if the attribute is set.public String getHomeDateLabel()
public String getHomeDateLabel(FacesContext facesContext)
public void setHomeDateLabel(String homeDateLabel)
homeDateLabel - the label to usepublic boolean isHomeDateLabelSetted()
true if the attribute "homeDateLabel" is set.
true if the attribute is set.public String getPopupStyleClass()
public String getPopupStyleClass(FacesContext facesContext)
public void setPopupStyleClass(String popupStyleClass)
public boolean isPopupStyleClassSetted()
true if the attribute "popupStyleClass" 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 | |||||||||