@Generated(value="component.stg") public class UIDate extends AbstractUIDate
For a time input field set you'll need to set the <f:convertDateTime type="time"> inside the <tc:date>.
If there is no converter given, a default instance of {
UIComponent class, generated from template component.stg with class
DateTagDeclaration.
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
| Constructor and Description |
|---|
UIDate() |
| Modifier and Type | Method and Description |
|---|---|
Character |
getAccessKey()
The access key of this control.
|
Boolean |
getAutoSpacing()
Automatically add spacing (margins/paddings) to the component for better positioning.
|
CustomClass |
getCustomClass()
Sets a CSS class in its parent, if the parent supports it.
|
String |
getDefaultEventName() |
Collection<String> |
getEventNames() |
String |
getFamily() |
String |
getHelp()
Text value to display as a help.
|
String |
getLabel()
A localized user presentable label for this component.
|
LabelLayout |
getLabelLayout()
Defines the position of the label relative to the field.
|
Markup |
getMarkup() |
Object |
getMax()
Sets the maximum value of the date.
|
Object |
getMin()
Sets the minimum value of the date.
|
String |
getPlaceholder()
Displays a short text in the input field, that describes the meaning of this field.
|
Double |
getStep()
Sets the step of a date or time picker.
|
Integer |
getTabIndex()
Controls the navigation of the focus through the
input controls on a page with the Tab-Key.
|
String |
getTip()
Text value to display as tooltip.
|
DateType |
getType()
Type of the date/time input.
|
boolean |
isDisabled()
Flag indicating that this element is disabled.
|
boolean |
isFocus()
Flag indicating this component should receive the focus.
|
boolean |
isReadonly()
Flag indicating that this component will prohibit changes by the user.
|
boolean |
isTodayButton()
If true, a today- or now-button is displayed.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
void |
setAccessKey(Character accessKey) |
void |
setAutoSpacing(Boolean autoSpacing) |
void |
setCustomClass(CustomClass customClass) |
void |
setDisabled(boolean disabled) |
void |
setFocus(boolean focus) |
void |
setHelp(String help) |
void |
setLabel(String label) |
void |
setLabelLayout(LabelLayout labelLayout) |
void |
setMarkup(Markup markup) |
void |
setMax(Object max) |
void |
setMin(Object min) |
void |
setPlaceholder(String placeholder) |
void |
setReadonly(boolean readonly) |
void |
setStep(Double step) |
void |
setTabIndex(Integer tabIndex) |
void |
setTip(String tip) |
void |
setTodayButton(boolean todayButton) |
void |
setType(DateType type) |
getPattern, setPatterngetFieldId, isError, isNextToRenderIsLabel, setNextToRenderIsLabeladdValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValuegetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTreegetClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAutoSpacinggetRendererType, isPlainpublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public Collection<String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic String getFamily()
getFamily in class javax.faces.component.UIInputpublic LabelLayout getLabelLayout()
public void setLabelLayout(LabelLayout labelLayout)
public boolean isFocus()
falseisFocus in class AbstractUIInputpublic void setFocus(boolean focus)
public Integer getTabIndex()
getTabIndex in class AbstractUIInputpublic void setTabIndex(Integer tabIndex)
public boolean isTodayButton()
falseisTodayButton in class AbstractUIDatepublic void setTodayButton(boolean todayButton)
public DateType getType()
date,time,datetime-local,month,weekgetType in class AbstractUIDatepublic void setType(DateType type)
setType in class AbstractUIDatepublic Object getMin()
getMin in class AbstractUIDatepublic void setMin(Object min)
public boolean isReadonly()
falseisReadonly in class AbstractUIInputpublic void setReadonly(boolean readonly)
public boolean isDisabled()
falseisDisabled in class AbstractUIInputpublic void setDisabled(boolean disabled)
public String getTip()
public void setTip(String tip)
public String getPlaceholder()
Displays a short text in the input field, that describes the meaning of this field.
public void setPlaceholder(String placeholder)
public Markup getMarkup()
public void setMarkup(Markup markup)
public Object getMax()
getMax in class AbstractUIDatepublic void setMax(Object max)
public String getLabel()
public void setLabel(String label)
public String getHelp()
public void setHelp(String help)
public Boolean getAutoSpacing()
public void setAutoSpacing(Boolean autoSpacing)
public Character getAccessKey()
public void setAccessKey(Character accessKey)
public CustomClass getCustomClass()
<tc:in>
<tc:style customClass="my-emphasized"/>
</tc:in>
One capability is, to used external CSS libs.
public void setCustomClass(CustomClass customClass)
public Double getStep()
getStep in class AbstractUIDatepublic void setStep(Double step)
public void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.