Package org.pushingpixels.flamingo.api.common.JCommandButton

Examples of org.pushingpixels.flamingo.api.common.JCommandButton.CommandButtonKind


      }

      private RibbonApplicationMenuEntrySecondary wrapButton(AbstractCommandButton button) {
        ActionListener listener = null;
        PopupPanelCallback callback = null;
        CommandButtonKind kind = CommandButtonKind.ACTION_ONLY;
        if(button instanceof JCommandButton) {
          if(((JCommandButton) button).getPopupCallback() != null) {
            kind = (((JCommandButton) button).getCommandButtonKind());
            callback = ((JCommandButton) button).getPopupCallback();
          }
View Full Code Here


    }

    // separator?
    if (commandButton instanceof JCommandButton) {
      JCommandButton jcb = (JCommandButton) commandButton;
      CommandButtonKind buttonKind = jcb.getCommandButtonKind();
      if (hasIcon && buttonKind.hasAction() && buttonKind.hasPopup()) {
        // space for a horizontal separator
        height += new JSeparator(JSeparator.HORIZONTAL)
            .getPreferredSize().height;
      }
    }
View Full Code Here

    }

    // separator?
    if (commandButton instanceof JCommandButton) {
      JCommandButton jcb = (JCommandButton) commandButton;
      CommandButtonKind buttonKind = jcb.getCommandButtonKind();
      boolean hasSeparator = false;
      if (buttonKind == CommandButtonKind.ACTION_AND_POPUP_MAIN_ACTION
          && (hasIcon || hasText)) {
        hasSeparator = true;
      }
View Full Code Here

      width += 2 * layoutHGap;
    }

    if (commandButton instanceof JCommandButton) {
      JCommandButton jcb = (JCommandButton) commandButton;
      CommandButtonKind buttonKind = jcb.getCommandButtonKind();
      if (hasIcon && buttonKind.hasAction() && buttonKind.hasPopup()) {
        // space for a vertical separator
        width += new JSeparator(JSeparator.VERTICAL).getPreferredSize().width;
      }
    }

View Full Code Here

      width += 2 * layoutHGap;
    }

    if (commandButton instanceof JCommandButton) {
      JCommandButton jcb = (JCommandButton) commandButton;
      CommandButtonKind buttonKind = jcb.getCommandButtonKind();
      boolean hasSeparator = false;
      if (buttonKind == CommandButtonKind.ACTION_AND_POPUP_MAIN_ACTION
          && (hasIcon || hasText)) {
        hasSeparator = true;
      }
View Full Code Here

    }

    // separator?
    if (commandButton instanceof JCommandButton) {
      JCommandButton jcb = (JCommandButton) commandButton;
      CommandButtonKind buttonKind = jcb.getCommandButtonKind();
      boolean hasSeparator = false;
      if (buttonKind == CommandButtonKind.ACTION_AND_POPUP_MAIN_ACTION
          && (hasIcon || hasText)) {
        hasSeparator = true;
      }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.JCommandButton.CommandButtonKind

Copyright © 2018 www.massapicom. 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.