Package com.cubusmail.client.widgets

Examples of com.cubusmail.client.widgets.ImageHyperlink


    FlowPanel flowPanel = new FlowPanel();

    // Add some content to the panel
    for (int i = 0; i < 30; i++) {
      // CheckBox checkbox = new CheckBox("Item" + " " + i);
      ImageHyperlink checkbox = new ImageHyperlink(
          new Image(GWT.getHostPageBaseURL()
              + ImageProvider.IMAGE_PREFIX
              + ImageProvider.MSG_ATTACHMENT), "Item" + " " + i,
          "#");
      checkbox.addLeftButtonHandler(new MouseDownHandler() {

        public void onMouseDown(MouseDownEvent event) {
          GWT.log(event.getX() + "", null);
          contextMenu.setLeft(event.getX());
          contextMenu.setTop(event.getY());
          contextMenu.setVisibility(Visibility.VISIBLE);
          contextMenu.draw();
        }
      });
      checkbox.addRightButtonHandler(new RightMouseDownHandler() {

        public void onRightMouseDown(RightMouseDownEvent event) {
          GWT.log(event.getX() + "", null);
          contextMenu.setLeft(event.getX());
          contextMenu.setTop(event.getY());
View Full Code Here

TOP

Related Classes of com.cubusmail.client.widgets.ImageHyperlink

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.