Examples of Button


Examples of org.molgenis.ui.Button

  public void test1() throws RenderException
  {
    // compose
    Form f = new Form()
    .add(new StringInput("name"))
    .add(new Button("helloWorld").setLabel("Say hello").setIcon(Icon.SEARCH));

    // render
    BaseTheme r = new BootstrapTheme();
    String result = r.render(f);
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.config.Button

      Button.PressType type, String address, String[] groups)
      throws BindingConfigParseException {

    Item item = new SwitchItem(name);
    provider.processBindingConfiguration("context", item, config);
    Button button = (Button) provider.getItemConfig(name);

    assertEquals(name, button.getName());
    assertEquals(address, button.getAddress());
    assertEquals(type, button.getType());

    String[] modules = (String[]) Whitebox.getInternalState(button,
        "impactedModules");

    assertEquals(groups.length, modules.length);
View Full Code Here

Examples of org.openhab.binding.omnilink.internal.model.Button

                  eventPublisher);
            }
              break;
            case BUTTON: {
              ButtonProperties p = readButtonProperties(config.getNumber());
              Button button = buttonMap.get(number);
              if (button == null) {
                button = new Button(p);
                buttonMap.put(number, button);
              }
              config.setDevice(button);
            }
              break;
View Full Code Here

Examples of org.openiaml.model.model.visual.Button

    setGeneratedBy(field, by);
    return field;
  }

  public Button generatedButton(GeneratesElements by, VisibleThing container) throws InferenceException {
    Button button = (Button) createElement( container, VisualPackage.eINSTANCE.getButton(), ModelPackage.eINSTANCE.getVisibleThing_Children() );
    setGeneratedBy(button, by);
    return button;
  }
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.interaction.swtwidgets.Button

     
    case BOX:
      return new Box( makeChild(env,c,properties,childPropsNext), properties );
     
    case BUTTON:
      return new Button(env, ((IString) c.get(0)).getValue(),c.get(1), properties);
   
    case CHECKBOX:
      return new Checkbox(env,  ((IString) c.get(0)).getValue(),((IBool)c.get(1)).getValue(), c.get(2), properties);
     
    case CHOICE:
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.button.Button

    footer = body.one("#ft");

    drawTestNav(Y);

    // //java source button
    Button showJavaButton = Y.newButton(Button.config().label(constants.showJava()).render(extraContent).on("click", new EventCallback() {
      @Override
      public void call(EventFacade e) {
        doShowCurrentTestSources2();
      }
    }));
    showJavaButton.srcNode().setStyles(Style.create().fontSize("1.2em").fontWeight("bolder").textDecoration("underline").margin("10px 0px"));

    // test description button
    Button descrButton = Y.newButton(Button.config().label("Test description")).render(extraContent).on("click", new EventCallback() {
      @Override
      public void call(EventFacade e) {
        showCurrentTestDescription(Y);
      }
    }).cast();
    // descrButton.contentBox().setStyle("width", "100%");

    // this gallery sources button
    Button showSurceButton = Y.newButton(Button.config().label(constants.thisExampleGallerySources())).render(extraContent).on("click", new EventCallback() {
      @Override
      public void call(EventFacade e) {
        Map<String, ResourcePrototype> r = new HashMap<String, ResourcePrototype>();
        r.put(constants.thisExampleGallerySources(), TestResources.instance.Gallery());
        doShowSources2(r);
        // showJavaSource2(Y, TestResources.instance.Gallery(),
        // constants.thisExampleGallerySources(), 0);
      }
    }).cast();
    // showSurceButton.contentBox().setStyle("width", "100%");

    Button aboutButton = Y.newButton(Button.config().label("About")).render(extraContent).on("click", new EventCallback() {
      @Override
      public void call(EventFacade e) {
        showAboutThisApplication(Y);
      }
    }).cast();
View Full Code Here

Examples of org.spoutcraft.api.gui.Button

    hastebinLink.setX(95).setY(top);
    hastebinLink.setTextColor(grey);
    screen.attachWidget("Spoutcraft", hastebinLink);
    generateHastie();

    Button button = new CopyErrorURL(this).setText("Copy Link");
    button.setHeight(20).setWidth(80);
    button.setX((int) (hastebinLink.getWidth() + hastebinLink.getX() + 10.0));
    button.setY(top-5);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    top += 25;

    button = new ReportErrorButton().setText("Report");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 - button.getWidth() - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    button = new IgnoreErrorButton().setText("Ignore");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 + button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 30;
  }
View Full Code Here

