Examples of addClickHandler()


Examples of com.google.gwt.event.dom.client.HasClickHandlers.addClickHandler()

    private void bindDynamic() {
        Map<String, Image> characterImageMap = display.getCharacterImageMap();
        for (final String characterName : characterImageMap.keySet()) {
            HasClickHandlers characterImage = characterImageMap.get(characterName);
            dynamicHandlerRegistrations.add(characterImage.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    PreferencesSetMainCharacterAction action = new PreferencesSetMainCharacterAction();
                    action.setCharacterName(characterName);
                    showSpinner();
View Full Code Here

Examples of com.google.gwt.gen2.commonwidget.client.SimpleWidget.addClickHandler()

    RootPanel.get().add(p);
  
    // Set up clickable widget.
    SimpleWidget clickable = new SimpleWidget("<h1>clickMe</h1>");
    RootPanel.get().add(clickable);
    clickable.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        report("clicked on clickable");
      }
    });
    v.add(clickable);
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor.addClickHandler()

        final HTMLPanel passwordHintHtml = new HTMLPanel(i18n.login_passwordHint());
        final NodeList<Element> anchors = passwordHintHtml.getElement().getElementsByTagName("a");
        final Element a = anchors.getItem(0);
        final Anchor link = new Anchor(a.getInnerHTML());
        link.getElement().setId("signUpLink");
        link.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(final ClickEvent event) {
                delegate.onPasswordHintClick();
            }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Button.addClickHandler()

    leftLayout.add(new HTML("<h3>Drawing options:</h3>"));

    Button circleBtn = new Button("Draw circle");
    circleBtn.setWidth("200");
    circleBtn.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        Circle circle = new Circle(0, 0, 3000000);
        circle.setFillColor("#66CC66");
        circle.setFillOpacity(0.4);
View Full Code Here

Examples of com.google.gwt.user.client.ui.CheckBox.addClickHandler()

      CheckBox cb = new CheckBox();
      cb.setFormValue(roadDetails.getId()); //store the id in the checkbox value
      checkboxes.add(cb); // keep track for selecting all|none to delete
      cb.setStyleName(style.checkbox());
      // if a checkbox is checked, deselect the master checkbox
      cb.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          uncheckMasterCheckBox();
        }
      });
View Full Code Here

Examples of com.google.gwt.user.client.ui.FlexTable.addClickHandler()

      DOM.setStyleAttribute(flextable.getElement(), "border",
          "1px solid #00f");
      flowpanel.insert(flextable, flowpanel.getWidgetCount() - 1);
      status = true;

      flextable.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          final int cellIndex = flextable.getCellForEvent(event)
              .getCellIndex();
          if (cellIndex == 1) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.FocusPanel.addClickHandler()

            FocusPanel fp;
            fp = new FocusPanel();
            fp.setHeight( "100%" );
            fp.setWidth( "50%" );
            fp.add( new Image( resource.selectorAdd() ) );
            fp.addClickHandler( new ClickHandler() {

                public void onClick(ClickEvent event) {
                    hasRows.insertRowBefore( row );
                }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Grid.addClickHandler()

      row = num / COLS;
      col = num % COLS;
      grid.setWidget(row, col, createCell(c));
      num++;
    }
    grid.addClickHandler(new ClickHandler() {
      public void onClick(final ClickEvent event) {
        Cell cell = grid.getCellForEvent(event);
        if (cell != null) {
          String color = COLORS[cell.getRowIndex() * COLS + cell.getCellIndex()];
          onColorChoose(color);
View Full Code Here

Examples of com.google.gwt.user.client.ui.HTML.addClickHandler()

      panelHost_ = panelHost;
     
      // import the minimize button from the global theme resources
      HTML minimize = new HTML();
      minimize.setStylePrimaryName(globalStyles.minimize());
      minimize.addClickHandler(new ClickHandler()
      {
         public void onClick(ClickEvent event)
         {
            if (isMinimized_)
            {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Hyperlink.addClickHandler()

    // Add an item with basic elements inside of it
    {
      final TextBox textBox = new TextBox();
      Hyperlink link = new Hyperlink("change focus", "blah");
      link.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          textBox.setFocus(true);
          event.getNativeEvent().stopPropagation();
        }
      });
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.