com.allen_sauer.gwt.log.client.util
Class DOMUtil

java.lang.Object
  extended by com.allen_sauer.gwt.log.client.util.DOMUtil

public class DOMUtil
extends java.lang.Object

Provides DOM utility methods.


Constructor Summary
DOMUtil()
           
 
Method Summary
static java.lang.String adjustTitleLineBreaks(java.lang.String title)
          Adjust line breaks within in the provided title for optimal readability and display length for the current user agent.
static void reportFatalAndThrowRuntimeException(java.lang.String msg)
           
static void windowClear(com.google.gwt.core.client.JavaScriptObject w)
           
static void windowClose(com.google.gwt.core.client.JavaScriptObject window)
           
static com.google.gwt.core.client.JavaScriptObject windowOpen(java.lang.String features)
           
static java.lang.String windowReadyState(com.google.gwt.core.client.JavaScriptObject w)
           
static java.lang.String windowSetTitle(com.google.gwt.core.client.JavaScriptObject w, java.lang.String title)
           
static void windowWrapAndAppendHTML(com.google.gwt.core.client.JavaScriptObject w, java.lang.String html)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

adjustTitleLineBreaks

public static java.lang.String adjustTitleLineBreaks(java.lang.String title)
Adjust line breaks within in the provided title for optimal readability and display length for the current user agent.

Parameters:
title - the desired raw text
Returns:
formatted and escaped text

reportFatalAndThrowRuntimeException

public static void reportFatalAndThrowRuntimeException(java.lang.String msg)
                                                throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException

windowClear

public static void windowClear(com.google.gwt.core.client.JavaScriptObject w)

windowClose

public static void windowClose(com.google.gwt.core.client.JavaScriptObject window)

windowOpen

public static com.google.gwt.core.client.JavaScriptObject windowOpen(java.lang.String features)

windowReadyState

public static java.lang.String windowReadyState(com.google.gwt.core.client.JavaScriptObject w)

windowSetTitle

public static java.lang.String windowSetTitle(com.google.gwt.core.client.JavaScriptObject w,
                                              java.lang.String title)

windowWrapAndAppendHTML

public static void windowWrapAndAppendHTML(com.google.gwt.core.client.JavaScriptObject w,
                                           java.lang.String html)
                                    throws com.google.gwt.core.client.JavaScriptException
Throws:
com.google.gwt.core.client.JavaScriptException