public abstract class AbstractConsole
extends org.apache.wicket.markup.html.WebMarkupContainer
Component.onBeforeRender()
has to be invoked)Modifier and Type | Field and Description |
---|---|
protected ConsoleBehavior |
consoleBehavior |
Constructor and Description |
---|
AbstractConsole(String id)
Constructor with a default capacity (
ConsoleMessages.CAPACITY ) |
AbstractConsole(String id,
org.apache.wicket.model.IModel<ConsoleMessages> model)
Constructor
|
AbstractConsole(String id,
int capacity)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears console messages
|
protected String |
format(Serializable message,
boolean error)
Formats the message (escaping, etc)
|
ConsoleMessages |
getModelObject()
Gets the model object
|
void |
log(org.apache.wicket.ajax.AjaxRequestTarget target,
Serializable message,
boolean error)
Logs a message
|
void |
log(Serializable message,
boolean error)
Logs a message
|
protected ConsoleBehavior |
newConsoleBehavior()
Gets a new
ConsoleBehavior |
protected void |
onInitialize() |
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, 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, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected ConsoleBehavior consoleBehavior
public AbstractConsole(String id)
ConsoleMessages.CAPACITY
)id
- the markup idpublic AbstractConsole(String id, int capacity)
id
- the markup idcapacity
- the max capacitypublic AbstractConsole(String id, org.apache.wicket.model.IModel<ConsoleMessages> model)
id
- the markup idmodel
- the ConsoleMessages
modelprotected void onInitialize()
onInitialize
in class org.apache.wicket.Component
public ConsoleMessages getModelObject()
public void log(Serializable message, boolean error)
message
- the message to logerror
- indicates whether the message is an error messagepublic void log(org.apache.wicket.ajax.AjaxRequestTarget target, Serializable message, boolean error)
message
- the message to logerror
- indicates whether the message is an error messagetarget
- the AjaxRequestTarget
protected String format(Serializable message, boolean error)
message
- the message to formaterror
- indicates whether the message is an error messagepublic void clear()
protected ConsoleBehavior newConsoleBehavior()
ConsoleBehavior
ConsoleBehavior
Copyright © 2015 7thWeb. All rights reserved.