Package com.gwtext.client.widgets

Examples of com.gwtext.client.widgets.Button


    this.to = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_to() );
    MultiFieldPanel multiField = new MultiFieldPanel();
    this.to.setWidth( "100%" );
    this.to.setHideLabel( true );
    this.toButton = new Button( this.to.getFieldLabel() );
    this.toButton.setMinWidth( LABEL_WIDTH );
    this.toButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            to.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.toButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.to, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.cc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_cc() );
    multiField = new MultiFieldPanel();
    this.cc.setWidth( "100%" );
    this.cc.setHideLabel( true );
    this.ccButton = new Button( this.cc.getFieldLabel() );
    this.ccButton.setMinWidth( LABEL_WIDTH );
    this.ccButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            cc.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.ccButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.cc, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.bcc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_bcc() );
    multiField = new MultiFieldPanel();
    this.bcc.setWidth( "100%" );
    this.bcc.setHideLabel( true );
    this.bccButton = new Button( this.bcc.getFieldLabel() );
    this.bccButton.setMinWidth( LABEL_WIDTH );
    this.bccButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {
View Full Code Here


    fieldSet.add( createFieldPanel( this.subject ) );
    fieldSet.add( createFieldPanel( this.content ), new TableLayoutData( 2 ) );
    fieldSet.add( createFieldPanel( this.dateFrom ) );
    fieldSet.add( createFieldPanel( this.dateTo ) );

    this.searchButton = new Button( TextProvider.get().extended_search_panel_search() );
    fieldSet.add( this.searchButton );

    add( fieldSet );
  }
View Full Code Here

    this.noticeFormPanel = createNoticeFormPanel();
    this.tabPanel.add( this.noticeFormPanel );

    add( tabPanel );

    Button saveButton = new Button( TextProvider.get().common_button_save() );
    saveButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        save();
      }
    } );
    addButton( saveButton );

    Button cancelButton = new Button( TextProvider.get().common_button_cancel() );
    cancelButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        hide();
View Full Code Here

        window.setHeight(365);
        window.setLayout(new FitLayout());

        FormPanel panel = new FormPanel();

        Button showInTreeButton = new Button("Select in tree", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                doSelect(searchGrid.getSelection());
            }
        });

        Button closeButton = new Button("Close", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                window.close(); // TODO: cancel existing search
                window.destroy();
            }
View Full Code Here

        commentsNotificationListBox.addItem(NotificationInterval.DAILY.getValue());
        commentsNotificationListBox.setSelectedIndex(1);
        editProfileTable.setWidget(6, 0, commentsNotificationIdLabel );
        editProfileTable.setWidget(6, 1, commentsNotificationListBox );

        Button okButton = new Button("Ok", new OkButtonListenerAdapter(win, userEmailTextBox, userNameTextBox, commentsNotificationListBox, ontologyNotificationListBox));

        Button cancelButton = new Button("Cancel", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                win.close();
            }
        });
View Full Code Here

        setSubject(record == null ? "" : "Re: " +record.getAsString(BioPortalNoteConstants.SUBJECT));
        setBody(getQuotedReplyText());

        window.add(this);

        window.addButton(new Button("Send", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                onCreateNote();
            }
        }) );

        window.addButton(new Button("Cancel", new ButtonListenerAdapter(){
            @Override
            public void onClick(Button button, EventObject e) {
                window.close();
            }
        }));
View Full Code Here

        public SelectionDialog(com.gwtext.client.widgets.Window parent, Selectable selectable) {
            super();
            this.parent = parent;
            this.selectable = selectable;

            Button selectButton = new Button("Select", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    Collection<EntityData> selection = SelectionDialog.this.selectable.getSelection();
                    if (selection != null && selection.size() > 0) {
                        EntityData singleSelection = selection.iterator().next();
View Full Code Here

        reasonField = new TextAreaField();
        reasonField.setLabel("Reason for change:");
        ((TextArea)reasonField.getFieldComponent()).setHeight(120);
        add(reasonField, new AnchorLayoutData("100% - 53"));

        Button retireButton = new Button("Retire");
        retireButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                if (ProjectManager.get().getProject(projectId).get().hasWritePermission()) {
                    onRetire();
                } else {
                    MessageBox.alert("No permission", "You do not have enough privileges to retire classes.");
                }
            }
        });

        Button cancelButton = new Button("Cancel");
        cancelButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                clear();
                destroy();
View Full Code Here

                    performSignIn(isLoginWithHttps, win, userNameField, passwordField);
                }
            }
        });

        Button signInButton = new Button("Sign In", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                performSignIn(isLoginWithHttps, win, userNameField, passwordField);
            }
        });
View Full Code Here

                    }
                }
            }
        });

        Button register = new Button("Register", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                OpenIdUtil openIdUtil = new OpenIdUtil();
                if (newUserID.getText().trim().equals("") || newUserPassword.getText().trim().equals("") || confirmPassword.getText().trim().equals("")) {
                    MessageBox.alert("Please enter both a user name and a password.");
                }
                else if (isLoginWithHttps) {
                    openIdUtil.createNewUserToAssociateOpenIdWithHttps(newUserID.getText().trim(), newUserPassword, confirmPassword, newUserEmailID.getText().trim(), win);
                }
                else {
                    openIdUtil.createNewUserToAssocOpenIdWithEncryption(newUserID.getText().trim(), newUserPassword, confirmPassword, newUserEmailID.getText().trim(), win);
                }
            }
        });

        Button cancel = new Button("Cancel", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                win.close();
            }
        });
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.Button

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.