Examples of startTag()


Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()

            // The Anchors
            if (disabled==false)
            {
                String url = getUrl();

                HtmlTag a = htmlWriter.startTag("a");
                a.addAttribute("id",       this.getId());
                a.addAttribute("href",     url);
        a.addAttribute("target",   this.target);
                a.addAttribute("class",    this.cssClass);
                a.addAttribute("style",    this.cssStyle);
View Full Code Here

Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()

                if (disabledTag == null)
                    disabledTag = dic.AnchorDisabledTag();
                if (cssClass ==null)
                    cssClass = dic.AnchorDisabledClass();
                // The value
                HtmlTag s = htmlWriter.startTag(disabledTag);
                s.addAttribute("class",    this.cssClass);
                s.addAttribute("style",    this.cssStyle);
                s.beginBody(text);
                s.endTag(body);
            }
View Full Code Here

Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()

        HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
        flexDivRenderInfo = dic.FlexDivTag(type, userAgent);
        if (flexDivRenderInfo!=null)
        {   // Render Flex Div
            HtmlWriter w = new HtmlWriter(pageContext.getOut());
            HtmlTag tag = w.startTag(flexDivRenderInfo.tag);
            tag.addAttribute("id", getId());
            tag.addAttribute("class", cssClass);
            tag.addAttributes(flexDivRenderInfo.attributes);
            tag.beginBody(flexDivRenderInfo.bodyBegin);
        }
View Full Code Here

Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()

        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        // Wrap button like an input control
        if (getBoolean(embed, false))
        {
            // the wrapper (only if renderLabel && renderControl are both true)
            HtmlTag wrapper = w.startTag( dic.InputWrapperTag());
            wrapper.addAttribute("class", dic.InputWrapperClass());
            wrapper.beginBody(true);
           
            HtmlTag wrapCtrl = w.startTag( dic.SubmitControlTag());
            wrapCtrl.addAttribute("class", dic.SubmitControlClass());
View Full Code Here

Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()

            // the wrapper (only if renderLabel && renderControl are both true)
            HtmlTag wrapper = w.startTag( dic.InputWrapperTag());
            wrapper.addAttribute("class", dic.InputWrapperClass());
            wrapper.beginBody(true);
           
            HtmlTag wrapCtrl = w.startTag( dic.SubmitControlTag());
            wrapCtrl.addAttribute("class", dic.SubmitControlClass());
            wrapCtrl.addAttributes(dic.SubmitControlAttributes());
            wrapCtrl.beginBody();
        }
        // Button
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.startTag()

           
                // start by generating start tag for container
                MarshallingContext ctx = (MarshallingContext)ictx;
                Object[] array = (Object[])obj;
                if (m_name != null) {
                    ctx.startTag(m_index, m_name);
                }
       
                // loop through all entries in array
                for (int i = 0; i < array.length; i++) {
                    Object item = array[i];
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.startTag()

     */
    public void marshal(Object obj, IMarshallingContext ictx)
        throws JiBXException {
        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(0, "name");
        ctx.element(0, "first-name", name.firstName);
        ctx.element(0, "last-name", name.lastName);
        ctx.endTag(0, "name");
    }
}
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.startTag()

     */
    public void marshal(Object obj, IMarshallingContext ictx)
        throws JiBXException {
        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(m_index, m_name);
        ctx.element(m_index, "first-name", name.firstName);
        ctx.element(m_index, "last-name", name.lastName);
        ctx.endTag(m_index, m_name);
    }
   
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.startTag()

           
            // start by generating start tag for container
            MarshallingContext ctx = (MarshallingContext)ictx;
            Object[] array = (Object[])obj;
            if (m_name != null) {
                ctx.startTag(m_index, m_name);
            }
       
            // loop through all entries in array
            for (int i = 0; i < array.length; i++) {
                Object item = array[i];
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.startTag()

      throw new JiBXException("Invalid object type for marshaller");
    } else {
      OverlapBehaviorInfo overlapBehaviorInfo = (OverlapBehaviorInfo) obj;
      // start by generating start tag for container
      MarshallingContext ctx = (MarshallingContext) ictx;
      ctx.startTag(index, name).content(overlapBehaviorInfo.getOverlapBehavior().xmlValue())
          .closeStartContent();
      ctx.endTag(index, name);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.