textbender.o.rhinohide
Class RhiWindow

java.lang.Object
  extended by Rhinohide
      extended by RhiEventTarget
          extended by RhiWindow
All Implemented Interfaces:
ViewCSS, EventTarget, AbstractView

@ThreadSafe
public final class RhiWindow
extends RhiEventTarget
implements ViewCSS

A global 'window' implemented as an overlay of a JavaScript global 'window'. It represents the JavaScript runtime's global object.

See Also:
http://developer.mozilla.org/en/docs/DOM:window

Field Summary
 
Fields inherited from class Rhinohide
window
 
Constructor Summary
RhiWindow(netscape.javascript.JSObject jsObject)
           
 
Method Summary
static RhiWindow createWindow(Applet applet)
          Creates a RhiWindow.
 CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt)
          Not yet coded.
 RhiDocument getDocument()
           
 int getScreenX()
           
 int getScreenY()
           
 RhiSelection getSelection()
          User-selected text (non-standard).
 Rhinohide relayFactorySI()
          Factory to create event relays on the JavaScript side, for RelaySI.
 Rhinohide relayFactorySIP()
          Factory to create event relays on the JavaScript side, for RelaySIP.
 void release()
           
 
Methods inherited from class RhiEventTarget
addEventListener, dispatchEvent, removeEventListener, wrapEventTarget
 
Methods inherited from class Rhinohide
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, toString, window
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RhiWindow

RhiWindow(netscape.javascript.JSObject jsObject)
Method Detail

createWindow

public static RhiWindow createWindow(Applet applet)
Creates a RhiWindow. Call release() when done with it; e.g. when your applet is 'destroyed'.

Parameters:
applet - one of the applets of the document
Returns:
global window for that document

getSelection

public RhiSelection getSelection()
User-selected text (non-standard).


relayFactorySI

public Rhinohide relayFactorySI()
Factory to create event relays on the JavaScript side, for RelaySI. [This is implementation, and will later be made private.]


relayFactorySIP

public Rhinohide relayFactorySIP()
Factory to create event relays on the JavaScript side, for RelaySIP. [This is implementation, and will later be made private.]


getDocument

public RhiDocument getDocument()
Specified by:
getDocument in interface AbstractView

release

public void release()

getComputedStyle

public CSSStyleDeclaration getComputedStyle(Element elt,
                                            String pseudoElt)
Not yet coded.

Specified by:
getComputedStyle in interface ViewCSS
Throws:
UnsupportedOperationException

getScreenX

public int getScreenX()

getScreenY

public int getScreenY()