Package com.saperion.ngc.logging
Interface LogView
- All Superinterfaces:
Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,Serializable
- All Known Implementing Classes:
LogViewImpl
public interface LogView
extends org.zkoss.zk.ui.Component
Log view interface. Responsible to display user log messages.
- Author:
- mak
-
Field Summary
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorMessage(LogMessage message) Adds an error message to the view.voidaddErrorMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds an error message to the view.voidaddInfoMessage(LogMessage message) Adds an info message to the view.voidaddInfoMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds an info message to the view.voidaddWarningMessage(LogMessage message) Adds a warning message to the view.voidaddWarningMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds a warning message to the view.voidpostErrorLogEvent(LogMessage message) Post an ErrorLogEvent (ZK event).voidpostInfoLogEvent(LogMessage message) Post an InfoLogEvent (ZK event).voidpostWarningLogEvent(LogMessage message) Post a WarningLogEvent (ZK event).voidreset()Reset view.Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverrideMethods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
-
Method Details
-
addErrorMessage
Adds an error message to the view.- Parameters:
message- message text
-
addWarningMessage
Adds a warning message to the view.- Parameters:
message- message text
-
addInfoMessage
Adds an info message to the view.- Parameters:
message- message text
-
addErrorMessage
void addErrorMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds an error message to the view.- Parameters:
message- message texteventListener- listener to notify when the messagebox caused by this event is closed
-
addWarningMessage
void addWarningMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds a warning message to the view.- Parameters:
message- message texteventListener- listener to notify when the messagebox caused by this event is closed
-
addInfoMessage
void addInfoMessage(LogMessage message, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) Adds an info message to the view.- Parameters:
message- message texteventListener- listener to notify when the messagebox caused by this event is closed
-
reset
void reset()Reset view. -
postErrorLogEvent
Post an ErrorLogEvent (ZK event).- Parameters:
message- event message
-
postWarningLogEvent
Post a WarningLogEvent (ZK event).- Parameters:
message- event message
-
postInfoLogEvent
Post an InfoLogEvent (ZK event).- Parameters:
message- event message
-