com.pmease.quickbuild.plugin.report.engine.web.feedback
Class FeedbackLabel

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.markup.html.WebComponent
          extended by org.apache.wicket.markup.html.basic.Label
              extended by com.pmease.quickbuild.plugin.report.engine.web.feedback.FeedbackLabel
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.feedback.IFeedback, org.apache.wicket.IClusterable, org.apache.wicket.IConverterLocator, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>

public class FeedbackLabel
extends org.apache.wicket.markup.html.basic.Label
implements org.apache.wicket.feedback.IFeedback

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
 
Constructor Summary
FeedbackLabel(java.lang.String id, org.apache.wicket.markup.html.form.FormComponent<?> component)
          Call this constructor if you just want to display the FeedbackMessage of the component
FeedbackLabel(java.lang.String id, org.apache.wicket.markup.html.form.FormComponent<?> component, org.apache.wicket.model.IModel<java.lang.String> iModel)
          Call this constructor if you want to display a custom model (for easy i18n)
FeedbackLabel(java.lang.String id, org.apache.wicket.markup.html.form.FormComponent<?> component, java.lang.String text)
          Call this constructor if you want to display a custom text
 
Method Summary
protected  void onBeforeRender()
          Set the content of this FeedbackLabel, depending on if the component has a FeedbackMessage.
 
Methods inherited from class org.apache.wicket.markup.html.basic.Label
onComponentTag, onComponentTagBody
 
Methods inherited from class org.apache.wicket.markup.html.WebComponent
onRender
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, 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, getFeedbackMessage, 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, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onAfterRenderChildren, onConfigure, onDetach, onEvent, onInitialize, onMarkupAttached, 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, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeedbackLabel

public FeedbackLabel(java.lang.String id,
                     org.apache.wicket.markup.html.form.FormComponent<?> component)
Call this constructor if you just want to display the FeedbackMessage of the component

Parameters:
id - The non-null id of this component
component - The FormComponent to show the FeedbackMessage for.

FeedbackLabel

public FeedbackLabel(java.lang.String id,
                     org.apache.wicket.markup.html.form.FormComponent<?> component,
                     java.lang.String text)
Call this constructor if you want to display a custom text

Parameters:
id - The non-null id of this component
component - The FormComponent to show the custom text for.
text - The custom text to show when the FormComponent has a FeedbackMessage

FeedbackLabel

public FeedbackLabel(java.lang.String id,
                     org.apache.wicket.markup.html.form.FormComponent<?> component,
                     org.apache.wicket.model.IModel<java.lang.String> iModel)
Call this constructor if you want to display a custom model (for easy i18n)

Parameters:
id - The non-null id of this component
component - The FormComponent to show the custom model for.
iModel - The custom model to show when the FormComponent has a FeedbackMessage
Method Detail

onBeforeRender

protected void onBeforeRender()
Set the content of this FeedbackLabel, depending on if the component has a FeedbackMessage. The HTML class attribute will be filled with the error level of the feedback message. That way, you can easily style different messages differently. Examples: class = "feedback-info" class = "feedback-error" class = "feedback-debug" class = "feedback-fatal"

Overrides:
onBeforeRender in class org.apache.wicket.Component
See Also:
Component


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.