| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.HtmlDocument
nextapp.echoservlet.FCDocument
public class FCDocument
| Field Summary | |
|---|---|
| static int | EVENT_INITIALIZEA script event type for "initialization" tasks. | 
| static int | EVENT_ONLOADA script event type for "onload" tasks. | 
| static int | EVENT_ONUNLOADA script event type for "onunload" tasks. | 
| Fields inherited from class nextapp.echoservlet.HtmlDocument | 
|---|
| cssIncludes, SERVICE_INIT_FRAME_SCRIPT | 
| Constructor Summary | |
|---|---|
| FCDocument(Connection conn,
           Element body,
           ComponentPeer peer)Creates a new instance rendered through the specified connection and containing bodyas its root content element. | |
| Method Summary | |
|---|---|
|  void | addScript(java.lang.String script)Adds a line of JavaScript that will be invoked as the document is rendered. | 
|  void | addScript(java.lang.String script,
          int eventType)Adds a line of JavaScript that will be invoked when an event occurs. | 
|  void | addScriptInclude(Service service)Adds a referenced JavaScript include. | 
|  java.lang.String | addStyle(ComponentStyle componentStyle)Adds a component style to the document. | 
|  int | countScriptIncludes(java.io.PrintWriter out) | 
|  java.util.Set | getAllComponentStyles() | 
|  Element | getBodyElement()Returns the "body" element of the document. | 
|  Connection | getConnection()Gets the | 
|  Element | getHeadElement()Returns the <head> element of the document. | 
|  ComponentPeer | getPeer() | 
|  boolean | isCursorOnNewLine()Returns the if the browser's "rendering cursor" is at the beginning of a new line. | 
|  void | renderCSSIncludes(java.io.PrintWriter out) | 
|  void | renderHtml(java.io.PrintWriter pw,
           javax.servlet.http.HttpSession session,
           ComponentPeer fastComponentPeer) | 
|  void | renderScriptIncludes(java.io.PrintWriter out) | 
|  void | renderScriptsInsideFastComponentSpan(java.io.PrintWriter out) | 
|  void | renderUpdateScript(java.io.PrintWriter out,
                   javax.servlet.http.HttpSession session,
                   ComponentPeer fastComponentPeer) | 
|  void | replaceClassAsStyle() | 
|  void | setConnection(Connection connection)Sets the | 
|  void | setCursorOnNewLine(boolean cursorOnNewLine)Sets whether the browser's rendering cursor is on a new line. | 
|  void | setPeer(ComponentPeer peer) | 
|  void | setScrollBarPositions(int x,
                      int y)Sets the intial scroll bar positions of the document. | 
| Methods inherited from class nextapp.echoservlet.HtmlDocument | 
|---|
| addCssInclude, create, createFrameSet, render, renderFastComponentUpdate | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int EVENT_INITIALIZE
eventName parameter of the
 addScript method. A script added with this event type will
 be executed once its document's frame's parents have executed their
 initialization scripts.
public static final int EVENT_ONLOAD
eventName parameter of the
 addScript method. A script added with this event type will
 be executed once its document's frame's child frames have executed their
 onload scripts.
public static final int EVENT_ONUNLOAD
evetName parameter of the
 addScript method. A script added with this event type will
 be executed when a document is removed from service, such as in the event
 that its content is changed or its window is closed or reloaded.
| Constructor Detail | 
|---|
public FCDocument(Connection conn,
                  Element body,
                  ComponentPeer peer)
body as its root content element.
conn - The connection for which this document is being put into
            service.body - The element that will be used as the root content element of
            this document (a <body> or <frame> element).| Method Detail | 
|---|
public void addScript(java.lang.String script)
addScript in class HtmlDocumentscript - A line of JavaScript code.
public void addScript(java.lang.String script,
                      int eventType)
addScript in class HtmlDocumentscript - A line of JavaScript code.eventType - The name of the event, one of the following values:
            EVENT_INITIALIZE execute the script when
            all frames have loaded.EVENT_ONLOAD execute the script when all
            child frames have loaded.EVENT_ONUNLOAD execute the script when the
            frame unloads.public void addScriptInclude(Service service)
addScriptInclude in class HtmlDocumentservice - The service that renders the JavaScript include.public java.lang.String addStyle(ComponentStyle componentStyle)
addStyle in class HtmlDocumentcomponentStyle - The component style to add to the document.
public Element getBodyElement()
getBodyElement in class HtmlDocumentpublic Element getHeadElement()
getHeadElement in class HtmlDocumentpublic boolean isCursorOnNewLine()
isCursorOnNewLine in class HtmlDocumentpublic void replaceClassAsStyle()
public void renderUpdateScript(java.io.PrintWriter out,
                               javax.servlet.http.HttpSession session,
                               ComponentPeer fastComponentPeer)
public void renderHtml(java.io.PrintWriter pw,
                       javax.servlet.http.HttpSession session,
                       ComponentPeer fastComponentPeer)
public void renderScriptsInsideFastComponentSpan(java.io.PrintWriter out)
public void renderScriptIncludes(java.io.PrintWriter out)
public int countScriptIncludes(java.io.PrintWriter out)
public void renderCSSIncludes(java.io.PrintWriter out)
public void setCursorOnNewLine(boolean cursorOnNewLine)
setCursorOnNewLine in class HtmlDocumentcursorOnNewLine - True if the browser's rendering cursor is on a new line.isCursorOnNewLine()
public void setScrollBarPositions(int x,
                                  int y)
setScrollBarPositions in class HtmlDocumentx - The initial horizontal scroll bar position (0 is the default).y - The initial vertical scroll bar position (0 is the default).public java.util.Set getAllComponentStyles()
public ComponentPeer getPeer()
public void setPeer(ComponentPeer peer)
public Connection getConnection()
Gets the
public void setConnection(Connection connection)
Sets the
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||