Codota Logo
HtmlElementWriter.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter
constructor

Best Java code snippets using org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter.<init> (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

protected HtmlElementWriter createInputField(FormField formField) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 inputField.attribute(TYPE_ATTRIBUTE, TEXT_INPUT_TYPE);
 return inputField;
}
origin: camunda/camunda-bpm-platform

protected HtmlElementWriter createInputField(FormField formField) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 inputField.attribute(TYPE_ATTRIBUTE, TEXT_INPUT_TYPE);
 return inputField;
}
origin: camunda/camunda-bpm-platform

protected HtmlElementWriter createInputField(FormField formField) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 inputField.attribute(TYPE_ATTRIBUTE, TEXT_INPUT_TYPE);
 return inputField;
}
origin: camunda/camunda-bpm-platform

protected HtmlElementWriter createInputField(FormField formField) {
 HtmlElementWriter inputField = new HtmlElementWriter(INPUT_ELEMENT, true);
 addCommonFormFieldAttributes(formField, inputField);
 inputField.attribute(TYPE_ATTRIBUTE, TEXT_INPUT_TYPE);
 return inputField;
}
origin: camunda/camunda-bpm-platform

public String execute() {
 HtmlDocumentBuilder builder = new HtmlDocumentBuilder(new HtmlElementWriter("html"));
 addHtmlHead(builder);
 addHtmlBody(builder);
 return builder
  .endElement()
  .getHtmlString();
}
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 (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 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 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);
 }
}
org.camunda.bpm.engine.impl.form.engineHtmlElementWriter<init>

Popular methods of HtmlElementWriter

  • attribute
  • textContent
  • escapeQuotes
  • writeAttributes
  • writeContent
  • writeEndLine
  • writeEndTag
  • writeEndTagElement
  • writeLeadingWhitespace
  • writeStartTag
  • writeStartTagClose
  • writeStartTagOpen
  • writeStartTagClose,
  • writeStartTagOpen,
  • writeTextContent

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • 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