Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.ClickListener


        }
      }

    });

    box.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        showDatePicker();
      }
    });
View Full Code Here


    private void createDecorations() {
        whenlabel = new Label();

        magBig = ConstHolder.images.magnifyingBig().createImage();
        magBig.addClickListener(new ClickListener() {
            public void onClick(Widget arg0) {
                zoomIn();
            }
        });

        magSmall = ConstHolder.images.magnifyingSmall().createImage();
        magSmall.addClickListener(new ClickListener() {
            public void onClick(Widget arg0) {
                zoomOut();
            }
        });
View Full Code Here

    for ( final RelationInfo relInfo : relInfos ) {
      String imgUri = GWT.getModuleBaseURL()+ "images/" +relInfo.getIconUri();
      Orr.log("Loading relation image: " +imgUri+ " for URI=" +relInfo.getUri());
      Image img = new Image(imgUri);
      PushButton button = new PushButton(img,
          new ClickListener() {
            public void onClick(Widget sender) {
              mapRelListener.clicked(relInfo);           
            }
      });
      // NOTE: firefox does not put the newlines in the tooltip (perhaps firefox takes this as html?),
View Full Code Here

 
  private CellPanel createButtons() {
    CellPanel panel = new HorizontalPanel();
    panel.setSpacing(2);

    closeButton = new PushButton("Close", new ClickListener() {
      public void onClick(Widget sender) {
        MyDialog.this.hide();
      }
    });
    panel.add(closeButton);
View Full Code Here

      buttons.add(sel);
     
      BaseOntologyInfo s = VineMain.getOntologyInfo(uri);
      if ( s != null ) {
        sel.setTitle(s.getDisplayLabel());
        sel.addClickListener(new ClickListener() {
          public void onClick(Widget sender) {
            // TODO update some variable indicating the selected ontologies for search
          }
        });
        if ( searchIndex == idx ) {
View Full Code Here

//
//        public void onLostFocus(Widget sender) {
//          _focus(false);
//        }
//      });
      textBox.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
//          textBox.selectAll();
          checkBox.setChecked(!checkBox.isChecked());
          checkBoxClicked();
        }
      });
      addMouseListener(new MouseListenerAdapter() {
          public void onMouseEnter(Widget sender) {
            _pickedForInfo();
          }
//          public void onMouseLeave(Widget sender) {
//            _focus(false);
//          }
      });

      checkBox.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          checkBoxClicked();
        }
      });
View Full Code Here

    if ( namespaceRoot != null ) {
      textBox.setText(namespaceRoot);
    }

    popup.getButtonsPanel().insert(
        new PushButton("OK", new ClickListener() {
          public void onClick(Widget sender) {
            String str = textBox.getText().trim();
            _processAccept(str, popup);
          }
        })
        , 0
    );

    if ( userGiven ) {
      popup.getButtonsPanel().insert(
          new PushButton("Revert to default", new ClickListener() {
            public void onClick(Widget sender) {
              userGiven = false;
              namespaceRoot = defaultNameSpace;
              update();
              popup.hide();
View Full Code Here

  }
 
 
  Image _createMenu(final int row, final int col) {
    Image img = Orr.images.tridown().createImage();
    img.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        _cellClicked(row, col);
      }
    });
    img.setVisible(!readOnly);
View Full Code Here

 
  private void createDetailsPanel() {
    detailsPanel.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
    detailsPanel.setSpacing(5);
    detailsButton = new PushButton("Details", new ClickListener() {
      public void onClick(Widget sender) {
        showDetails();
      }
    });
    DOM.setElementAttribute(detailsButton.getElement(), "id", "my-button-id");
View Full Code Here

        search();
      }
    });
   
    PushButton b = new PushButton(VineMain.images.search().createImage());
    b.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        search();
      }
    });
   
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.ClickListener

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.