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

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

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

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.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.dashbuilder/dashbuilder-cms-client

@Override
public void show() {
  nameInput.setValue("");
  nameErrorLabel.setTextContent("");
  formDiv.setClassName("form-group");
  fluidOption.setSelected(true);
  pageOption.setSelected(false);
  nameLabel.setTextContent(i18n.newPerspectivePopUpViewName());
  nameHelp.setTitle(i18n.newPerspectivePopUpViewNameHelp());
  styleLabel.setTextContent(i18n.newPerspectivePopUpViewStyle());
  styleHelp.setTitle(i18n.newPerspectivePopUpViewStyleHelp());
  okButton.setTextContent(i18n.newPerspectivePopUpViewOk());
  cancelButton.setTextContent(i18n.newPerspectivePopUpViewCancel());
  fluidOption.setTextContent(i18n.newPerspectivePopUpViewFluid());
  pageOption.setTextContent(i18n.newPerspectivePopUpViewPage());
  modal.setTitle(i18n.newPerspectivePopUpViewTitle());
  modal.show();
  nameInput.focus();
}
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: 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: kiegroup/appformer

@Override
public void show() {
  nameInput.setValue("");
  nameErrorLabel.setTextContent("");
  formDiv.setClassName("form-group");
  fluidOption.setSelected(true);
  pageOption.setSelected(false);
  nameLabel.setTextContent(i18n.newPerspectivePopUpViewName());
  nameHelp.setTitle(i18n.newPerspectivePopUpViewNameHelp());
  styleLabel.setTextContent(i18n.newPerspectivePopUpViewStyle());
  styleHelp.setTitle(i18n.newPerspectivePopUpViewStyleHelp());
  okButton.setTextContent(i18n.newPerspectivePopUpViewOk());
  cancelButton.setTextContent(i18n.newPerspectivePopUpViewCancel());
  fluidOption.setTextContent(i18n.newPerspectivePopUpViewFluid());
  pageOption.setTextContent(i18n.newPerspectivePopUpViewPage());
  modal.setTitle(i18n.newPerspectivePopUpViewTitle());
  modal.show();
  nameInput.focus();
}
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.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.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: 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: 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);
}
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;
}
org.jboss.errai.common.client.domOption

Most used methods

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

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim plugins
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