Class DateLabelComponent
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.markup.html.WebComponent
org.apache.wicket.markup.html.basic.Label
com.evolveum.midpoint.web.component.DateLabelComponent
- All Implemented Interfaces:
- Serializable,- org.apache.wicket.event.IEventSink,- org.apache.wicket.event.IEventSource,- org.apache.wicket.feedback.IFeedbackContributor,- org.apache.wicket.IConverterLocator,- org.apache.wicket.IGenericComponent<Date,,- DateLabelComponent> - org.apache.wicket.IMetadataContext<Serializable,,- org.apache.wicket.Component> - org.apache.wicket.markup.html.IHeaderContributor,- org.apache.wicket.request.component.IRequestableComponent,- org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>,- org.apache.wicket.util.io.IClusterable
public class DateLabelComponent
extends org.apache.wicket.markup.html.basic.Label
implements org.apache.wicket.IGenericComponent<Date,DateLabelComponent> 
Created by honchar
 Component for displaying date value as a label
 By default (if no converter is set) the date is formatted
 according to the client's locale, timezone (not implemented yet),
 with applying long style for date and long style for time.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.wicket.ComponentENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
- 
Constructor SummaryConstructorsConstructorDescriptionDateLabelComponent(String id, org.apache.wicket.model.IModel<Date> model, String style) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.wicket.util.convert.IConverter<?>createConverter(Class<?> type) voidcustomizeDateString(SerializableBiFunction<String, Date, String> customizeNotNullDate) Function for customize showed text for date.voidonComponentTagBody(org.apache.wicket.markup.MarkupStream markupStream, org.apache.wicket.markup.ComponentTag openTag) voidsetTextOnDateNull(String nullDateText) Set text that will be showed when value of date is null.Methods inherited from class org.apache.wicket.markup.html.basic.LabelonComponentTagMethods inherited from class org.apache.wicket.markup.html.WebComponentgetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession, onRenderMethods inherited from class org.apache.wicket.Componentadd, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, get, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalInitialize, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModel, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, toString, toString, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.IGenericComponentgetDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
- 
Field Details- 
SHORT_SHORT_STYLE- See Also:
 
- 
MEDIUM_MEDIUM_STYLE- See Also:
 
- 
LONG_LONG_STYLE- See Also:
 
- 
FULL_FULL_STYLE- See Also:
 
- 
SHORT_MEDIUM_STYLE- See Also:
 
- 
SHORT_LONG_STYLE- See Also:
 
- 
SHORT_FULL_STYLE- See Also:
 
- 
SHORT_NOTIME_STYLE- See Also:
 
- 
MEDIUM_SHORT_STYLE- See Also:
 
- 
MEDIUM_LONG_STYLE- See Also:
 
- 
MEDIUM_FULL_STYLE- See Also:
 
- 
MEDIUM_NOTIME_STYLE- See Also:
 
- 
LONG_SHORT_STYLE- See Also:
 
- 
LONG_MEDIUM_STYLE- See Also:
 
- 
LONG_FULL_STYLE- See Also:
 
- 
LONG_NOTIME_STYLE- See Also:
 
- 
FULL_SHORT_STYLE- See Also:
 
- 
FULL_MEDIUM_STYLE- See Also:
 
- 
FULL_LONG_STYLE- See Also:
 
- 
FULL_NOTIME_STYLE- See Also:
 
- 
NODATE_SHORT_STYLE- See Also:
 
- 
NODATE_MEDIUM_STYLE- See Also:
 
- 
NODATE_LONG_STYLE- See Also:
 
- 
NODATE_FULL_STYLE- See Also:
 
 
- 
- 
Constructor Details- 
DateLabelComponent
 
- 
- 
Method Details- 
setTextOnDateNullSet text that will be showed when value of date is null.
- 
createConverter- Overrides:
- createConverterin class- org.apache.wicket.Component
 
- 
onComponentTagBodypublic void onComponentTagBody(org.apache.wicket.markup.MarkupStream markupStream, org.apache.wicket.markup.ComponentTag openTag) - Overrides:
- onComponentTagBodyin class- org.apache.wicket.markup.html.basic.Label
 
- 
customizeDateStringFunction for customize showed text for date. Input parameters are date as string and date, that can't be null.
 
-