Examples of addSelectionHandler()


Examples of bufferings.ktr.wjr.client.ui.widget.WjrTreeItem.addSelectionHandler()

   *          The test store item.
   * @return The tree item.
   */
  private WjrTreeItem createTreeItem(WjrStoreItem storeItem) {
    WjrTreeItem treeItem = new WjrTreeItem();
    treeItem.addSelectionHandler(this);
    treeItem.addValueChangeHandler(this);
    repaintTreeItem(treeItem, storeItem);
    return treeItem;
  }

View Full Code Here

Examples of com.google.gwt.gen2.complexpanel.client.FastTree.addSelectionHandler()

      public void onClose(CloseEvent<FastTreeItem> event) {
        Window.alert("Close " + event.getTarget().getHTML());
      }
    });
    tree.addSelectionHandler(new SelectionHandler<FastTreeItem>() {

      public void onSelection(SelectionEvent<FastTreeItem> event) {
        Window.alert("You selected " + event.getSelectedItem().getHTML());
      }
    });
View Full Code Here

Examples of com.google.gwt.ricordo.client.view.RelationSuggestBox.addSelectionHandler()

            uploadSuggestBox(suggestBox);
            display.setSuggestBoxObject(result, suggestBox);
          }
        });

        suggestBox.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() {
              @Override
              public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) {
                String selection = event.getSelectedItem().getReplacementString();
                selection = selection.split(" ")[0];
View Full Code Here

Examples of com.google.gwt.ricordo.client.view.TermSuggestBox.addSelectionHandler()

            }

          }
        });

        suggestBox.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() {
              @Override
              public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) {
                String selection = event.getSelectedItem().getReplacementString();

                //suggestBox.setText(selection.substring(selection.indexOf("-") + 2, selection.length()));
View Full Code Here

Examples of com.google.gwt.ricordo.client.view.TermSuggestBox.addSelectionHandler()

            uploadSuggestBox(suggestBox);
            display.setSuggestBoxObject(result, suggestBox);
          }
        });

        suggestBox.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() {
              @Override
              public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) {
                String selection = event.getSelectedItem().getReplacementString();
                selection = selection.split(" ")[0];
View Full Code Here

Examples of com.google.gwt.user.client.ui.DecoratedTabPanel.addSelectionHandler()

        public void onChange(ChangeEvent event) {
          initPhotoLayout(contactModel, dropBox.getSelectedIndex(), o_layout);
        }
      });

      tabPanel.addSelectionHandler(new SelectionHandler<Integer>() {
        @Override
        public void onSelection(SelectionEvent<Integer> event) {
          FlexTable currentPhotoTable = (FlexTable) tabPanel.getWidget(event.getSelectedItem());
          ListBox currentDropBox = (ListBox) currentPhotoTable.getWidget(0, 0);
          currentDropBox.setSelectedIndex(0);
View Full Code Here

Examples of com.google.gwt.user.client.ui.StackLayoutPanel.addSelectionHandler()

    public void addHandler(final PTInstruction addHandler, final UIService uiService) {
        final String handlerType = addHandler.getString(HANDLER.KEY);

        if (handlerType.equals(HANDLER.KEY_.SELECTION_HANDLER)) {
            final StackLayoutPanel stackLayoutPanel = uiObject;
            stackLayoutPanel.addSelectionHandler(new SelectionHandler<Integer>() {

                @Override
                public void onSelection(final SelectionEvent<Integer> event) {
                    final PTInstruction eventInstruction = new PTInstruction();
                    eventInstruction.setObjectID(addHandler.getObjectID());
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox.addSelectionHandler()

        cupArray.add(coffeeImages.cupIcon().createImage());
        cupArray.getElement().setTitle(box.getText());
        box.setText("");
      }
    };
    box.addSelectionHandler(addListener);

    int row = clientsFlexTable.getRowCount();
    clientsFlexTable.setText(row, 0, name);
    clientsFlexTable.setWidget(row, 1, box);
    clientsFlexTable.setWidget(row, 2, cupArray);
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox.addSelectionHandler()

      }

    };

    SuggestBox box = new SuggestBox(oracle);
    box.addSelectionHandler(new SelectionHandler<Suggestion>() {
      public void onSelection(SelectionEvent<Suggestion> event) {
        AbstractIssue issue = ((IssueSuggestion) event.getSelectedItem()).getIssue();
        int index = issues.indexOf(issue);
        issueList.setSelectedIndex(index);
        refreshIssue();
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox.addSelectionHandler()

    };

    b.addKeyUpHandler(handler);
    b.addKeyPressHandler(handler);
    b.addFocusListener(handler);
    b.addSelectionHandler(handler);
    b.addValueChangeHandler(handler);
    return b;
  }
}
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.