Class RibbonHelper

java.lang.Object
be.gaudry.swing.ribbon.RibbonHelper

public class RibbonHelper extends Object
Since:
1.0 Feb 23, 2009
Author:
Steph GAUDRY
  • Method Details

    • getBrolCommandButton

      public static org.pushingpixels.flamingo.api.common.JCommandButton getBrolCommandButton(AbstractAction action)
    • getBrolCommandButton

      public static org.pushingpixels.flamingo.api.common.JCommandButton getBrolCommandButton(AbstractAction action, IBrolImage brolImage)
    • addInfoButton

      public static void addInfoButton(org.pushingpixels.flamingo.api.ribbon.JRibbonBand band, String ressourcePath, String titleKey, String textKey)
      In a band, we should never have only one component because flamingo may crash with following message: Inconsistent preferred widths Ribbon band 'Data Persistence' has the following resize policies. \nThis method adds a small component to avoid the error.
      Parameters:
      band -
    • getBrolButton

      public static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton> T getBrolButton(Class<T> commandButtonClass, AbstractAction action, IBrolImage brolImage)
    • customizeButton

      public static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton> void customizeButton(T commandButton, AbstractAction action)
    • customizeButton

      public static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton> void customizeButton(T commandButton, AbstractAction action, IBrolImage brolImage)