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 Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.apache.wicket.Component
ENABLE, 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 Summary
ConstructorDescriptionDateLabelComponent
(String id, org.apache.wicket.model.IModel<Date> model, String style) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.wicket.util.convert.IConverter<?>
createConverter
(Class<?> type) void
customizeDateString
(SerializableBiFunction<String, Date, String> customizeNotNullDate) Function for customize showed text for date.void
onComponentTagBody
(org.apache.wicket.markup.MarkupStream markupStream, org.apache.wicket.markup.ComponentTag openTag) void
setTextOnDateNull
(String nullDateText) Set text that will be showed when value of date is null.Methods inherited from class org.apache.wicket.markup.html.basic.Label
onComponentTag
Methods inherited from class org.apache.wicket.markup.html.WebComponent
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession, onRender
Methods inherited from class org.apache.wicket.Component
add, 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, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.wicket.IGenericComponent
getDefaultModel, 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
-
setTextOnDateNull
Set text that will be showed when value of date is null. -
createConverter
- Overrides:
createConverter
in classorg.apache.wicket.Component
-
onComponentTagBody
public void onComponentTagBody(org.apache.wicket.markup.MarkupStream markupStream, org.apache.wicket.markup.ComponentTag openTag) - Overrides:
onComponentTagBody
in classorg.apache.wicket.markup.html.basic.Label
-
customizeDateString
Function for customize showed text for date. Input parameters are date as string and date, that can't be null.
-