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

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

Best Java code snippets using org.jboss.errai.common.client.dom.Option.setSelected (Showing top 8 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.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.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: 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: 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.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.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: 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();
}
org.jboss.errai.common.client.domOptionsetSelected

Popular methods of Option

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top PhpStorm 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