Package org.ugate.gui.components

Examples of org.ugate.gui.components.FunctionButton


    // textField.setTooltip(new
    // Tooltip(RS.rbLabel("wireless.node.remote")));
    textField.setMaxWidth(100d);
    controlBar.addHelpTextTrigger(textField,
        RS.rbLabel(KEY.WIRELESS_NODE_REMOTE_ADDY_DESC));
    final Button addNodeButton = new FunctionButton(
        FunctionButton.Function.ADD, new Runnable() {
          @Override
          public void run() {
            add(textField.getText());
          }
        });
    controlBar.addHelpTextTrigger(addNodeButton,
        RS.rbLabel(KEY.WIRELESS_NODE_REMOTE_ADD_DESC));
    final Button removeNodeButton = new FunctionButton(
        FunctionButton.Function.REMOVE, new Runnable() {
          @Override
          public void run() {
            removeSelected();
          }
View Full Code Here


        RS.rbLabel(KEY.MAIL_FOLDER_DESC));
    recipient = new TextField();
    HBox.setHgrow(recipient, Priority.ALWAYS);
    recipient.setPromptText(RS
        .rbLabel(KEY.MAIL_ALARM_NOTIFY_EMAILS_ADD_DESC));
    final FunctionButton recipientAdd = createRecipientAddBtn();
    controlBar.addHelpTextTrigger(recipientAdd,
        RS.rbLabel(KEY.MAIL_ALARM_NOTIFY_EMAILS_ADD));
    final FunctionButton recipientRem = createRecipientRemovalBtn();
    controlBar.addHelpTextTrigger(recipientRem,
        RS.rbLabel(KEY.MAIL_ALARM_NOTIFY_EMAILS_REMOVE));
    final HBox recipientFuncBox = new HBox(5);
    recipientFuncBox.getChildren().addAll(recipient, recipientAdd,
        recipientRem);
View Full Code Here

   * the selected email address
   *
   * @return the {@link FunctionButton}
   */
  protected FunctionButton createRecipientRemovalBtn() {
    return new FunctionButton(FunctionButton.Function.REMOVE,
        new Runnable() {
          @Override
          public void run() {
            if (recipients.getListView().getSelectionModel()
                .getSelectedItems().isEmpty()) {
View Full Code Here

   * email address entered in the recipient {@link TextField}
   *
   * @return the {@link FunctionButton}
   */
  protected FunctionButton createRecipientAddBtn() {
    return new FunctionButton(FunctionButton.Function.ADD, new Runnable() {
      @Override
      public void run() {
        if (recipient.getText().isEmpty()) {
          return;
        }
View Full Code Here

TOP

Related Classes of org.ugate.gui.components.FunctionButton

Copyright © 2018 www.massapicom. 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.