OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adf.view.js.logging
Class AdfConsoleLogWriter

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.logging.AdfLogWriter
               |
               +--oracle.adf.view.js.logging.AdfConsoleLogWriter

public class AdfConsoleLogWriter
extends AdfLogWriter
A AdfLogWriter subclass which logs messages to a console window.



Field Summary

private Object
_backupLogWriter
private Object
_columns
private Object
_consoleWindow
private Object
_formatters
private static Object
_GECKO_STACK_RE
private static Object
_LINK_TRACE_TO_LINE_NUMBERS
private Object
_loggedMessages
private Object
_parentWindow


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfConsoleLogWriter(Object parentWindow, Object backupLogWriter)
A AdfLogWriter subclass which logs messages to a console window.


Method Summary

private Object
_addDisplayedRecords()
Adds all of the the contents of the Log Records
public Object
clear()
Clears the contents of the ConsoleAdfLogWriter
private Object
_clearDisplayedRecords()
Clear the displayed records from the DOM
public Object
close()
Close the ConsoleAdfLogWriter
private Object
_createHeaders()
Creates the headers for the logging table
private Object
_createRow(Object logRecord)
Creates a row to add to the lgging table
protected Object
FormatError(Object error)
Formats the error field of the AdfLogRecord
protected Object
FormatMessage(Object message)
Formats the message field of the AdfLogRecord
private Object
_getDocument()
Returns the Console Window's document
private Object
_getRecordDiv()
Returns the Console Window's recordDiv DomElement
private Object
_handleEvaluate(Object evalString)
Handles changes to the eval field
protected Object
HandleOnLoad()
Handle loading of the console window
protected Object
Init(Object parentWindow, Object backupLogWriter)
Initializes the instance.
private Object
_logInternalError(Object ex, Object message)
Logs an internal error to to the backup AdfLogWriter
private Object
_openConsoleWindow()
Creates and opens the ConsoleLogWindow
public Object
publish(Object logRecord)
Write the record to the Console window
public Object
setFilter(Object filter)
Sets the filter on the ConsoleAdfLogWriter
private Object
_showMessage(Object logRecord)
public Object
updateFilter(Object filterValue)
Updates the string to use as the AdfLogWriter's filter
private Object
_updateHeaders()
Updates the table headers
private Object
_updateRecords()
Update the contents of the Log Records
private Object
_windowResized()
Resize the Div containing the table to stretch down to the bottom of the window
private Object
_windowUnloaded()
IE doesn't like us messing with properties on closed window objects, so clean up in onunload


Methods inherited from oracle.adf.view.js.logging.AdfLogWriter

CheckIfClosed, flush, FormatLevel, FormatLogRecord, FormatWhen, getFilter, PublishImpl


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_backupLogWriter

private Object _backupLogWriter

_columns

private Object _columns

_consoleWindow

private Object _consoleWindow

_formatters

private Object _formatters

_GECKO_STACK_RE

private static Object _GECKO_STACK_RE

_LINK_TRACE_TO_LINE_NUMBERS

private static Object _LINK_TRACE_TO_LINE_NUMBERS

_loggedMessages

private Object _loggedMessages

_parentWindow

private Object _parentWindow

Constructor Detail


AdfConsoleLogWriter

public AdfConsoleLogWriter(Object parentWindow,
                           Object backupLogWriter)

A AdfLogWriter subclass which logs messages to a console window.

Parameters:
parentWindow    
backupLogWriter    

Method Detail


_addDisplayedRecords

private Object _addDisplayedRecords()

Adds all of the the contents of the Log Records

Return:
Object

clear

public Object clear()

Clears the contents of the ConsoleAdfLogWriter

Return:
Object

_clearDisplayedRecords

private Object _clearDisplayedRecords()

Clear the displayed records from the DOM

Return:
Object

close

public Object close()

Close the ConsoleAdfLogWriter

Return:
Object
Overrides:
AdfLogWriter.close()

_createHeaders

private Object _createHeaders()

Creates the headers for the logging table

Return:
Object

_createRow

private Object _createRow(Object logRecord)

Creates a row to add to the lgging table

Parameters:
logRecord    
Return:
Object

FormatError

protected Object FormatError(Object error)

Formats the error field of the AdfLogRecord

Parameters:
error    
Return:
Object
Overrides:
AdfLogWriter.FormatError(Object)

FormatMessage

protected Object FormatMessage(Object message)

Formats the message field of the AdfLogRecord

Parameters:
message    
Return:
Object
Overrides:
AdfLogWriter.FormatMessage(Object)

_getDocument

private Object _getDocument()

Returns the Console Window's document

Return:
Object

_getRecordDiv

private Object _getRecordDiv()

Returns the Console Window's recordDiv DomElement

Return:
Object

_handleEvaluate

private Object _handleEvaluate(Object evalString)

Handles changes to the eval field

Parameters:
evalString    
Return:
Object

HandleOnLoad

protected Object HandleOnLoad()

Handle loading of the console window

Return:
Object

Init

protected Object Init(Object parentWindow,
                      Object backupLogWriter)

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Parameters:
parentWindow    
backupLogWriter    
Return:
Object
Overrides:
AdfObject.Init()

_logInternalError

private Object _logInternalError(Object ex,
                                 Object message)

Logs an internal error to to the backup AdfLogWriter

Parameters:
ex    
message    
Return:
Object

_openConsoleWindow

private Object _openConsoleWindow()

Creates and opens the ConsoleLogWindow

Return:
Object

publish

public Object publish(Object logRecord)

Write the record to the Console window

Parameters:
logRecord    
Return:
Object
Overrides:
AdfLogWriter.publish(Object)

setFilter

public Object setFilter(Object filter)

Sets the filter on the ConsoleAdfLogWriter

Parameters:
filter    
Return:
Object
Overrides:
AdfLogWriter.setFilter(Object)

_showMessage

private Object _showMessage(Object logRecord)

Parameters:
logRecord    
Return:
Object

updateFilter

public Object updateFilter(Object filterValue)

Updates the string to use as the AdfLogWriter's filter

Parameters:
filterValue    
Return:
Object

_updateHeaders

private Object _updateHeaders()

Updates the table headers

Return:
Object

_updateRecords

private Object _updateRecords()

Update the contents of the Log Records

Return:
Object

_windowResized

private Object _windowResized()

Resize the Div containing the table to stretch down to the bottom of the window

Return:
Object

_windowUnloaded

private Object _windowUnloaded()

IE doesn't like us messing with properties on closed window objects, so clean up in onunload

Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2012.08.25 02:16 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.