Пример #1
0
 /**
  * Prepare Page. - Set Header
  *
  * @param loginInfo
  * @return WReportEngine page
  */
 private MobileDoc preparePage(String loginInfo) {
   MobileDoc doc = MobileDoc.create("Workflow");
   head header = doc.getHead();
   body b = doc.getBody();
   //  add window.js & .css
   header.addElement(new script("", MobileEnv.getBaseDirectory("/js/window.js")));
   header.addElement(
       new link().setRel("stylesheet").setHref(MobileEnv.getBaseDirectory("/css/window.css")));
   //
   //
   String title = "Workflow" + " - " + loginInfo;
   b.addElement(new script("top.document.title='" + title + "';"));
   return doc;
 } //  preparePage
Пример #2
0
  {
    html = new html();

    head = new head();

    title = new title();

    frameset = new frameset();

    noframes = new noframes();

    body = new body();

    head.addElement(title);

    html.addElement(head);

    html.addElement(frameset);

    html.addElement(noframes);

    noframes.addElement(body);
  }
Пример #3
0
  /**
   * Append to the head element for this XhtmlFrameSetDocument container.
   *
   * @param value adds to the value between the head tags
   */
  public XhtmlFrameSetDocument appendHead(String value) {

    head.addElement(value);

    return (this);
  }