Class DateLabelComponent
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.markup.html.WebComponent
-
- org.apache.wicket.markup.html.basic.Label
-
- org.apache.wicket.datetime.markup.html.basic.DateLabel
-
- 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,org.apache.wicket.datetime.markup.html.basic.DateLabel>,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.datetime.markup.html.basic.DateLabelCreated 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFULL_FULL_STYLEstatic StringFULL_LONG_STYLEstatic StringFULL_MEDIUM_STYLEstatic StringFULL_NOTIME_STYLEstatic StringFULL_SHORT_STYLEstatic StringLONG_FULL_STYLEstatic StringLONG_LONG_STYLEstatic StringLONG_MEDIUM_STYLEstatic StringLONG_NOTIME_STYLEstatic StringLONG_SHORT_STYLEstatic StringMEDIUM_FULL_STYLEstatic StringMEDIUM_LONG_STYLEstatic StringMEDIUM_MEDIUM_STYLEstatic StringMEDIUM_NOTIME_STYLEstatic StringMEDIUM_SHORT_STYLEstatic StringNODATE_FULL_STYLEstatic StringNODATE_LONG_STYLEstatic StringNODATE_MEDIUM_STYLEstatic StringNODATE_SHORT_STYLEstatic StringSHORT_FULL_STYLEstatic StringSHORT_LONG_STYLEstatic StringSHORT_MEDIUM_STYLEstatic StringSHORT_NOTIME_STYLEstatic StringSHORT_SHORT_STYLE
-
Constructor Summary
Constructors Constructor Description DateLabelComponent(String id, org.apache.wicket.model.IModel<Date> model, String style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAfterDateText()protected StringgetBeforeDateText()voidsetBeforeTextOnDateNull(String nullDateText)-
Methods inherited from class org.apache.wicket.datetime.markup.html.basic.DateLabel
createConverter, forDatePattern, forDatePattern, forDateStyle, forDateStyle, forShortStyle, forShortStyle, getAfter, getBefore, onComponentTagBody, setAfter, setBefore, withConverter, withConverter
-
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
-
-
-
-
Field Detail
-
SHORT_SHORT_STYLE
public static final String SHORT_SHORT_STYLE
- See Also:
- Constant Field Values
-
MEDIUM_MEDIUM_STYLE
public static final String MEDIUM_MEDIUM_STYLE
- See Also:
- Constant Field Values
-
LONG_LONG_STYLE
public static final String LONG_LONG_STYLE
- See Also:
- Constant Field Values
-
FULL_FULL_STYLE
public static final String FULL_FULL_STYLE
- See Also:
- Constant Field Values
-
SHORT_MEDIUM_STYLE
public static final String SHORT_MEDIUM_STYLE
- See Also:
- Constant Field Values
-
SHORT_LONG_STYLE
public static final String SHORT_LONG_STYLE
- See Also:
- Constant Field Values
-
SHORT_FULL_STYLE
public static final String SHORT_FULL_STYLE
- See Also:
- Constant Field Values
-
SHORT_NOTIME_STYLE
public static final String SHORT_NOTIME_STYLE
- See Also:
- Constant Field Values
-
MEDIUM_SHORT_STYLE
public static final String MEDIUM_SHORT_STYLE
- See Also:
- Constant Field Values
-
MEDIUM_LONG_STYLE
public static final String MEDIUM_LONG_STYLE
- See Also:
- Constant Field Values
-
MEDIUM_FULL_STYLE
public static final String MEDIUM_FULL_STYLE
- See Also:
- Constant Field Values
-
MEDIUM_NOTIME_STYLE
public static final String MEDIUM_NOTIME_STYLE
- See Also:
- Constant Field Values
-
LONG_SHORT_STYLE
public static final String LONG_SHORT_STYLE
- See Also:
- Constant Field Values
-
LONG_MEDIUM_STYLE
public static final String LONG_MEDIUM_STYLE
- See Also:
- Constant Field Values
-
LONG_FULL_STYLE
public static final String LONG_FULL_STYLE
- See Also:
- Constant Field Values
-
LONG_NOTIME_STYLE
public static final String LONG_NOTIME_STYLE
- See Also:
- Constant Field Values
-
FULL_SHORT_STYLE
public static final String FULL_SHORT_STYLE
- See Also:
- Constant Field Values
-
FULL_MEDIUM_STYLE
public static final String FULL_MEDIUM_STYLE
- See Also:
- Constant Field Values
-
FULL_LONG_STYLE
public static final String FULL_LONG_STYLE
- See Also:
- Constant Field Values
-
FULL_NOTIME_STYLE
public static final String FULL_NOTIME_STYLE
- See Also:
- Constant Field Values
-
NODATE_SHORT_STYLE
public static final String NODATE_SHORT_STYLE
- See Also:
- Constant Field Values
-
NODATE_MEDIUM_STYLE
public static final String NODATE_MEDIUM_STYLE
- See Also:
- Constant Field Values
-
NODATE_LONG_STYLE
public static final String NODATE_LONG_STYLE
- See Also:
- Constant Field Values
-
NODATE_FULL_STYLE
public static final String NODATE_FULL_STYLE
- See Also:
- Constant Field Values
-
-