Codota Logo
HtmlDocumentBuilder.endElement
Code IndexAdd Codota to your IDE (free)

How to use
endElement
method
in
org.camunda.bpm.engine.impl.form.engine.HtmlDocumentBuilder

Best Java code snippets using org.camunda.bpm.engine.impl.form.engine.HtmlDocumentBuilder.endElement (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

protected void renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder) {
 EnumFormType enumFormType = (EnumFormType) formField.getType();
 Map<String, String> values = enumFormType.getValues();
 for (Map.Entry<String, String> value : values.entrySet()) {
  // <option>
  HtmlElementWriter option = new HtmlElementWriter(OPTION_ELEMENT, false)
    .attribute(VALUE_ATTRIBUTE, value.getKey())
    .textContent(value.getValue());
  documentBuilder.startElement(option).endElement();
 }
}
origin: camunda/camunda-bpm-platform

protected void addHtmlBody(HtmlDocumentBuilder builder) {
 builder.startElement(new HtmlElementWriter("body"));
 builder.startElement(new HtmlElementWriter("div").attribute("class", "container"));
 builder.startElement(new HtmlElementWriter("div").attribute("class", "row"));
 builder.startElement(new HtmlElementWriter("div").attribute("class", "coll-md-12"));
 builder.startElement(new HtmlElementWriter("h1").textContent(reportName)).endElement();
 addHtmlSections(builder, sections, 3);
 builder.endElement();
 builder.endElement();
 builder.endElement();
 builder.endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder) {
 EnumFormType enumFormType = (EnumFormType) formField.getType();
 Map<String, String> values = enumFormType.getValues();
 for (Entry<String, String> value : values.entrySet()) {
  // <option>
  HtmlElementWriter option = new HtmlElementWriter(OPTION_ELEMENT, false)
    .attribute(VALUE_ATTRIBUTE, value.getKey())
    .textContent(value.getValue());
  documentBuilder.startElement(option).endElement();
 }
}
origin: camunda/camunda-bpm-platform

protected void renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder) {
 EnumFormType enumFormType = (EnumFormType) formField.getType();
 Map<String, String> values = enumFormType.getValues();
 for (Entry<String, String> value : values.entrySet()) {
  // <option>
  HtmlElementWriter option = new HtmlElementWriter(OPTION_ELEMENT, false)
    .attribute(VALUE_ATTRIBUTE, value.getKey())
    .textContent(value.getValue());
  documentBuilder.startElement(option).endElement();
 }
}
origin: camunda/camunda-bpm-platform

protected void renderSelectOptions(FormField formField, HtmlDocumentBuilder documentBuilder) {
 EnumFormType enumFormType = (EnumFormType) formField.getType();
 Map<String, String> values = enumFormType.getValues();
 for (Map.Entry<String, String> value : values.entrySet()) {
  // <option>
  HtmlElementWriter option = new HtmlElementWriter(OPTION_ELEMENT, false)
    .attribute(VALUE_ATTRIBUTE, value.getKey())
    .textContent(value.getValue());
  documentBuilder.startElement(option).endElement();
 }
}
origin: camunda/camunda-bpm-platform

