public class HTMLPage extends HTMLPanel
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | bottomMarginbottom margin for the html page | 
| protected java.lang.String | leftmarginleft margin for html page | 
| protected java.lang.String | linkExternalScriptsLink External Script | 
| protected java.lang.String | marginheightmargin height for html page | 
| protected java.lang.String | marginwidthmargin width | 
| protected java.lang.String | rightmarginRight margin for html page | 
| static java.lang.String | SCROLLBAR_AUTOThis value is browser and media dependent, but should allow for a horizontal scrollbar if possible in case of overflow. | 
| static java.lang.String | SCROLLBAR_HIDDENContent is clipped and content outside of the element's box is not visible. | 
| static java.lang.String | SCROLLBAR_SCROLLContent is clipped as necessary, but a horizontal scrollbar is made available where necessary to view the additional, non-visible content. | 
| static java.lang.String | SCROLLBAR_VISIBLEContent is not clipped and may be rendered outside of the element's box. | 
| protected java.lang.String | topmargintop margin for html page | 
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description | 
|---|
| HTMLPage()Constructor | 
| HTMLPage(int version) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addComponent(HTMLComponent component,
            int index)Adds a component to this container at a particular position | 
| void | addGWT(java.lang.String module)add a GWT module. | 
| void | addHeadComponent(HTMLComponent comp) | 
| void | addHeadTag(java.lang.String headerTag) | 
| void | addJavaScript(JavaScript script) | 
| void | addJavaScript(java.lang.String scriptListing) | 
| void | addJavaScriptLink(java.lang.String url,
                 ScriptLink.LoadType loadType) | 
| void | addJavaScriptLink(java.lang.String url,
                 ScriptLink.LoadType loadType,
                 java.lang.String cdnFallBackScript) | 
| void | addJavaScriptVariable(java.lang.String scriptVariable)HTMLArea needs a variable to be set up before loading the java scripts | 
| void | addLink(java.lang.String tag,
       int index) | 
| void | addLink(java.lang.String rel,
       java.lang.String href) | 
| void | addMeta(java.lang.String name,
       java.lang.String content) | 
| HTMLPage | addModule(java.lang.String module)add a module. | 
| void | addPreRefreshCall(java.lang.String heads) | 
| void | addStateEvent(HTMLStateEvent sEvent) | 
| void | addStyleSheet(java.lang.String url)append a style sheet | 
| void | addStyleSheet(java.lang.String url,
             java.lang.String media)append a style sheet | 
| void | addStyleSheet(java.lang.String url,
             java.lang.String media,
             int index)prepend a style sheet | 
| HTMLPage | addToDictionary(java.lang.String dictionaryCode,
               java.lang.String code,
               java.lang.String value)add to the page's dictionary. | 
| void | addToList(java.lang.String code,
         java.lang.String value) | 
| protected void | compile(ClientBrowser browser)This is the spot to put all your generation
 of the HTML components. | 
| java.lang.String | doGenerateId()Generates a new unique identifier for new components that do not have
  any other way of generating one for themselves. | 
| int | getDictionarySize(java.lang.String dictionaryCode) | 
| java.lang.String | getFavIconPath() | 
| java.lang.String | getFlag(java.lang.String name)gets General purpose flags for your own component's use | 
| java.lang.String | getHost() | 
| java.lang.String | getId()get the ID of this component | 
| java.lang.String | getPageClass() | 
| boolean | getPleaseWaitHook() | 
| int | getRefreshTime() | 
| static long | getStartTime() | 
| Status | getStatus() | 
| StyleSheetInterface | getStyle(int index) | 
| java.lang.String | getTitle()The page title. | 
| int | getVersion() | 
| java.lang.Object | getWorkingStorage(java.lang.String key)get the temporary working storage value | 
| java.lang.String | getXUACompatible() | 
| protected void | iGenerate(ClientBrowser browser,
         java.lang.StringBuilder buffer)generate the raw HTML for this component. | 
| protected void | iGenerateJSLibrary(ClientBrowser browser,
                  java.lang.StringBuilder buffer) | 
| void | iGenerateSuper(ClientBrowser browser,
              java.lang.StringBuilder buffer)generate the raw WML for this component. | 
| boolean | isPageCompiled() | 
| boolean | listContains(java.lang.String code,
            java.lang.String value) | 
| java.lang.String[] | listCSS()the CSS links | 
| java.lang.String[] | listScripts() | 
| protected HTMLPage | monitorPage() | 
| void | putFlag(java.lang.String name,
       java.lang.String value)puts General purpose flags for your own component's use | 
| void | registerStyleSheet(StyleSheetInterface s) | 
| void | setBackGroundColor(java.awt.Color color) | 
| void | setBackgroundImage(java.lang.String imageSrc) | 
| void | setBackgroundImage(java.lang.String imageSrc,
                  boolean fixedPosition) | 
