Package com.extjs.gxt.ui.client.widget.button

Examples of com.extjs.gxt.ui.client.widget.button.Button.addSelectionListener()


        comboSubjects.setStore(subjectStore);
        comboSubjects.setTypeAhead(true);
        comboSubjects.setTriggerAction(TriggerAction.ALL);

        Button btnRemoveAll = new Button(textMessages.removeAll());
        btnRemoveAll.addSelectionListener(new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doRemoveAll();
View Full Code Here


        comboSubjects.setTypeAhead(true);
        comboSubjects.setTriggerAction(TriggerAction.ALL);
        comboSubjects.setEnabled(isPasswordGrantable);

        Button btnRemoveAll = new Button(textMessages.removeAll());
        btnRemoveAll.addSelectionListener(new SelectionListener<ButtonEvent>()
        {
            @Override
            public void componentSelected(ButtonEvent ce)
            {
                doRemoveAll();
View Full Code Here

     topMenuBar.setWidth("100%");
 
     // build select section
     final Button selectSection = new Button("Select Section");
     selectSection.setEnabled(false);
     selectSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        Commands.getInstance().showSelectSection( new TableOfContentsPanelItemSelectedListener(){
          public void tocp_itemSelected(TableOfContentsEntry entry) {
               // call server
View Full Code Here

    }

    private void createCancelToolbarButton(ToolBar mb, String title, final String selectedPartsID){
      Button cancelButton = new Button(title);
    cancelButton.setIconStyle("icon-menu-cancel");
    cancelButton.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        Commands.getInstance().selectedMatchableElement(selectedPartsID);
      }
    });
View Full Code Here

      if(nextSectionsTitle.length() > 20)
        gotoNextSection.setText("Goto Next Section: " + nextSectionsTitle.substring(0, 20) + "..." );
      else
        gotoNextSection.setText("Goto Next Section: " + nextSectionsTitle);
    }
    gotoNextSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        if(null != selectedSection)
          Commands.getInstance().selectNextSection(file, selectedSection, callback);
      }
View Full Code Here

      if(prevSectionsTitle.length() > 20)
        gotoPreviousSection.setText("Goto Previous Section: " + prevSectionsTitle.substring(0, 20) + "..." );
      else
        gotoPreviousSection.setText("Goto Previous Section: " + prevSectionsTitle);
    }
    gotoPreviousSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        if(null != selectedSection)
          Commands.getInstance().selectPreviousSection(file, selectedSection, callback);
      }
View Full Code Here

    if(results.getType() == SearchResults.TYPE_PROPOSED){
      // propose matches
      final Button proposeMatch = new Button("Propose More Matches");
      if(null != ClientState.proposeMoreMatches && ClientState.proposeMoreMatches.equals(selectedPartsID))
        proposeMatch.disable();
      proposeMatch.addSelectionListener(new SelectionListener<ButtonEvent>(){
        @Override
        public void componentSelected(ButtonEvent ce) {
          proposeMatch.disable();
          ClientState.proposeMoreMatches = selectedPartsID;
          Commands.getInstance().findNewMatchFor(selectedPartsID,ClientUtils.SHINGLE_CLOUD_FUZZY);
View Full Code Here

     
      Button gotoNextSection = new Button("Goto Next Page");
      gotoNextSection.setIconStyle("icon-menu-nextSection");
      if(! results.isMore())
        gotoNextSection.disable();
      gotoNextSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
        @Override
        public void componentSelected(ButtonEvent ce) {
          Commands.getInstance().performManualSearch(
                      ClientState.getCurrentlyDerivedFile(), results.getQuery(), results.getStart() + results.getOffset(),
                      new CommandCallback<SearchResults>(){
View Full Code Here

     
      Button gotoPrevSection = new Button("Goto Previous Page");
      gotoPrevSection.setIconStyle("icon-menu-previousSection");
      if(results.getStart() == 0)
        gotoPrevSection.disable();
      gotoPrevSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
        @Override
        public void componentSelected(ButtonEvent ce) {
          Commands.getInstance().performManualSearch(
                      ClientState.getCurrentlyDerivedFile(), results.getQuery(), results.getStart() - results.getOffset(),
                      new CommandCallback<SearchResults>(){
View Full Code Here

    selectionMenuHead.setMenu(selectionMenu);
    mb.add(selectionMenuHead);
   
    Button getInformation = new Button("More Information");
    getInformation.setIconStyle("icon-menu-information");
    getInformation.addSelectionListener(new SelectionListener<ButtonEvent>(){

      @Override
      public void componentSelected(ButtonEvent ce) {
        String id = tcSection.getSelectedItemsId();
        if(null == id)
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.