org.atmosphere.gwt.client.extra
Class Window

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.atmosphere.gwt.client.extra.Window

public final class Window
extends com.google.gwt.core.client.JavaScriptObject

Author:
p.havelaar

Constructor Summary
protected Window()
           
 
Method Summary
 void close()
           
static Window current()
           
 boolean getFlag(String name)
           
 int getInt(String name)
           
<X> X
getObject(String name)
           
 String getString(String name)
           
 boolean isset(String name)
           
 Window open(String url, String name, String features)
          Opens a new browser window.
 Window open(String url, String name, WindowFeatures features)
           
 void set(String name, boolean flag)
           
 void set(String name, int value)
           
 void set(String name, Object value)
           
 void set(String name, String value)
           
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Window

protected Window()
Method Detail

current

public static Window current()

open

public Window open(String url,
                   String name,
                   WindowFeatures features)

open

public Window open(String url,
                   String name,
                   String features)
Opens a new browser window. The "name" and "features" arguments are specified here.

Parameters:
url - the URL that the new window will display
name - the name of the window (e.g. "_blank")
features - the features to be enabled/disabled on this window

close

public void close()

set

public void set(String name,
                boolean flag)

set

public void set(String name,
                int value)

set

public void set(String name,
                String value)

set

public void set(String name,
                Object value)

isset

public boolean isset(String name)

getFlag

public boolean getFlag(String name)

getInt

public int getInt(String name)
           throws com.google.gwt.core.client.JavaScriptException
Throws:
com.google.gwt.core.client.JavaScriptException

getString

public String getString(String name)
                 throws com.google.gwt.core.client.JavaScriptException
Throws:
com.google.gwt.core.client.JavaScriptException

getObject

public <X> X getObject(String name)
            throws com.google.gwt.core.client.JavaScriptException
Throws:
com.google.gwt.core.client.JavaScriptException


Copyright © 2011. All Rights Reserved.