类 HtmlDocument

java.lang.Object
com.gdxsoft.easyweb.script.html.HtmlDocument

public class HtmlDocument extends Object
  • 构造器详细资料

    • HtmlDocument

      public HtmlDocument()
  • 方法详细资料

    • getFrameHtml

      public String getFrameHtml()
      合成的frame 的html 没有外部例如 <div id='EWA_FRAME_MAIN ' or <table id='Test1' ...
      返回:
      html
    • showHeader

      public String showHeader()
    • showBody

      public String showBody()
    • showParts

      public String[] showParts()
      获取页面含包含部分内容
      [0]对应<!--INC_TOP-->前面的部分
      [1]对应<!--INC_TOP-->到<!--INC_END-->中间的部分
      [0]对应<!--INC_END-->后面的部分
      返回:
      the parts
    • showAll

      public String showAll()
    • showJs

      public String showJs(boolean isShowScriptTag)
      根据isShowScriptTag 显示脚本
      isShowScriptTag=true,显示 script 标签
      参数:
      isShowScriptTag - 是否显示script 标签
      返回:
      js
    • addFrameHtml

      public void addFrameHtml(String html)
      合成的frame 的html 没有外部例如 <div id='EWA_FRAME_MAIN ' or <table id='Test1' ...
      参数:
      html - html
    • addJs

      public void addJs(String id, String script, boolean isTop)
    • addBodyHtml

      public void addBodyHtml(String html, boolean isTop)
    • addScriptHtml

      public void addScriptHtml(String html)
    • addScriptHtml

      public void addScriptHtml(String html, String memo)
    • addHeader

      public void addHeader(String header)
      增加Header
      参数:
      header - the header
    • addCss

      public void addCss(String css)
      增加css
      参数:
      css - the css
    • setIsXhtml

      public void setIsXhtml(boolean isXhtml)
    • isXhtml

      public boolean isXhtml()
    • getTitle

      public String getTitle()
      返回:
      the Title
    • setTitle

      public void setTitle(String title)
      参数:
      title - the Title to set
    • getDoctype

      public HtmlDoctype getDoctype()
      返回:
      the Doctype
    • getHead

      public com.gdxsoft.easyweb.utils.msnet.MStr getHead()
      返回:
      the Head
    • getJsTop

      public HtmlScripts getJsTop()
      返回:
      the JsTop
    • getJsBottom

      public HtmlScripts getJsBottom()
      返回:
      the JsBottom
    • getCss

      public com.gdxsoft.easyweb.utils.msnet.MStr getCss()
      返回:
      the Css
    • getBodyTop

      public com.gdxsoft.easyweb.utils.msnet.MStr getBodyTop()
      返回:
      the BodyTop
    • getBodyBottom

      public com.gdxsoft.easyweb.utils.msnet.MStr getBodyBottom()
      返回:
      the BodyBottom
    • getScriptHtml

      public com.gdxsoft.easyweb.utils.msnet.MStr getScriptHtml()
      返回:
      the ScriptHtml
    • getHtmlClass

      public HtmlClass getHtmlClass()
      返回:
      the htmlClass
    • setHtmlClass

      public void setHtmlClass(HtmlClass htmlClass)
      参数:
      htmlClass - the _htmlClass to set
    • getItems

      public HashMap<String,String> getItems()
      返回:
      items