Package be.gaudry.swing.ribbon
Class RibbonHelper
java.lang.Object
be.gaudry.swing.ribbon.RibbonHelper
- Since:
- 1.0 Feb 23, 2009
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton>
voidcustomizeButton(T commandButton, AbstractAction action)
static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton>
voidcustomizeButton(T commandButton, AbstractAction action, IBrolImage brolImage)
static <T extends org.pushingpixels.flamingo.api.common.AbstractCommandButton>
TgetBrolButton(Class<T> commandButtonClass, AbstractAction action, IBrolImage brolImage)
static org.pushingpixels.flamingo.api.common.JCommandButton
getBrolCommandButton(AbstractAction action)
static org.pushingpixels.flamingo.api.common.JCommandButton
getBrolCommandButton(AbstractAction action, IBrolImage brolImage)
-
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)
-