Tabnine Logo
Option.setValue
Code IndexAdd Tabnine to your IDE (free)

How to use
setValue
method
in
org.jboss.errai.common.client.dom.Option

Best Java code snippets using org.jboss.errai.common.client.dom.Option.setValue (Showing top 14 results out of 315)

origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}
origin: org.kie.workbench/kie-wb-common-ala-ui-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

  private static Option newOption(final String text,
                  final String value) {
    final Option option = (Option) Window.getDocument().createElement("option");
    option.setTextContent(text);
    option.setValue(value);
    return option;
  }
}
origin: org.guvnor/guvnor-ala-ui-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}
origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}
origin: org.kie.workbench.forms/kie-wb-common-forms-editor-client

@Override
public void addModelField(String property,
             boolean selected) {
  Option option = (Option) document.createElement("option");
  option.setText(property);
  option.setValue(property);
  option.setSelected(selected);
  bindings.add(option);
}
origin: org.optaplanner/optaplanner-wb-solver-editor-client

private Option createOption(final Pair<String, String> optionPair) {
  Option option = (Option) document.createElement("option");
  option.setText(optionPair.getK1());
  option.setValue(optionPair.getK2());
  return option;
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

public void addOption(final String text,
           final String subText,
           final String value,
           final Boolean selected) {
  final Option option = (Option) document.createElement("option");
  option.setText(text);
  option.setValue(value);
  option.setSelected(selected);
  if (isNullOrEmpty(subText) == false) {
    option.setAttribute("data-subtext",
              subText);
  }
  select.add(option);
}
origin: org.optaplanner/optaplanner-wb-solver-editor-client

private Option createOption(final Pair<String, String> optionPair) {
  Option option = (Option) document.createElement("option");
  option.setText(optionPair.getK1());
  option.setValue(optionPair.getK2());
  return option;
}
origin: org.jbpm/jbpm-console-ng-case-mgmt-client

public void addOption(final String text, final String value, final Boolean selected) {
  final Option option = (Option) document.createElement("option");
  option.setText(text);
  option.setValue(value);
  option.setSelected(selected);
  select.add(option);
}
origin: kiegroup/appformer

public void addOption(final String text,
           final String subText,
           final String value,
           final Boolean selected) {
  final Option option = (Option) document.createElement("option");
  option.setText(text);
  option.setValue(value);
  option.setSelected(selected);
  if (isNullOrEmpty(subText) == false) {
    option.setAttribute("data-subtext",
              subText);
  }
  select.add(option);
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

@Test
public void testAddOption() {
  final Option option = mock(Option.class);
  when(document.createElement("option")).thenReturn(option);
  select.addOption("text",
           "subText",
           "value",
           true);
  verify(option).setText("text");
  verify(option).setValue("value");
  verify(option).setSelected(true);
  option.setAttribute("data-subtext",
            "subText");
  verify(selectMock).add(option);
}
origin: kiegroup/appformer

@Test
public void testAddOption() {
  final Option option = mock(Option.class);
  when(document.createElement("option")).thenReturn(option);
  select.addOption("text",
           "subText",
           "value",
           true);
  verify(option).setText("text");
  verify(option).setValue("value");
  verify(option).setSelected(true);
  option.setAttribute("data-subtext",
            "subText");
  verify(selectMock).add(option);
}
org.jboss.errai.common.client.domOptionsetValue

Popular methods of Option

  • setTextContent
  • setSelected
  • setText
  • setAttribute
  • getSelected
  • getText

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Collectors (java.util.stream)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now