Codota Logo
HtmlElementWriter.attribute
Code IndexAdd Codota to your IDE (free)

How to use
attribute
method
in
org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter

Best Java code snippets using org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter.attribute (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

public HtmlElementWriter toHtmlElementWriter() {
 HtmlElementWriter elementWriter;
 if (header) {
  elementWriter = new HtmlElementWriter("th");
 }
 else {
  elementWriter = new HtmlElementWriter("td");
 }
 if (colspan > 1) {
  elementWriter
   .attribute("colspan", String.valueOf(colspan))
   .attribute("class", "text-center");
 }
 elementWriter.textContent(text);
 return elementWriter;
}
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

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

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

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 renderInvalidTypeMessage(FormField formField, HtmlDocumentBuilder documentBuilder) {
 HtmlElementWriter divElement = new HtmlElementWriter(DIV_ELEMENT);
 String formFieldId = formField.getId();
 String expression = String.format(TYPE_ERROR_EXPRESSION, formFieldId);
 String typeName = formField.getTypeName();
 if (isEnum(formField)) {
  typeName = StringFormType.TYPE_NAME;
 }
 divElement
   .attribute(NG_SHOW_ATTRIBUTE, expression)
   .attribute(CLASS_ATTRIBUTE, HELP_BLOCK_CLASS)
   .textContent(String.format(TYPE_FIELD_MESSAGE, typeName));
 documentBuilder
   .startElement(divElement)
   .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 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();
}
org.camunda.bpm.engine.impl.form.engineHtmlElementWriterattribute

Popular methods of HtmlElementWriter

  • <init>
  • 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