| void | setBackgroundImageFullPage(java.lang.String imageSrc) | 
| void | setBottomMargin(java.lang.String margin) | 
| HTMLPage | setDescription(java.lang.String description)set the description | 
| HTMLPage | setFavIconPath(java.lang.String path)set the favorite icon path | 
| HTMLPage | setGooglePlusID(java.lang.String googleplusid)set the Google plus ID | 
| protected void | setHasFrameSet(boolean flag) | 
| void | setHorizontalScrollBar(java.lang.String scroll) | 
| void | setHost(java.lang.String host)add this host to the css links if it's not blank
 this host must include protocol, or starts with '//' | 
| void | setId(java.lang.String id)set the ID of this component. | 
| HTMLPage | setKeywords(java.lang.String keywords)set the keywords | 
| void | setLeftMargin(java.lang.String id) | 
| void | setLinkExternalScripts(boolean flag) | 
| void | setMarginHeight(java.lang.String id) | 
| void | setMarginWidth(java.lang.String id) | 
| HTMLPage | setOgDescription(java.lang.String ogDescription)Set the Open Graph protocol description
 http://ogp.me/ | 
| void | setOgImage(java.lang.String ogImage) | 
| void | setOgSiteName(java.lang.String ogSiteName) | 
| HTMLPage | setOgTitle(java.lang.String ogTitle)Set the og Title | 
| HTMLPage | setOgType(java.lang.String ogType)Set the Open Graph protocol type
 http://ogp.me/ | 
| void | setOgURL(java.lang.String ogURL) | 
| void | setPageClass(java.lang.String pageClass) | 
| void | setPleaseWaitHook(boolean addPleaseWait) | 
| void | setRefreshTime(int secs) | 
| void | setRightMargin(java.lang.String id) | 
| void | setShowNavigateAwayWarning(boolean flag) | 
| HTMLPage | setStatus(Status status) | 
| protected void | setTheme()theme for page | 
| void | setTheme(HTMLMutableTheme theme) | 
| HTMLPage | setTitle(java.lang.String title)set the title | 
| void | setToolTip(java.lang.String toolTip) | 
| void | setTopMargin(java.lang.String id) | 
| void | setVerticalScrollBar(java.lang.String scroll) | 
| void | setWorkingStorage(java.lang.String key,
                 java.lang.Object value)set the temporary working storage variable | 
| void | setXUACompatible(java.lang.String XUACompatible) | 
| boolean | showNavigateAwayWarning() | 
generate, generate, generateHTMLFile, generateText, registerPostCompileCallBack, setParent, writeToFileaddComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponentaddJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setStyleProperty, setTabIndex, touchpublic static final java.lang.String SCROLLBAR_HIDDEN
public static final java.lang.String SCROLLBAR_VISIBLE
public static final java.lang.String SCROLLBAR_SCROLL
public static final java.lang.String SCROLLBAR_AUTO
protected java.lang.String topmargin
protected java.lang.String bottomMargin
protected java.lang.String leftmargin
protected java.lang.String linkExternalScripts
protected java.lang.String rightmargin
protected java.lang.String marginheight
protected java.lang.String marginwidth
public HTMLPage()
public HTMLPage(int version)
version - 1 for old page modepublic void setPageClass(java.lang.String pageClass)
public java.lang.String getPageClass()
@CheckReturnValue @Nonnull public Status getStatus()
protected HTMLPage monitorPage()
monitorPage in class HTMLComponentpublic int getVersion()
public HTMLPage addModule(java.lang.String module)
module - the module to add.public void addComponent(HTMLComponent component, int index) throws java.lang.ArrayIndexOutOfBoundsException
HTMLContaineraddComponent in class HTMLContainerjava.lang.ArrayIndexOutOfBoundsExceptionpublic void addJavaScriptLink(@Nullable
                              java.lang.String url,
                              @Nonnull
                              ScriptLink.LoadType loadType)
url - the script URLloadType - the type of loading.public void addJavaScriptLink(@Nullable
                              java.lang.String url,
                              @Nonnull
                              ScriptLink.LoadType loadType,
                              @Nullable
                              java.lang.String cdnFallBackScript)
url - the script URLloadType - the type of loading.cdnFallBackScript - CDN fall back script.public void setLinkExternalScripts(boolean flag)
flag - @CheckReturnValue @Nullable public java.lang.String getId()
getId in class HTMLComponentpublic void setId(java.lang.String id)
id - The id of the componentpublic void setShowNavigateAwayWarning(boolean flag)
flag - public boolean showNavigateAwayWarning()
public void setTopMargin(java.lang.String id)
id - public void setBottomMargin(java.lang.String margin)
margin - public void setLeftMargin(java.lang.String id)
id - public void setRightMargin(java.lang.String id)
id - public void setMarginHeight(java.lang.String id)
id - public void setMarginWidth(java.lang.String id)
id - public StyleSheetInterface getStyle(int index)
index - public void registerStyleSheet(StyleSheetInterface s)
s - the style sheetpublic void addHeadComponent(HTMLComponent comp)
comp - public void addStyleSheet(java.lang.String url)
url - append a style sheetpublic void addStyleSheet(java.lang.String url,
                          java.lang.String media)
