| java.lang.Object org.directwebremoting.proxy.io.Context jsx3.lang.Object jsx3.app.Model jsx3.gui.Window
Window | public class Window extends jsx3.app.Model (Code) | | Allows for rendering a branch of the DOM of an application in a separate browser window.
Access instances of this class with the following methods in the jsx3.app.Server class:
createAppWindow()
getAppWindow()
loadAppWindow()
author: Joe Walker [joe at getahead dot org] author: DRAPGEN - Dwr Reverse Ajax Proxy GENerator |
Field Summary | |
final public static String | DID_FOCUS Event subject: published after this window has received focus. | final public static String | DID_OPEN Event subject: published after this window has successfully opened. | final public static String | DID_RESIZE Event subject: published after this window has been resized via user interaction. | final public static String | PARENT_DID_CLOSE Event subject: published after this window's parent has closed. | final public static String | WILL_CLOSE Event subject: published just before this window will close. |
DID_FOCUS | final public static String DID_FOCUS(Code) | | Event subject: published after this window has received focus.
|
DID_OPEN | final public static String DID_OPEN(Code) | | Event subject: published after this window has successfully opened.
|
DID_RESIZE | final public static String DID_RESIZE(Code) | | Event subject: published after this window has been resized via user interaction.
|
PARENT_DID_CLOSE | final public static String PARENT_DID_CLOSE(Code) | | Event subject: published after this window's parent has closed.
|
WILL_CLOSE | final public static String WILL_CLOSE(Code) | | Event subject: published just before this window will close.
|
Window | public Window(Context context, String extension, ScriptProxy scriptProxy)(Code) | | All reverse ajax proxies need context to work from
Parameters: scriptProxy - The place we are writing scripts to Parameters: context - The script that got us to where we are now |
Window | public Window(String strName)(Code) | | The instance initializer.
Parameters: strName - a unique name for this window. |
close | public void close(org.directwebremoting.proxy.Callback<Boolean> callback)(Code) | | Closes the browser window of this window instance.
Parameters: callback - true if the window successfully closed or false if it didn't closebecause of JavaScript security constraints or user interaction. |
constrainToScreen | public void constrainToScreen()(Code) | | Ensures that this window is at least partially visible on the computer screen.
|
focus | public void focus()(Code) | | Focuses the browser window of this window instance.
|
getOffsetLeft | public void getOffsetLeft(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns the current x-coordinate screen position of this browser window relative to the parent application window.
If the parent window is no longer open, this method returns the position relative to the upper-left
corner of the screen.
|
getOffsetTop | public void getOffsetTop(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns the current y-coordinate screen position of this browser window relative to the parent application window.
If the parent window is no longer open, this method returns the position relative to the upper-left
corner of the screen.
|
getRootBlock | public jsx3.gui.Block getRootBlock()(Code) | | Returns the first DOM child of this window object. If no child exists, this method creates a root block, adds it
to the DOM, and returns it. A window will only render its first DOM child.
|
getRootBlock | public T getRootBlock(Class<T> returnType)(Code) | | Returns the first DOM child of this window object. If no child exists, this method creates a root block, adds it
to the DOM, and returns it. A window will only render its first DOM child.
Parameters: returnType - The expected return type |
isDependent | public void isDependent(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether this window is "dependent." Dependent windows close automatically when their parents close. If
a window is not dependent, it will stay open after the parent window closes. Note that the parent window contains
all the JavaScript code and so it is very likely that interacting with a window after the parent has closed
will raise errors.
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE . |
isResizable | public void isResizable(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether this window is resizable via user interaction. The value returned by this method will reflect
the last value passed to setResizable() and therefore may not truly reflect the current state of the
browser window.
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE . |
isScrollable | public void isScrollable(org.directwebremoting.proxy.Callback<Integer> callback)(Code) | | Returns whether this window will show scroll bars if the content outgrows the window. The value returned by
this method will reflect the last value passed to setScrollable() and therefore may not truly
reflect the current state of the browser window.
Parameters: callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE . |
moveTo | public void moveTo(int intOffsetLeft, int intOffsetTop)(Code) | | Moves the browser window of this window instance to a position on the screen. The arguments specify the
offset from the parent application window. If the parent window is no longer open, this window will be moved
relative to the upper-left corner of the screen.
Parameters: intOffsetLeft - the left offset from the parent window. Parameters: intOffsetTop - the top offset from the parent window. |
open | public void open(org.directwebremoting.proxy.Callback<Boolean> callback)(Code) | | Opens the browser window of this window instance. Depending on security settings and popup blockers,
this method may or may not actually open a window. The only safe way to determine whether the window
successfully opened is to register for the DID_OPEN event.
Parameters: callback - true if the window successfully opened (probably). |
setDependent | public void setDependent(boolean bDependent)(Code) | | Sets whether this window is "dependent." This method not affect a currently-open window.
Parameters: bDependent - |
setHeight | public void setHeight(int intHeight)(Code) | | Sets the inner (visible) height of this window. If the window is currently open, the window will be resized
immediately.
Parameters: intHeight - the inner height of the window in pixels. |
setResizable | public void setResizable(boolean bResizable)(Code) | | Sets whether this window is resizable via user interaction. This method will not affect a currently-open window.
Parameters: bResizable - |
setScrollable | public void setScrollable(boolean bScrollable)(Code) | | Sets whether this window will show scroll bars if the content outgrows the window. This method will not affect a
currently-open window.
Parameters: bScrollable - |
setTitle | public void setTitle(String strTitle)(Code) | | Sets the title of the window. The title is displayed in the title bar of the browser window. If the window is
currently open, the title will be updated immediately.
Parameters: strTitle - the title of the window. |
setWidth | public void setWidth(int intWidth)(Code) | | Sets the inner (visible) width of this window. If the window is currently open, the window will be resized
immediately.
Parameters: intWidth - the inner width of the window in pixels. |
Methods inherited from jsx3.app.Model | public void adoptChild(jsx3.app.Model objChild, boolean bRepaint, boolean bForce)(Code)(Java Doc) public jsx3.app.Model doClone(int intPersist, int intMode)(Code)(Java Doc) public T doClone(int intPersist, int intMode, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf)(Code)(Java Doc) public T findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf)(Code)(Java Doc) public T findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfName(String strName)(Code)(Java Doc) public T getAncestorOfName(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(String strType)(Code)(Java Doc) public T getAncestorOfType(String strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(Class strType)(Code)(Java Doc) public T getAncestorOfType(Class strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType)(Code)(Java Doc) public T getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(int vntIndexOrName)(Code)(Java Doc) public T getChild(int vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(String vntIndexOrName)(Code)(Java Doc) public T getChild(String vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public void getChildIndex(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getChildren(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly)(Code)(Java Doc) public T getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly, Class<T> returnType)(Code)(Java Doc) public void getDescendantsOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(String strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(Class strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getFirstChild()(Code)(Java Doc) public T getFirstChild(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(Class strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(Class strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(String strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(String strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public void getHelpId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getLastChild()(Code)(Java Doc) public T getLastChild(Class<T> returnType)(Code)(Java Doc) public void getLoadType(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getMetaValue(String strKey, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getNS(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getName(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getNextSibling()(Code)(Java Doc) public T getNextSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getParent()(Code)(Java Doc) public T getParent(Class<T> returnType)(Code)(Java Doc) public void getPersistence(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model getPreviousSibling()(Code)(Java Doc) public T getPreviousSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Server getServer()(Code)(Java Doc) public jsx3.net.URIResolver getUriResolver()(Code)(Java Doc) public T getUriResolver(Class<T> returnType)(Code)(Java Doc) public void insertBefore(jsx3.app.Model objMoveChild, jsx3.app.Model objPrecedeChild, boolean bRepaint, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public jsx3.app.Model load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void loadAndCache(java.net.URI strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public void loadAndCache(String strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public jsx3.app.Model loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void onAfterAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onAfterAttach()(Code)(Java Doc) public void onBeforeAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onChangeServer(jsx3.app.Server objNewServer, jsx3.app.Server objOldServer)(Code)(Java Doc) public void onDestroy(jsx3.app.Model objParent)(Code)(Java Doc) public void onRemoveChild(Object[] objChild, int intIndex)(Code)(Java Doc) public void onRemoveChild(jsx3.app.Model objChild, int intIndex)(Code)(Java Doc) public void onSetChild(java.lang.Object objChild, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void onSetParent(java.lang.Object objParent, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void publish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model removeChild(jsx3.app.Model vntItem)(Code)(Java Doc) public T removeChild(jsx3.app.Model vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChild(int vntItem)(Code)(Java Doc) public T removeChild(int vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChildren(Object[] arrChildren)(Code)(Java Doc) public T removeChildren(Object[] arrChildren, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, java.net.URI strSourceURL, String strNS)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, String strSourceURL, String strNS)(Code)(Java Doc) public void setHelpId(String strId)(Code)(Java Doc) public void setLoadType(int intLoadType)(Code)(Java Doc) public void setMetaValue(String strKey, String strValue)(Code)(Java Doc) public void setName(String strName)(Code)(Java Doc) public jsx3.app.Model setPersistence(int intPersist)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void toXML(jsx3.lang.Object objProperties, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.xml.CdfDocument toXMLDoc(jsx3.lang.Object objProperties)(Code)(Java Doc) public T toXMLDoc(jsx3.lang.Object objProperties, Class<T> returnType)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribeAll(String strEventId)(Code)(Java Doc)
|
Methods inherited from jsx3.lang.Object | public void ignoreReturn()(Code)(Java Doc)
|
|
|