com.jaxfront.core.dom
Class LoggingListener

java.lang.Object
  extended by com.jaxfront.core.dom.LoggingListener
Direct Known Subclasses:
HistoryLoggingListener

public class LoggingListener
extends java.lang.Object

Defines a listener for logging changes occured in the target DOM. Every listener defines the source, the scope and the logLevel. The scope of a logListener maybe just its source or the whole subtree of this source.


Constructor Summary
LoggingListener(Type source, java.lang.String scope, java.lang.String logLevel)
          Creates a new LoggingListener based on a source type, a scope and a logLevel.
 
Method Summary
 void apply(Type source, DOMChangeEvent event, java.lang.String oldValue)
          Adds a logEntry if the passing source is addressing this loggingListener.
 void apply(Type source, java.beans.PropertyChangeEvent event, java.lang.String oldValue)
           
 java.lang.String getLogLevel()
          Returns the log level.
 boolean getLogPropChanges()
           
 java.lang.String getLogScope()
          Returns the log scope.
 Type getSource()
          Returns the source of this LoggingListener.
 void setLogLevel(java.lang.String logLevel)
           
 void setLogPropertyChanges(boolean doLog)
           
 void setScope(java.lang.String scope)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingListener

public LoggingListener(Type source,
                       java.lang.String scope,
                       java.lang.String logLevel)
Creates a new LoggingListener based on a source type, a scope and a logLevel.

Parameters:
source - of the loggingListener
scope - maybe source only (XUITypes.UIS_SOURCE_ONLY) or whole subtree (XUITypes.UIS_ALL_DERIVED_LEAFS)
logLevel - any logLevel
Method Detail

apply

public void apply(Type source,
                  DOMChangeEvent event,
                  java.lang.String oldValue)
Adds a logEntry if the passing source is addressing this loggingListener.

Parameters:
source - of an occured change
oldValue - forerunner value of the source

apply

public void apply(Type source,
                  java.beans.PropertyChangeEvent event,
                  java.lang.String oldValue)

getLogLevel

public java.lang.String getLogLevel()
Returns the log level.


getLogPropChanges

public boolean getLogPropChanges()

getLogScope

public java.lang.String getLogScope()
Returns the log scope.


getSource

public Type getSource()
Returns the source of this LoggingListener.


setLogLevel

public void setLogLevel(java.lang.String logLevel)

setLogPropertyChanges

public void setLogPropertyChanges(boolean doLog)

setScope

public void setScope(java.lang.String scope)