url - append a style sheetmedia - the mediapublic void addLink(@Nonnull
                    java.lang.String rel,
                    @Nonnull
                    java.lang.String href)
public void addLink(java.lang.String tag,
                    int index)
tag - the attributes in this tag must be html encoded, such as <script src="/abc.js?a=b&c=d"/>index - public void addStyleSheet(@Nonnull
                          java.lang.String url,
                          @Nullable
                          java.lang.String media,
                          int index)
url - append a stylemedia - the media for this style sheetindex - the indexpublic void addJavaScript(@Nonnull
                          JavaScript script)
script - public java.lang.String[] listScripts()
public java.lang.String[] listCSS()
public void addJavaScriptVariable(java.lang.String scriptVariable)
scriptVariable - public void setToolTip(java.lang.String toolTip)
toolTip - public void addStateEvent(HTMLStateEvent sEvent)
sEvent - public void addJavaScript(@Nonnull
                          java.lang.String scriptListing)
scriptListing - public void addGWT(java.lang.String module)
module - the module to add.public void addMeta(@Nonnull
                    java.lang.String name,
                    @Nonnull
                    java.lang.String content)
public void addHeadTag(@Nonnull
                       java.lang.String headerTag)
headerTag - public void addPreRefreshCall(java.lang.String heads)
heads - protected void compile(@Nonnull
                       ClientBrowser browser)
HTMLComponentcompile in class HTMLComponentbrowser - public java.lang.String getXUACompatible()
public void setXUACompatible(java.lang.String XUACompatible)
@Nonnull @CheckReturnValue public java.lang.String getTitle()
@Nonnull public HTMLPage setTitle(@Nullable java.lang.String title)
title - the title@Nonnull public HTMLPage setDescription(@Nullable java.lang.String description)
description - the descriptionpublic HTMLPage setKeywords(@Nullable java.lang.String keywords)
keywords - the keywordspublic void setBackGroundColor(java.awt.Color color)
color - public void setRefreshTime(int secs)
secs - public int getRefreshTime()
public void setBackgroundImage(java.lang.String imageSrc)
imageSrc - public void setBackgroundImageFullPage(java.lang.String imageSrc)
imageSrc - public void setBackgroundImage(java.lang.String imageSrc,
                               boolean fixedPosition)
imageSrc - fixedPosition - @CheckReturnValue @Nullable public java.lang.String getHost()
public void setHost(@Nonnull
                    java.lang.String host)
host - public void iGenerateSuper(ClientBrowser browser, java.lang.StringBuilder buffer)
browser - The target browserbuffer - The generate WMLprotected void iGenerate(@Nonnull
                         ClientBrowser browser,
                         @Nonnull
                         java.lang.StringBuilder buffer)
iGenerate in class HTMLComponentbrowser - The target browserbuffer - The generate HTMLpublic void putFlag(java.lang.String name,
                    java.lang.String value)
name - value - the valuepublic void setTheme(HTMLMutableTheme theme)
theme - @CheckReturnValue
 @Nonnull
public java.lang.String getFlag(@Nonnull
                                                            java.lang.String name)
name - public java.lang.String doGenerateId()
public static long getStartTime()
protected void iGenerateJSLibrary(ClientBrowser browser, java.lang.StringBuilder buffer)
browser - buffer - protected void setHasFrameSet(boolean flag)
flag - protected final void setTheme()
public void setPleaseWaitHook(boolean addPleaseWait)
addPleaseWait - public boolean getPleaseWaitHook()
public void setHorizontalScrollBar(java.lang.String scroll)
scroll - public void setWorkingStorage(java.lang.String key,
                              java.lang.Object value)
key - the key valuevalue - the valuepublic java.lang.Object getWorkingStorage(java.lang.String key)
key - the keypublic boolean isPageCompiled()
public void setVerticalScrollBar(java.lang.String scroll)
scroll - public boolean listContains(java.lang.String code,
                            java.lang.String value)
code - value - the valuepublic void addToList(java.lang.String code,
                      java.lang.String value)
code - value - the value@Nonnull public HTMLPage addToDictionary(@Nonnull java.lang.String dictionaryCode, @Nonnull java.lang.String code, @Nullable java.lang.String value)
dictionaryCode - code - value - the value to add, if null/blank the code will be removed@Nonnegative
public int getDictionarySize(@Nonnull
                                          java.lang.String dictionaryCode)
public void setOgURL(java.lang.String ogURL)
public void setOgSiteName(java.lang.String ogSiteName)
public void setOgImage(java.lang.String ogImage)
@Nonnull public HTMLPage setOgTitle(@Nullable java.lang.String ogTitle)
ogTitle - @Nonnull public HTMLPage setOgType(@Nullable java.lang.String ogType)
ogType - @Nonnull public HTMLPage setOgDescription(@Nullable java.lang.String ogDescription)
ogDescription - @Nonnull public HTMLPage setGooglePlusID(java.lang.String googleplusid)
googleplusid - @Nullable @CheckReturnValue public java.lang.String getFavIconPath()
@Nonnull public HTMLPage setFavIconPath(@Nullable java.lang.String path)
path - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.