Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.script
Interface Window  view Window download Window.java


public interface Window

This interface represents the 'window' object defined in the global environment of a SVG document.

Version:
$Id: Window.java,v 1.10 2004/11/18 01:47:01 deweese Exp $

Nested Class Summary
static interface Window.URLResponseHandler
          To handle the completion of a 'getURL()' or 'postURL' call.
 
Method Summary
 void alert(java.lang.String message)
          Displays an alert dialog box.
 void clearInterval(java.lang.Object interval)
          Cancels an interval that was set by a call to 'setInterval'.
 void clearTimeout(java.lang.Object timeout)
          Cancels an timeout that was set by a call to 'setTimeout'.
 boolean confirm(java.lang.String message)
          Displays a confirm dialog box.
 org.apache.batik.bridge.BridgeContext getBridgeContext()
          Returns the current BridgeContext.
 Interpreter getInterpreter()
          Returns the associated interpreter.
 void getURL(java.lang.String uri, Window.URLResponseHandler h)
          Gets data from the given URI.
 void getURL(java.lang.String uri, Window.URLResponseHandler h, java.lang.String enc)
          Gets data from the given URI.
 org.w3c.dom.Node parseXML(java.lang.String text, org.w3c.dom.Document doc)
          Parses the given XML string into a DocumentFragment of the given document or a new document if 'doc' is null.
 void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h)
          Posts data to the given URI.
 void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h, java.lang.String mimeType)
          Posts data to the given URI.
 void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h, java.lang.String mimeType, java.lang.String enc)
          Posts data to the given URI.
 java.lang.String prompt(java.lang.String message)
          Displays an input dialog box.
 java.lang.String prompt(java.lang.String message, java.lang.String defVal)
          Displays an input dialog box, given the default value.
 java.lang.Object setInterval(java.lang.Runnable r, long interval)
          Calls the 'run' method of the given Runnable repeatedly after the given amount of time.
 java.lang.Object setInterval(java.lang.String script, long interval)
          Evaluates the given string repeatedly after the given amount of time.
 java.lang.Object setTimeout(java.lang.Runnable r, long timeout)
          Calls the 'run' method of the given Runnable after the given amount of time.
 java.lang.Object setTimeout(java.lang.String script, long timeout)
          Evaluates the given string after the given amount of time.
 

Method Detail

setInterval

public java.lang.Object setInterval(java.lang.String script,
                                    long interval)
Evaluates the given string repeatedly after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.


setInterval

public java.lang.Object setInterval(java.lang.Runnable r,
                                    long interval)
Calls the 'run' method of the given Runnable repeatedly after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.


clearInterval

public void clearInterval(java.lang.Object interval)
Cancels an interval that was set by a call to 'setInterval'.


setTimeout

public java.lang.Object setTimeout(java.lang.String script,
                                   long timeout)
Evaluates the given string after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.


setTimeout

public java.lang.Object setTimeout(java.lang.Runnable r,
                                   long timeout)
Calls the 'run' method of the given Runnable after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.


clearTimeout

public void clearTimeout(java.lang.Object timeout)
Cancels an timeout that was set by a call to 'setTimeout'.


parseXML

public org.w3c.dom.Node parseXML(java.lang.String text,
                                 org.w3c.dom.Document doc)
Parses the given XML string into a DocumentFragment of the given document or a new document if 'doc' is null.


getURL

public void getURL(java.lang.String uri,
                   Window.URLResponseHandler h)
Gets data from the given URI.


getURL

public void getURL(java.lang.String uri,
                   Window.URLResponseHandler h,
                   java.lang.String enc)
Gets data from the given URI.


postURL

public void postURL(java.lang.String uri,
                    java.lang.String content,
                    Window.URLResponseHandler h)
Posts data to the given URI.


postURL

public void postURL(java.lang.String uri,
                    java.lang.String content,
                    Window.URLResponseHandler h,
                    java.lang.String mimeType)
Posts data to the given URI.


postURL

public void postURL(java.lang.String uri,
                    java.lang.String content,
                    Window.URLResponseHandler h,
                    java.lang.String mimeType,
                    java.lang.String enc)
Posts data to the given URI.


alert

public void alert(java.lang.String message)
Displays an alert dialog box.


confirm

public boolean confirm(java.lang.String message)
Displays a confirm dialog box.


prompt

public java.lang.String prompt(java.lang.String message)
Displays an input dialog box.


prompt

public java.lang.String prompt(java.lang.String message,
                               java.lang.String defVal)
Displays an input dialog box, given the default value.


getBridgeContext

public org.apache.batik.bridge.BridgeContext getBridgeContext()
Returns the current BridgeContext. This object given a deep access to the viewer internals.


getInterpreter

public Interpreter getInterpreter()
Returns the associated interpreter.