protected void addHtmlHead(HtmlDocumentBuilder builder) {
 builder
  .startElement(new HtmlElementWriter("head"))
   .startElement(new HtmlElementWriter("title").textContent(reportName)).endElement()
   .startElement(new HtmlElementWriter("link")
    .attribute("rel", "stylesheet")
    .attribute("href", "http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"))
   .endElement()
   .startElement(new HtmlElementWriter("link")
    .attribute("rel", "stylesheet")
    .attribute("href", "http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"))
   .endElement()
  .endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter selectBox = new HtmlElementWriter(SELECT_ELEMENT, false);
 addCommonFormFieldAttributes(formField, selectBox);
 // <select ...>
 documentBuilder.startElement(selectBox);
 // <option ...>
 renderSelectOptions(formField, documentBuilder);
 // </select>
 documentBuilder.endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter selectBox = new HtmlElementWriter(SELECT_ELEMENT, false);
 addCommonFormFieldAttributes(formField, selectBox);
 // <select ...>
 documentBuilder.startElement(selectBox);
 // <option ...>
 renderSelectOptions(formField, documentBuilder);
 // </select>
 documentBuilder.endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter selectBox = new HtmlElementWriter(SELECT_ELEMENT, false);
 addCommonFormFieldAttributes(formField, selectBox);
 // <select ...>
 documentBuilder.startElement(selectBox);
 // <option ...>
 renderSelectOptions(formField, documentBuilder);
 // </select>
 documentBuilder.endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderSelectBox(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter selectBox = new HtmlElementWriter(SELECT_ELEMENT, false);
 addCommonFormFieldAttributes(formField, selectBox);
 // <select ...>
 documentBuilder.startElement(selectBox);
 // <option ...>
 renderSelectOptions(formField, documentBuilder);
 // </select>
 documentBuilder.endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter divElement = new HtmlElementWriter(DIV_ELEMENT);
 String formFieldId = formField.getId();
 String expression = String.format(REQUIRED_ERROR_EXPRESSION, formFieldId);
 divElement
   .attribute(NG_SHOW_ATTRIBUTE, expression)
   .attribute(CLASS_ATTRIBUTE, HELP_BLOCK_CLASS)
   .textContent(REQUIRED_FIELD_MESSAGE);
 documentBuilder
   .startElement(divElement)
   .endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter divElement = new HtmlElementWriter(DIV_ELEMENT);
 String formFieldId = formField.getId();
 String expression = String.format(REQUIRED_ERROR_EXPRESSION, formFieldId);
 divElement
   .attribute(NG_SHOW_ATTRIBUTE, expression)
   .attribute(CLASS_ATTRIBUTE, HELP_BLOCK_CLASS)
   .textContent(REQUIRED_FIELD_MESSAGE);
 documentBuilder
   .startElement(divElement)
   .endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter divElement = new HtmlElementWriter(DIV_ELEMENT);
 String formFieldId = formField.getId();
 String expression = String.format(REQUIRED_ERROR_EXPRESSION, formFieldId);
 divElement
   .attribute(NG_SHOW_ATTRIBUTE, expression)
   .attribute(CLASS_ATTRIBUTE, HELP_BLOCK_CLASS)
   .textContent(REQUIRED_FIELD_MESSAGE);
 documentBuilder
   .startElement(divElement)
   .endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInvalidValueMessage(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter divElement = new HtmlElementWriter(DIV_ELEMENT);
 String formFieldId = formField.getId();
 String expression = String.format(REQUIRED_ERROR_EXPRESSION, formFieldId);
 divElement
   .attribute(NG_SHOW_ATTRIBUTE, expression)
   .attribute(CLASS_ATTRIBUTE, HELP_BLOCK_CLASS)
   .textContent(REQUIRED_FIELD_MESSAGE);
 documentBuilder
   .startElement(divElement)
   .endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 String inputType = !isBoolean(formField) ? TEXT_INPUT_TYPE : CHECKBOX_INPUT_TYPE;
 inputField.attribute(TYPE_ATTRIBUTE, inputType);
 // add default value
 Object defaultValue = formField.getDefaultValue();
 if(defaultValue != null) {
  inputField.attribute(VALUE_ATTRIBUTE, defaultValue.toString());
 }
 // <input ... />
 documentBuilder.startElement(inputField).endElement();
}
origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
protected void addHtmlSection(HtmlDocumentBuilder builder, String title, Object section, int level) {
 // add heading
 builder.startElement(new HtmlElementWriter("h" + level).textContent(title)).endElement();
 if (section instanceof Map) {
  Map<String, Object> sections = (Map<String, Object>) section;
  addHtmlSections(builder, sections, level + 1);
 }
 else {
  TabularResultSet resultSet = (TabularResultSet) section;
  addHtmlTable(builder, resultSet);
 }
}
origin: camunda/camunda-bpm-platform

protected void renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 String inputType = !isBoolean(formField) ? TEXT_INPUT_TYPE : CHECKBOX_INPUT_TYPE;
 inputField.attribute(TYPE_ATTRIBUTE, inputType);
 // add default value
 Object defaultValue = formField.getDefaultValue();
 if(defaultValue != null) {
  inputField.attribute(VALUE_ATTRIBUTE, defaultValue.toString());
 }
 // <input ... />
 documentBuilder.startElement(inputField).endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 String inputType = !isBoolean(formField) ? TEXT_INPUT_TYPE : CHECKBOX_INPUT_TYPE;
 inputField.attribute(TYPE_ATTRIBUTE, inputType);
 // add default value
 Object defaultValue = formField.getDefaultValue();
 if(defaultValue != null) {
  inputField.attribute(VALUE_ATTRIBUTE, defaultValue.toString());
 }
 // <input ... />
 documentBuilder.startElement(inputField).endElement();
}
origin: camunda/camunda-bpm-platform

protected void renderInputField(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 String inputType = !isBoolean(formField) ? TEXT_INPUT_TYPE : CHECKBOX_INPUT_TYPE;
 inputField.attribute(TYPE_ATTRIBUTE, inputType);
 // add default value
 Object defaultValue = formField.getDefaultValue();
 if(defaultValue != null) {
  inputField.attribute(VALUE_ATTRIBUTE, defaultValue.toString());
 }
 // <input ... />
 documentBuilder.startElement(inputField).endElement();
}
origin: camunda/camunda-bpm-platform

public String execute() {
 HtmlDocumentBuilder builder = new HtmlDocumentBuilder(new HtmlElementWriter("html"));
 addHtmlHead(builder);
 addHtmlBody(builder);
 return builder
  .endElement()
  .getHtmlString();
}
org.camunda.bpm.engine.impl.form.engineHtmlDocumentBuilderendElement

Popular methods of HtmlDocumentBuilder

  • <init>
  • getHtmlString
  • startElement
  • setEmitAsDocument

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now