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

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


    mb.add(navigationMenuHead);
   
    Button gotoNextSection = new Button("Goto Next Section");
    gotoNextSection.setIconStyle("icon-menu-nextSection");
    if(!selectedSection.hasNext())
      gotoNextSection.disable();
    else {
      String nextSectionsTitle = selectedSection.getNext().getTitle();
      if(nextSectionsTitle.length() > 20)
        gotoNextSection.setText("Goto Next Section: " + nextSectionsTitle.substring(0, 20) + "..." );
      else
View Full Code Here


    navigationMenu.add(gotoNextSection);
   
    Button gotoPreviousSection = new Button("Goto Previous Section");
    gotoPreviousSection.setIconStyle("icon-menu-previousSection");
    if(!selectedSection.hasPrev())
      gotoPreviousSection.disable();
    else {
      String prevSectionsTitle = selectedSection.getPrev().getTitle();
      if(prevSectionsTitle.length() > 20)
        gotoPreviousSection.setText("Goto Previous Section: " + prevSectionsTitle.substring(0, 20) + "..." );
      else
View Full Code Here

    // more matches
    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;
View Full Code Here

      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);
        }
      });
      mb.add(proposeMatch);
View Full Code Here

      mb.add(navigationMenuHead);
     
      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(),
View Full Code Here

      navigationMenu.add(gotoNextSection);
     
      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(),
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.