public class FieldMessage
extends org.apache.wicket.markup.html.basic.Label
getValidCssClass()
,
getCssClass(String)
and getDefaultCssClass()
Constructor and Description |
---|
FieldMessage(String id,
org.apache.wicket.model.IModel<String> text,
org.apache.wicket.markup.html.form.FormComponent<?> formComponent)
Constructor
|
FieldMessage(String id,
org.apache.wicket.model.IModel<String> text,
org.apache.wicket.markup.html.form.FormComponent<?> formComponent,
boolean specialValidStyle)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
getCssClass(String level)
Get the CSS class name for the field message
|
protected String |
getDefaultCssClass()
Get the default CSS class
|
protected String |
getValidCssClass()
Get the CSS class for valid fields without message
|
protected void |
onBeforeRender() |
onComponentTag, onComponentTagBody
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, 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, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onAfterRenderChildren, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModel, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, toString, toString, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public FieldMessage(String id, org.apache.wicket.model.IModel<String> text, org.apache.wicket.markup.html.form.FormComponent<?> formComponent)
id
- the field message idtext
- the field message textformComponent
- the form componentpublic FieldMessage(String id, org.apache.wicket.model.IModel<String> text, org.apache.wicket.markup.html.form.FormComponent<?> formComponent, boolean specialValidStyle)
id
- the field message idtext
- the field message textformComponent
- the form componentspecialValidStyle
- use the special valid style for a valid
component that has no messagesprotected void onBeforeRender()
onBeforeRender
in class org.apache.wicket.Component
Component.onBeforeRender()
protected String getValidCssClass()
protected String getCssClass(String level)
level
- the feedback level name (ERROR, WARNING, INFO, ...)protected String getDefaultCssClass()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a