public class RemoteWindow extends BaseClass implements HasOtherWindowsChangedHandlers
Experimental Features
for more information.OpenFinWindow
class.MultiWindow
,
Experimental Features
config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
RemoteWindow() |
RemoteWindow(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Focuses (activates) this RemoteWindow.
|
void |
activate(RemoteWindowCallback callback)
Focuses (activates) this RemoteWindow.
|
com.google.gwt.event.shared.HandlerRegistration |
addOtherWindowsChangedHandler(OtherWindowsChangedHandler handler)
Add a otherWindowsChanged handler.
|
void |
blur()
Blurs (deactivates) this RemoteWindow.
|
void |
blur(RemoteWindowCallback callback)
Blurs (deactivates) this RemoteWindow.
|
void |
bringToFront()
Brings this RemoteWindow to the front in window stacking order.
|
void |
bringToFront(RemoteWindowCallback callback) |
void |
bringToFront(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Brings this RemoteWindow to the front in window stacking order.
|
void |
close()
Closes this RemoteWindow.
|
void |
close(boolean force) |
void |
close(boolean force,
RemoteWindowCallback callback)
Closes this RemoteWindow.
|
com.google.gwt.core.client.JavaScriptObject |
create() |
void |
deactivate()
Blurs (deactivates) this RemoteWindow.
|
void |
deactivate(RemoteWindowCallback callback)
Blurs (deactivates) this RemoteWindow.
|
void |
focus()
Focuses (activates) this RemoteWindow.
|
void |
focus(RemoteWindowCallback callback)
Focuses (activates) this RemoteWindow.
|
int |
getBrowserHeight()
Get the height of the entire browser window, including browser chrome.
|
int |
getBrowserWidth()
Get the width of the entire browser window, including browser chrome.
|
java.util.Map |
getContainerWindow()
Returns the container window, if present, wrapping the browser window for this RemoteWindow.
|
void |
getInfo(RemoteWindowMapCallback callback)
Checks whether this RemoteWindow is showing.
|
com.google.gwt.core.client.JavaScriptObject |
getJsObj() |
java.lang.String |
getName()
Returns the name of this RemoteWindow.
|
com.google.gwt.core.client.JavaScriptObject |
getOrCreateJsObj() |
static RemoteWindow |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
int |
getPageHeight()
Get the height of the visible portion of the window, not including browser chrome or the scrollbar area.
|
int |
getPageWidth()
Get the width of the visible portion of the window, not including browser chrome or the scrollbar area.
|
RemoteWindow |
getParent()
Returns the parent
RemoteWindow instance that opened this RemoteWindow. |
java.util.Map |
getWindow()
Returns the browser
window object associated with this RemoteWindow. |
protected boolean |
hasCreationContextWindow() |
void |
hide()
Hides this RemoteWindow.
|
void |
hide(RemoteWindowCallback callback) |
void |
hide(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Hides this RemoteWindow.
|
boolean |
isCreated() |
void |
isShowing(RemoteWindowBooleanCallback callback)
Checks whether this RemoteWindow is showing.
|
void |
maximize()
Maximizes this RemoteWindow.
|
void |
maximize(RemoteWindowCallback callback) |
void |
maximize(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Maximizes this RemoteWindow.
|
void |
minimize()
Minimizes this RemoteWindow.
|
void |
minimize(RemoteWindowCallback callback) |
void |
minimize(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Minimizes this RemoteWindow.
|
void |
move(int x,
int y)
Moves this RemoteWindow.
|
void |
move(int x,
int y,
RemoteWindowCallback callback)
Moves this RemoteWindow.
|
void |
resize(int width,
int height)
Resizes this RemoteWindow.
|
void |
resize(int width,
int height,
RemoteWindowCallback callback)
Resizes this RemoteWindow.
|
void |
restore()
Restores this RemoteWindow from being maximized or minimized.
|
void |
restore(RemoteWindowCallback callback) |
void |
restore(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Restores this RemoteWindow from being maximized or minimized.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
show()
Shows this RemoteWindow.
|
void |
show(RemoteWindowCallback callback) |
void |
show(RemoteWindowCallback callback,
RemoteWindowErrorCallback errorCallback)
Shows this RemoteWindow.
|
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
public RemoteWindow()
public RemoteWindow(com.google.gwt.core.client.JavaScriptObject jsObj)
public static RemoteWindow getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class BaseClass
public com.google.gwt.core.client.JavaScriptObject create()
public com.google.gwt.core.client.JavaScriptObject getJsObj()
public com.google.gwt.core.client.JavaScriptObject getOrCreateJsObj()
getOrCreateJsObj
in class BaseClass
public void activate()
public void activate(RemoteWindowCallback callback)
callback
- callback run after it's activatedpublic void blur()
public void blur(RemoteWindowCallback callback)
callback
- callback run after it's deactivatedpublic void bringToFront()
public void bringToFront(RemoteWindowCallback callback)
bringToFront()
public void bringToFront(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after raising windowerrorCallback
- callback run if raising failspublic void close()
public void close(boolean force)
close()
public void close(boolean force, RemoteWindowCallback callback)
force
- whether to force it closedcallback
- callback run after it's closedpublic void deactivate()
public void deactivate(RemoteWindowCallback callback)
callback
- callback run after it's deactivatedpublic void focus()
public void focus(RemoteWindowCallback callback)
callback
- callback run after it's activatedpublic int getBrowserHeight()
public int getBrowserWidth()
public java.util.Map getContainerWindow()
public void getInfo(RemoteWindowMapCallback callback)
callback
- callback to receive outputpublic java.lang.String getName()
public int getPageHeight()
public int getPageWidth()
public RemoteWindow getParent()
RemoteWindow
instance that opened this RemoteWindow.public java.util.Map getWindow()
window
object associated with this RemoteWindow.public void hide()
public void hide(RemoteWindowCallback callback)
hide()
public void hide(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after hiding the windowerrorCallback
- callback run if hiding failspublic void isShowing(RemoteWindowBooleanCallback callback)
callback
- callback to receive outputpublic void maximize()
public void maximize(RemoteWindowCallback callback)
maximize()
public void maximize(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after maximizationerrorCallback
- callback run if maximizing failspublic void minimize()
public void minimize(RemoteWindowCallback callback)
minimize()
public void minimize(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after minimizationerrorCallback
- callback run if minimizing failspublic void move(int x, int y)
x
- desired x-offset of left edgey
- desired y-offset of top edgepublic void move(int x, int y, RemoteWindowCallback callback)
x
- desired x-offset of left edgey
- desired y-offset of top edgecallback
- callback run after it's movedpublic com.google.gwt.event.shared.HandlerRegistration addOtherWindowsChangedHandler(OtherWindowsChangedHandler handler)
Notification fired when the set of other RemoteWindows
changes
or requires re-synchronization due a call to create(), close()
, or a page reload in a different RemoteWindow.
This method has no default implementation.
addOtherWindowsChangedHandler
in interface HasOtherWindowsChangedHandlers
handler
- the otherWindowsChanged handlerHandlerRegistration
used to remove this handlerpublic void resize(int width, int height)
width
- desired new widthheight
- desired new heightpublic void resize(int width, int height, RemoteWindowCallback callback)
width
- desired new widthheight
- desired new heightcallback
- callback run after it's resizedpublic void restore()
public void restore(RemoteWindowCallback callback)
restore()
public void restore(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after restorationerrorCallback
- callback run if restoring failspublic void show()
public void show(RemoteWindowCallback callback)
show()
public void show(RemoteWindowCallback callback, RemoteWindowErrorCallback errorCallback)
callback
- callback run after showing the windowerrorCallback
- callback run if showing failsprotected boolean hasCreationContextWindow()