Examples of addListener()


Examples of org.gudy.azureus2.plugins.utils.resourcedownloader.ResourceDownloader.addListener()

   * @since 3.0.0.7
   */
  private boolean nextUpdate() {
    if (iterDownloaders.hasNext()) {
      ResourceDownloader downloader = (ResourceDownloader) iterDownloaders.next();
      downloader.addListener(this);
      downloader.asyncDownload();
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.gudy.azureus2.pluginsimpl.local.update.UpdateCheckInstanceImpl.addListener()

      }
    }
   
    if ( listener != null ){
     
      inst.addListener(
        new UpdateCheckInstanceListener()
        {
          public void
          cancelled(
            UpdateCheckInstance    instance )
View Full Code Here

Examples of org.gwtoolbox.widget.client.grid.selection.MultiRowSelectionModel.addListener()

        });

        SimpleButton multiModelButton = new SimpleButton("Set Multi-Line Selection", new ClickHandler() {
            public void onClick(ClickEvent event) {
                MultiRowSelectionModel model = new MultiRowSelectionModel();
                model.addListener(new MultiRowSelectionModel.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("Selection cleared.");
                    }

                    public void rowSelected(int row, MultiRowSelection model) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.grid.selection.SingleRowSelectionModel.addListener()

        DOM.setStyleAttribute(messageLabel.getElement(), "marginTop", "10px");

        SimpleButton singleModelButton = new SimpleButton("Set Single Line Selection", new ClickHandler() {
            public void onClick(ClickEvent event) {
                SingleRowSelectionModel model = new SingleRowSelectionModel();
                model.addListener(new SingleRowSelectionModel.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("Selection cleared.");
                    }

                    public void rowSelected(int row, SingleRowSelection selection) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.menu.item.CheckMenuItem.addListener()

        panel.addTab("Tab 3", hsp);

        TabSpec tab4 = new TabSpec("tab4", "Tab 4", null, new Label("Confent for Tab 4"), false).setMenuBuilder(new MenuBuilder() {
            public void build(Menu menu) {
                CheckMenuItem item = new CheckMenuItem("Disable", !panel.isTabEnabled("tab4"));
                item.addListener(new MenuItemSelectionListener() {
                    public void selectionChanged(SelectionMenuItem item) {
                        panel.setTabEnabled("tab4", !item.isSelected());
                    }
                });
                menu.addItem(item);
View Full Code Here

Examples of org.gwtoolbox.widget.client.menu.item.RadioMenuItem.addListener()

                Window.alert("'" + item.getKey() + "' was selected");
            }
        };

        RadioMenuItem radio = new RadioMenuItem("1", "Option 1", false);
        radio.addListener(listener);
        radio.setGroup("options");
        radiosMenu.addItem(radio);

        radio = new RadioMenuItem("2", "Option 2", false);
        radio.addListener(listener);
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.basic.selection.MultiCellSelectionModel.addListener()

        Button multiCellSelectionButton = new Button("Set Multi-Cell Selection");
        multiCellSelectionButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                MultiCellSelectionModel selectionModel = new MultiCellSelectionModel();
                table.setSelectionModel(selectionModel);
                selectionModel.addListener(new MultiCellSelection.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("");
                    }

                    public void cellSelected(int row, int column, MultiCellSelection model) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.basic.selection.MultiRowSelectionModel.addListener()

        Button multiRowSelectionButton = new Button("Set Multi-Row Selection");
        multiRowSelectionButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                MultiRowSelectionModel selectionModel = new MultiRowSelectionModel();
                table.setSelectionModel(selectionModel);
                selectionModel.addListener(new MultiRowSelection.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("");
                    }

                    public void rowSelected(int row, MultiRowSelection model) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.basic.selection.SingleCellSelectionModel.addListener()

        Button singleCellSelectionButton = new Button("Set Single Cell Selection");
        singleCellSelectionButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                SingleCellSelectionModel selectionModel = new SingleCellSelectionModel();
                table.setSelectionModel(selectionModel);
                selectionModel.addListener(new SingleCellSelection.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("");
                    }

                    public void cellSelected(int row, int column) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.basic.selection.SingleRowSelectionModel.addListener()

        Button singleRowSelectionButton = new Button("Set Single Row Selection");
        singleRowSelectionButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                SingleRowSelectionModel selectionModel = new SingleRowSelectionModel();
                table.setSelectionModel(selectionModel);
                selectionModel.addListener(new SingleRowSelection.Listener() {
                    public void selectionCleared() {
                        messageLabel.setText("");
                    }

                    public void rowSelected(int row) {
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.