qx.log.appender
Class Window

java.lang.Object
  extended by qx.core.Object
      extended by qx.log.LogEventProcessor
          extended by qx.log.appender.Abstract
              extended by qx.log.appender.Window

public class Window
extends Abstract

An appender that writes all messages to a log window.

This class does not depend on qooxdoo widgets, so it also works when there are problems with widgets or when the widgets are not yet initialized.


Constructor Summary
Window()
           
Window(java.lang.String name)
           
 
Method Summary
 void _applyAutoCloseWithErrors(java.lang.Object value, java.lang.Object old)
           
 void _autoCloseWindow()
          Called when the window should be automatically closed (because the page that opened is is unloaded).
 void _openWindowCallback()
           
 void _setDivVisibility(java.lang.Object divDataSet)
           
 void _showMessageInLog(java.lang.String msg)
          Appends a line to the log showing the given text
 void appendLogEvent(java.lang.Object evt)
          Appends a log event to the log.
 void closeWindow()
          Closes the log window.
 boolean getAutoCloseWithErrors()
          Returns the (computed) value of the property autoCloseWithErrors.
 java.lang.Integer getMaxMessages()
          Returns the (computed) value of the property maxMessages.
 boolean getPopUnder()
          Returns the (computed) value of the property popUnder.
 java.lang.Integer getWindowHeight()
          Returns the (computed) value of the property windowHeight.
 java.lang.Integer getWindowLeft()
          Returns the (computed) value of the property windowLeft.
 java.lang.Integer getWindowTop()
          Returns the (computed) value of the property windowTop.
 java.lang.Integer getWindowWidth()
          Returns the (computed) value of the property windowWidth.
 void initAutoCloseWithErrors(boolean arg)
          Calls the apply method and dispatches the change event of the property autoCloseWithErrors with the default value defined by the class developer.
 void initMaxMessages(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property maxMessages with the default value defined by the class developer.
 void initPopUnder(boolean arg)
          Calls the apply method and dispatches the change event of the property popUnder with the default value defined by the class developer.
 void initWindowHeight(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property windowHeight with the default value defined by the class developer.
 void initWindowLeft(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property windowLeft with the default value defined by the class developer.
 void initWindowTop(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property windowTop with the default value defined by the class developer.
 void initWindowWidth(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property windowWidth with the default value defined by the class developer.
 boolean isAutoCloseWithErrors()
          Check whether the (computed) value of the boolean property autoCloseWithErrors equals true.
 boolean isPopUnder()
          Check whether the (computed) value of the boolean property popUnder equals true.
 void openWindow()
          Creates and opens the log window if it doesn’t alread exist.
 void resetAutoCloseWithErrors()
          Resets the user value of the property autoCloseWithErrors.
 void resetMaxMessages()
          Resets the user value of the property maxMessages.
 void resetPopUnder()
          Resets the user value of the property popUnder.
 void resetWindowHeight()
          Resets the user value of the property windowHeight.
 void resetWindowLeft()
          Resets the user value of the property windowLeft.
 void resetWindowTop()
          Resets the user value of the property windowTop.
 void resetWindowWidth()
          Resets the user value of the property windowWidth.
 void setAutoCloseWithErrors(boolean arg)
          Sets the user value of the property autoCloseWithErrors.
 void setFilterText(java.lang.String text)
          Sets the filter text to use.
 void setMaxMessages(java.lang.Integer arg)
          Sets the user value of the property maxMessages.
 void setPopUnder(boolean arg)
          Sets the user value of the property popUnder.
 void setWindowHeight(java.lang.Integer arg)
          Sets the user value of the property windowHeight.
 void setWindowLeft(java.lang.Integer arg)
          Sets the user value of the property windowLeft.
 void setWindowTop(java.lang.Integer arg)
          Sets the user value of the property windowTop.
 void setWindowWidth(java.lang.Integer arg)
          Sets the user value of the property windowWidth.
 boolean toggleAutoCloseWithErrors()
          Toggles the (computed) value of the boolean property autoCloseWithErrors.
 boolean togglePopUnder()
          Toggles the (computed) value of the boolean property popUnder.
 
Methods inherited from class qx.log.appender.Abstract
formatLogEvent, getUseLongFormat, handleLogEvent, initUseLongFormat, isUseLongFormat, resetUseLongFormat, setUseLongFormat, toggleUseLongFormat
 
Methods inherited from class qx.log.LogEventProcessor
_getDefaultFilter, addFilter, clearFilters, decideLogEvent, getHeadFilter, setEnabled, setMinLevel
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Window

public Window()

Window

public Window(java.lang.String name)
Method Detail

_applyAutoCloseWithErrors

public void _applyAutoCloseWithErrors(java.lang.Object value,
                                      java.lang.Object old)

_autoCloseWindow

public void _autoCloseWindow()

Called when the window should be automatically closed (because the page that opened is is unloaded). Will only close the window if the autoClose***-Properties allow it


_openWindowCallback

public void _openWindowCallback()

_setDivVisibility

public void _setDivVisibility(java.lang.Object divDataSet)

_showMessageInLog

public void _showMessageInLog(java.lang.String msg)

Appends a line to the log showing the given text


appendLogEvent

public void appendLogEvent(java.lang.Object evt)
Description copied from class: Abstract

Appends a log event to the log.

Overrides:
appendLogEvent in class Abstract

closeWindow

public void closeWindow()

Closes the log window.


getAutoCloseWithErrors

public boolean getAutoCloseWithErrors()

Returns the (computed) value of the property autoCloseWithErrors.

For further details take a look at the property definition: autoCloseWithErrors.


getMaxMessages

public java.lang.Integer getMaxMessages()

Returns the (computed) value of the property maxMessages.

For further details take a look at the property definition: maxMessages.


getPopUnder

public boolean getPopUnder()

Returns the (computed) value of the property popUnder.

For further details take a look at the property definition: popUnder.


getWindowHeight

public java.lang.Integer getWindowHeight()

Returns the (computed) value of the property windowHeight.

For further details take a look at the property definition: windowHeight.


getWindowLeft

public java.lang.Integer getWindowLeft()

Returns the (computed) value of the property windowLeft.

For further details take a look at the property definition: windowLeft.


getWindowTop

public java.lang.Integer getWindowTop()

Returns the (computed) value of the property windowTop.

For further details take a look at the property definition: windowTop.


getWindowWidth

public java.lang.Integer getWindowWidth()

Returns the (computed) value of the property windowWidth.

For further details take a look at the property definition: windowWidth.


initAutoCloseWithErrors

public void initAutoCloseWithErrors(boolean arg)

Calls the apply method and dispatches the change event of the property autoCloseWithErrors with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: autoCloseWithErrors.


initMaxMessages

public void initMaxMessages(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property maxMessages with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: maxMessages.


initPopUnder

public void initPopUnder(boolean arg)

Calls the apply method and dispatches the change event of the property popUnder with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: popUnder.


initWindowHeight

public void initWindowHeight(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property windowHeight with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: windowHeight.


initWindowLeft

public void initWindowLeft(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property windowLeft with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: windowLeft.


initWindowTop

public void initWindowTop(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property windowTop with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: windowTop.


initWindowWidth

public void initWindowWidth(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property windowWidth with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: windowWidth.


isAutoCloseWithErrors

public boolean isAutoCloseWithErrors()

Check whether the (computed) value of the boolean property autoCloseWithErrors equals true.

For further details take a look at the property definition: autoCloseWithErrors.


isPopUnder

public boolean isPopUnder()

Check whether the (computed) value of the boolean property popUnder equals true.

For further details take a look at the property definition: popUnder.


openWindow

public void openWindow()

Creates and opens the log window if it doesn’t alread exist.


resetAutoCloseWithErrors

public void resetAutoCloseWithErrors()

Resets the user value of the property autoCloseWithErrors.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: autoCloseWithErrors.


resetMaxMessages

public void resetMaxMessages()

Resets the user value of the property maxMessages.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: maxMessages.


resetPopUnder

public void resetPopUnder()

Resets the user value of the property popUnder.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: popUnder.


resetWindowHeight

public void resetWindowHeight()

Resets the user value of the property windowHeight.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: windowHeight.


resetWindowLeft

public void resetWindowLeft()

Resets the user value of the property windowLeft.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: windowLeft.


resetWindowTop

public void resetWindowTop()

Resets the user value of the property windowTop.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: windowTop.


resetWindowWidth

public void resetWindowWidth()

Resets the user value of the property windowWidth.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: windowWidth.


setAutoCloseWithErrors

public void setAutoCloseWithErrors(boolean arg)

Sets the user value of the property autoCloseWithErrors.

For further details take a look at the property definition: autoCloseWithErrors.


setFilterText

public void setFilterText(java.lang.String text)

Sets the filter text to use. Only log events containing all words of the given text will be shown


setMaxMessages

public void setMaxMessages(java.lang.Integer arg)

Sets the user value of the property maxMessages.

For further details take a look at the property definition: maxMessages.


setPopUnder

public void setPopUnder(boolean arg)

Sets the user value of the property popUnder.

For further details take a look at the property definition: popUnder.


setWindowHeight

public void setWindowHeight(java.lang.Integer arg)

Sets the user value of the property windowHeight.

For further details take a look at the property definition: windowHeight.


setWindowLeft

public void setWindowLeft(java.lang.Integer arg)

Sets the user value of the property windowLeft.

For further details take a look at the property definition: windowLeft.


setWindowTop

public void setWindowTop(java.lang.Integer arg)

Sets the user value of the property windowTop.

For further details take a look at the property definition: windowTop.


setWindowWidth

public void setWindowWidth(java.lang.Integer arg)

Sets the user value of the property windowWidth.

For further details take a look at the property definition: windowWidth.


toggleAutoCloseWithErrors

public boolean toggleAutoCloseWithErrors()

Toggles the (computed) value of the boolean property autoCloseWithErrors.

For further details take a look at the property definition: autoCloseWithErrors.


togglePopUnder

public boolean togglePopUnder()

Toggles the (computed) value of the boolean property popUnder.

For further details take a look at the property definition: popUnder.



Copyright © 2008 1&1. All Rights Reserved.