Examples of addClickHandler()


Examples of next.i.view.widgets.XButton.addClickHandler()

    final XProgress progress = new XProgress();
    // progress.setTransistionTiming(1000);
    XButton btn = new XButton("Start Progress");

    btn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        if(!progress.isRunning()){
          progress.reset();
          runProgress(0, progress);
        }
View Full Code Here

Examples of org.appfuse.client.widget.ListItem.addClickHandler()

      final ListItem displayItem = new ListItem();
      displayItem.setStyleName("token-input-token-facebook");
      Paragraph p = new Paragraph(itemBox.getValue());

      displayItem.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent clickEvent) {
          displayItem
              .addStyleName("token-input-selected-token-facebook");
        }
      });
View Full Code Here

Examples of org.appfuse.client.widget.Span.addClickHandler()

       * onBlur(BlurEvent blurEvent) { displayItem.removeStyleName(
       * "token-input-selected-token-facebook"); } });
       */

      Span span = new Span("x");
      span.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent clickEvent) {
          removeListItem(displayItem, list);
        }
      });

View Full Code Here

Examples of org.damour.base.client.ui.buttons.Button.addClickHandler()

    final User user = AuthenticationHandler.getInstance().getUser();

    setText("E-mail to Friends");
    Button ok = new Button("OK");
    ok.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        // build a map of addresses/names from table
        String toAddresses = "";
        for (int i = 0; i < NUM_ADDRESSES; i++) {
          String address = ((TextBox) emailAddressTable.getWidget(i, 0)).getText();
View Full Code Here

Examples of org.damour.base.client.ui.buttons.IconButton.addClickHandler()

    toolbar.add(new Label(title, false));

    IconButton reloadImageButton = new IconButton(null, false, BaseImageBundle.images.refresh_16(), BaseImageBundle.images.refresh_16(),
        BaseImageBundle.images.refresh_16(), BaseImageBundle.images.refresh_disabled_16());
    reloadImageButton.setTitle("Refresh File Manager");
    reloadImageButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        repositoryTree.fetchRepositoryTree(FileManagerPanel.this);
      }
    });
    toolbar.add(reloadImageButton);
View Full Code Here

Examples of org.damour.base.client.ui.buttons.ToolbarButton.addClickHandler()

  }

  public ToolbarButton buildLoginButton() {
    ToolbarButton loginLink = new ToolbarButton(getMessages().getString("login", "Login"));
    loginLink.setTitle(getMessages().getString("loginTitle", "Login or Create a New Account"));
    loginLink.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        AuthenticationHandler.getInstance().handleUserAuthentication(true);
      }
    });
    return loginLink;
View Full Code Here

Examples of org.drools.guvnor.client.common.ImageButton.addClickHandler()

        });

        Image addNewConstraint = new ImageButton(images.newItem());
        addNewConstraint.setTitle(constants.AddNewConstraint());

        addNewConstraint.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showNewConstrainPop();
            }
        });
View Full Code Here

Examples of org.drools.guvnor.client.util.AddButton.addClickHandler()

    private Widget newAction() {
        AddButton addButton = new AddButton();
        addButton.setText( constants.NewColumn() );
        addButton.setTitle( constants.CreateANewActionColumn() );

        addButton.addClickHandler( new ClickHandler() {
            public void onClick( ClickEvent w ) {
                final FormStylePopup pop = new FormStylePopup();
                pop.setModal( false );

                final ListBox choice = new ListBox();
View Full Code Here

Examples of org.gwt.mosaic.ui.client.ImageButton.addClickHandler()

    messagePanel.add(widget);

    final ImageButton collapseBtn = new ImageButton(Caption.IMAGES.toolCollapseDown());
    messagePanel.getHeader().add(collapseBtn, Caption.CaptionRegion.RIGHT);

    collapseBtn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        parent.setCollapsed(messagePanel, true);
        parent.invalidate();
        parent.layout();
      }
View Full Code Here

Examples of org.gwtoolbox.widget.client.button.SimpleButton.addClickHandler()

    public MessageBoxSample() {
        HorizontalPanel buttons = new HorizontalPanel();
        buttons.setSpacing(4);

        SimpleButton button = new SimpleButton("Show Error");
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                String title = "The Error";
                String message = "This is the content of the message and it's very long to see how it copes with it";
                MessageBox.show(NotificationType.ERROR, MessageBox.OptionType.OK, title, message, new MessageBox.OptionCallback() {
                    public void handle(MessageBox.Button button) {
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.