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

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


    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected void doAttachChildren() {
    super.doAttachChildren();
View Full Code Here


                refresh();
            }
        });

        final ToggleButton hButton = new ToggleButton("Highligthing");
        hButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
            @Override
            public void componentSelected(ButtonEvent componentEvent) {
                if (hButton.isPressed()) {
                    displayHighLigth();
                } else {
View Full Code Here

            final String msgStart = Messages.get("label.googleDocs.edit.start", "Start editing");
            final String msgStop = Messages.get("label.googleDocs.edit.stop", "Stop editing");

            final ToggleButton btnEdit = new ToggleButton(msgStart, StandardIconsProvider.STANDARD_ICONS.googleDocsLarge());
            btnEdit.setScale(ButtonScale.LARGE);
            btnEdit.addSelectionListener(new SelectionListener<ButtonEvent>() {
                @Override
                public void componentSelected(ButtonEvent ce) {
                    if (btnEdit.isPressed()) {
                        com.google.gwt.user.client.Window.open(JahiaGWTParameters.getContextPath() + "/cms/gedit/"
                                + JahiaGWTParameters.getWorkspace() + node.getPath(), "_blank", "");
View Full Code Here

  final LinkFeedPopup linkFeedPopup;
 
  public RssNavigationPanel(){
    setHeading("Navigation");
    final ToggleButton btnLinkFeed = new ToggleButton("Link Feed");
    btnLinkFeed.addSelectionListener(new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
        if (btnLinkFeed.isPressed()){
          linkFeedPopup.show(btnLinkFeed.getElement(), "bl-tl");
        } else {
          linkFeedPopup.hide();
View Full Code Here

    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected Button createButton(AbstractImagePrototype icon, final String tt, String toolTipTitle) {
    Button item = new Button() {
View Full Code Here

    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected void doAttachChildren() {
    super.doAttachChildren();
View Full Code Here

    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected void doAttachChildren() {
    super.doAttachChildren();
View Full Code Here

    ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, toolTip);
    item.setToolTip(cfg);

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected Button createButton(AbstractImagePrototype icon, String toolTip, String toolTipTitle) {
    Button item = new Button();
View Full Code Here

    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected void doAttachChildren() {
    super.doAttachChildren();
View Full Code Here

    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
  }

  protected void doAttachChildren() {
    super.doAttachChildren();
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.