Examples of org.xith3d.ui.hud.widgets.Button

       
        Panel panel = (Panel) this.getContentPane();
       
        params = new Parameters();
       
        loadButton = new Button(600, 40, Messages.getString("ParametersAsker.1")); //$NON-NLS-1$
        panel.addWidget(loadButton, 10, 20);
        loadButton.addButtonListener(this);
       
        saveButton = new Button(600, 40, Messages.getString("ParametersAsker.2")); //$NON-NLS-1$
        panel.addWidget(saveButton, 10, 70);
        saveButton.addButtonListener(this);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.3")), 10, 120); //$NON-NLS-1$
        initialDigibotsCount = new TextField(300, 40);
        panel.addWidget(initialDigibotsCount, 290, 120);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.4")), 10, 170); //$NON-NLS-1$
        foodFrequency = new TextField(300, 40);
        panel.addWidget(foodFrequency, 290, 170);
       
        panel.addWidget(new Label(280, 40, Messages.getString("ParametersAsker.5")), 10, 220); //$NON-NLS-1$
        terrainFile = new TextField(300, 40);
        panel.addWidget(terrainFile, 290, 220);
        loadTerrainButton = new Button(120, 40, Messages.getString("ParametersAsker.6")); //$NON-NLS-1$
        panel.addWidget(loadTerrainButton, 610, 220);
        loadTerrainButton.addButtonListener(this);
       
        okButton = new Button(120, 40, Messages.getString("ParametersAsker.7")); //$NON-NLS-1$
        panel.addWidget(okButton, 20, 270);
        okButton.addButtonListener(this);
       
        cancelButton = new Button(120, 40, Messages.getString("ParametersAsker.8")); //$NON-NLS-1$
        panel.addWidget(cancelButton, 160, 270);
        cancelButton.addButtonListener(this);
       
        updateDataToUI();
       
View Full Code Here

Examples of org.zkoss.zul.Button

  private void updateContent() {
    grid.getRows().getChildren().clear();
    for (Node node : JeaseSession.getFilter().apply(
        ((Node) tree.getSelectedValue()).getChildren())) {
      Button button = newNodeSelector(node);
      Popup popup = newNodePreview(node);
      if (popup != null) {
        button.setTooltip(popup);
        grid.add(button, popup);
      } else {
        grid.add(button);
      }
    }
View Full Code Here

Examples of pivot.wtk.Button

                    sheet = (Sheet)sheetSerializer.readObject("pivot/tools/net/setAuthentication.wtkx");
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
                }

                Button okButton = (Button)sheetSerializer.getObjectByID("okButton");
                okButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(true);
                    }
                });

                Button cancelButton = (Button)sheetSerializer.getObjectByID("cancelButton");
                cancelButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(false);
                    }
                });

                if (credentials != null) {
                    TextInput usernameTextInput = (TextInput)sheetSerializer.getObjectByID("username");
                    TextInput passwordTextInput = (TextInput)sheetSerializer.getObjectByID("password");
                    usernameTextInput.setText(credentials.getUsername());
                    passwordTextInput.setText(credentials.getPassword());
                }

                sheet.getSheetStateListeners().add(new SheetStateListener() {
                    public Vote previewSheetClose(Sheet sheet, boolean result) {
                        return Vote.APPROVE;
                    }

                    public void sheetCloseVetoed(Sheet sheet, Vote reaso) {
                        // No-op
                    }

                    public void sheetClosed(Sheet sheet) {
                        if (sheet.getResult()) {
                            TextInput usernameTextInput = (TextInput)
                                sheetSerializer.getObjectByID("username");
                            TextInput passwordTextInput = (TextInput)
                                sheetSerializer.getObjectByID("password");

                            String username = usernameTextInput.getText();
                            String password = passwordTextInput.getText();

                            if (username.length() == 0 && password.length() == 0) {
                                credentials = null;
                            } else {
                                credentials = new Credentials(username, password);
                            }
                        }
                    }
                });

                sheet.open(window);
            }
        };

        new Action("toggleHostnameVerificationAction") {
            public String getDescription() {
                return "Toggles lenient hostname verification";
            }

            public void perform() {
                lenientHostnameVerification = !lenientHostnameVerification;
            }
        };

        new Action("setKeystoreAction") {
            private String keystorePath = null;
            private String keystorePassword = null;

            public String getDescription() {
                return "Sets a trusted keystore";
            }

            public void perform() {
                final WTKXSerializer sheetSerializer = new WTKXSerializer();
                final Sheet sheet;

                try {
                    sheet = (Sheet)sheetSerializer.readObject("pivot/tools/net/setKeystore.wtkx");
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
                }

                Button okButton = (Button)sheetSerializer.getObjectByID("okButton");
                okButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(true);
                    }
                });

                Button cancelButton = (Button)sheetSerializer.getObjectByID("cancelButton");
                cancelButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(false);
                    }
                });
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.