Examples of Checkbox


Examples of jfix.zk.Checkbox

    image.setTooltiptext(node.getType());
    return new View(node.getType(), image);
  }

  public static View asCheckbox(boolean state, final ActionListener action) {
    final Checkbox checkbox = new Checkbox();
    checkbox.setChecked(state);
    checkbox.addCheckListener(action);
    return new View(state ? I18N.get("Yes") : I18N.get("No"), checkbox);
  }
View Full Code Here

Examples of mdes.slick.sui.CheckBox

     */
    List<String> translated = Translator.translate("_GUI");
    setBackground(new Color(0, 0, 0, 70));
    {
     
      m_fullScreen = new CheckBox(translated.get(16));
      m_fullScreen.pack();
      m_fullScreen.setLocation(10, 10);

      m_fullScreen.setSelected(Boolean.parseBoolean(m_options
          .get("fullScreen")));
      getContentPane().add(m_fullScreen);
    }
    {
      m_muteSound = new CheckBox(translated.get(17));
      m_muteSound.pack();
      m_muteSound.setLocation(150, 10);

      m_muteSound.setSelected(Boolean.parseBoolean(m_options
          .get("soundMuted")));
      getContentPane().add(m_muteSound);
    }
    {
      m_disableMaps = new CheckBox(translated.get(48));
      m_disableMaps.pack();
      m_disableMaps.setLocation(10, 45);
      m_disableMaps.setSelected(Boolean.parseBoolean(m_options.get("disableMaps")));
      getContentPane().add(m_disableMaps);
    }
    {
      m_disableWeather = new CheckBox("Disable Weather");
      m_disableWeather.pack();
      m_disableWeather.setLocation(10, 78);
      m_disableWeather.setSelected(Boolean.parseBoolean(m_options.get("disableWeather")));
      getContentPane().add(m_disableWeather);
    }
View Full Code Here

Examples of net.thucydides.core.webelements.Checkbox

    public String getSelectedLabelFrom(final WebElement dropdown) {
        return Dropdown.forWebElement(dropdown).getSelectedLabel();
    }

    public void setCheckbox(final WebElement field, final boolean value) {
        Checkbox checkbox = new Checkbox(field);
        checkbox.setChecked(value);
        notifyScreenChange();
    }
View Full Code Here

Examples of nextapp.echo2.app.CheckBox

            final Invoice invoice = (Invoice) tblInvoices.getJbsBaseObjects().get(row);

            switch (column) {
                case 0:
                    if (selectable) {
                        final CheckBox checkBox = new CheckBox("");
                        checkBox.setSelected((Boolean) value);
                        checkBox.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent arg0) {
                                if (checkBox.isSelected())
                                    tableModel.selectInvoice(invoice);
                                else
                                    tableModel.deSelectInvoice(invoice);
                            }
                        });
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.Checkbox

          urlStrs = urlStrs.substring(0, urlStrs.lastIndexOf(", "));
          obSourcePlugin.setInputInfo(streams, urlStrs);
        } else {
          // Request a URL from the user.
          TextField urlField = new TextField("URL");
          Checkbox additiveLoadCheckbox = new Checkbox(
              "Add to current?", false);
          MultiEntryComponentDialog urlDialog = new MultiEntryComponentDialog(
              "Enter URL", urlField, additiveLoadCheckbox);
          if (!urlDialog.isCancelled()
              && !urlField.getValue().matches("^\\s*$")) {
            String urlStr = urlField.getValue();
            obSourcePlugin.setAdditive(additiveLoadCheckbox.getValue());
            URL url = new URL(urlStr);
            streams.add(url.openStream());
            obSourcePlugin.setInputInfo(streams, urlStr);
          } else {
            throw new CancellationException();
View Full Code Here

Examples of org.andrewberman.ui.menu.CheckBox

       */
      MenuItem item = menu.get("Use Branch Lengths");
      if (item != null)
      {
        System.out.println("GOT IT");
        CheckBox cb = (CheckBox) item;
        cb.setAction(this,"layout");
      }
    }
  }
View Full Code Here

Examples of org.apache.click.control.Checkbox

        labelStyle = new TextField("labelStyle");
        labelStyle.setTitle("Label td style attribute");
        labelStyle.setAttribute("onchange", "optionsForm.submit();");
        fieldSet.add(labelStyle);

        disabledCheckbox = new Checkbox("disabled");
        disabledCheckbox.setAttribute("onclick", "optionsForm.submit();");
        fieldSet.add(disabledCheckbox);

        readonlyCheckbox = new Checkbox("readonly");
        readonlyCheckbox.setAttribute("onclick", "optionsForm.submit();");
        fieldSet.add(readonlyCheckbox);

        fieldStyle = new TextField("fieldStyle");
        fieldStyle.setTitle("Field td style attribute");
        fieldStyle.setAttribute("onchange", "optionsForm.submit();");
        fieldSet.add(fieldStyle);

        validateCheckbox = new Checkbox("validate");
        validateCheckbox.setAttribute("onclick", "optionsForm.submit();");
        fieldSet.add(validateCheckbox);

        javaScriptValidateCheckbox = new Checkbox("javaScriptValidate", "JavaScript Validate");
        javaScriptValidateCheckbox.setAttribute("onclick", "optionsForm.submit();");
        fieldSet.add(javaScriptValidateCheckbox);

        showBordersCheckbox = new Checkbox("showBorders");
        showBordersCheckbox.setAttribute("onclick", "optionsForm.submit();");
        fieldSet.add(showBordersCheckbox);

        optionsForm.add(new Submit("restoreDefaults", this, "onRestoreDefaults"));
View Full Code Here

Examples of org.apache.pivot.wtk.Checkbox

        disabledButtonSelectionColor = theme.getColor(7);
    }

    @Override
    public int getPreferredWidth(int height) {
        Checkbox checkbox = (Checkbox)getComponent();
        Button.DataRenderer dataRenderer = checkbox.getDataRenderer();

        int preferredWidth = CHECKBOX_SIZE;

        Object buttonData = checkbox.getButtonData();
        if (buttonData != null) {
            dataRenderer.render(buttonData, checkbox, false);
            preferredWidth += dataRenderer.getPreferredWidth(height)
                + spacing * 2;
        }
View Full Code Here

Examples of org.apache.struts2.components.Checkbox

    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        tag = new Checkbox(stack, request, response);
    }
View Full Code Here

Examples of org.apache.tapestry.form.Checkbox

    public abstract CheckboxGroup getGroup();

    public String getCheckboxName()
    {
        Checkbox checkbox = (Checkbox) getComponent("checkbox");
        String name = checkbox.getName();
        return name;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.