Package com.saperion.ngc.events.logging
Class LogEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.logging.LogEvent
- All Implemented Interfaces:
LoggingEvent,Serializable
- Direct Known Subclasses:
ErrorLogEvent,InfoLogEvent,WarningLogEvent
Base log event.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLogEvent(org.zkoss.zk.ui.Component target, LogEvent.LogSeverity sev, LogMessage msg) Constructor.LogEvent(org.zkoss.zk.ui.Component target, LogEvent.LogSeverity sev, LogMessage msg, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>final LogMessageReturns the LogMessage bean.final LogEvent.LogSeverityReturns the severity.Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Constructor Details
-
LogEvent
Constructor.- Parameters:
target- targetsev- severitymsg- log message
-
LogEvent
public LogEvent(org.zkoss.zk.ui.Component target, LogEvent.LogSeverity sev, LogMessage msg, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Constructor.- Parameters:
target- targetsev- severitymsg- log messagelistener- listener to notify when messagebox caused by this event is closed
-
-
Method Details
-
getSeverity
Returns the severity.- Specified by:
getSeverityin interfaceLoggingEvent- Returns:
- the severity
- See Also:
-
getLogMessage
Returns the LogMessage bean.- Specified by:
getLogMessagein interfaceLoggingEvent- Returns:
- LogMessage bean
- See Also:
-
getEventListener
public org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> getEventListener()- Specified by:
getEventListenerin interfaceLoggingEvent- Returns:
- listener to notify when messagebox caused by this event is closed
- See Also:
-