Class CommandPopupMenuPanelPresentationModel
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.CommandPopupMenuPanelPresentationModel
-
- All Implemented Interfaces:
ChangeAware,MutablePresentationModel,PresentationModel
public class CommandPopupMenuPanelPresentationModel extends java.lang.Object implements MutablePresentationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandPopupMenuPanelPresentationModel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChangeListener(javax.swing.event.ChangeListener l)Adds the specified change listener to track changes to the underlying source.static CommandPopupMenuPanelPresentationModel.Builderbuilder()org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategygetActiveIconFilterStrategy()org.pushingpixels.radiance.theming.api.RadianceThemingSlices.BackgroundAppearanceStrategygetBackgroundAppearanceStrategy()java.awt.InsetsgetCommandContentPadding()intgetCommandHorizontalAlignment()doublegetCommandHorizontalGapScaleFactor()java.lang.IntegergetCommandIconDimension()CommandButtonPresentationStategetCommandPresentationState()doublegetCommandVerticalGapScaleFactor()intgetContentGap()java.awt.InsetsgetContentPadding()org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategygetDisabledIconFilterStrategy()org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategygetEnabledIconFilterStrategy()MenuPopupPanelLayoutSpecgetLayoutSpec()booleanisToShowGroupLabels()voidremoveChangeListener(javax.swing.event.ChangeListener l)Removes the specified change listener from tracking changes to the underlying source.voidsetBackgroundAppearanceStrategy(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy)voidsetCommandContentPadding(java.awt.Insets commandContentPadding)voidsetCommandHorizontalGapScaleFactor(double commandHorizontalGapScaleFactor)voidsetCommandIconDimension(java.lang.Integer commandIconDimension)voidsetCommandPresentationState(CommandButtonPresentationState commandPresentationState)voidsetCommandVerticalGapScaleFactor(double commandVerticalGapScaleFactor)voidsetContentGap(int contentGap)voidsetContentPadding(java.awt.Insets contentPadding)voidsetIconFilterStrategies(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy)voidsetLayoutSpec(MenuPopupPanelLayoutSpec layoutSpec)voidsetToShowGroupLabels(boolean toShowGroupLabels)
-
-
-
Method Detail
-
builder
public static CommandPopupMenuPanelPresentationModel.Builder builder()
-
getCommandPresentationState
public CommandButtonPresentationState getCommandPresentationState()
-
setCommandPresentationState
public void setCommandPresentationState(CommandButtonPresentationState commandPresentationState)
-
getCommandContentPadding
public java.awt.Insets getCommandContentPadding()
-
setCommandContentPadding
public void setCommandContentPadding(java.awt.Insets commandContentPadding)
-
getCommandIconDimension
public java.lang.Integer getCommandIconDimension()
-
setCommandIconDimension
public void setCommandIconDimension(java.lang.Integer commandIconDimension)
-
getLayoutSpec
public MenuPopupPanelLayoutSpec getLayoutSpec()
-
setLayoutSpec
public void setLayoutSpec(MenuPopupPanelLayoutSpec layoutSpec)
-
getContentPadding
public java.awt.Insets getContentPadding()
-
setContentPadding
public void setContentPadding(java.awt.Insets contentPadding)
-
getContentGap
public int getContentGap()
-
setContentGap
public void setContentGap(int contentGap)
-
getCommandHorizontalGapScaleFactor
public double getCommandHorizontalGapScaleFactor()
-
setCommandHorizontalGapScaleFactor
public void setCommandHorizontalGapScaleFactor(double commandHorizontalGapScaleFactor)
-
getCommandVerticalGapScaleFactor
public double getCommandVerticalGapScaleFactor()
-
setCommandVerticalGapScaleFactor
public void setCommandVerticalGapScaleFactor(double commandVerticalGapScaleFactor)
-
getBackgroundAppearanceStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.BackgroundAppearanceStrategy getBackgroundAppearanceStrategy()
-
setBackgroundAppearanceStrategy
public void setBackgroundAppearanceStrategy(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy)
-
getActiveIconFilterStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getActiveIconFilterStrategy()
-
getEnabledIconFilterStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getEnabledIconFilterStrategy()
-
getDisabledIconFilterStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getDisabledIconFilterStrategy()
-
setIconFilterStrategies
public void setIconFilterStrategies(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy)
-
isToShowGroupLabels
public boolean isToShowGroupLabels()
-
setToShowGroupLabels
public void setToShowGroupLabels(boolean toShowGroupLabels)
-
getCommandHorizontalAlignment
public int getCommandHorizontalAlignment()
-
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener l)
Description copied from interface:ChangeAwareAdds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to add.- See Also:
ChangeAware.removeChangeListener(ChangeListener)
-
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
Description copied from interface:ChangeAwareRemoves the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to remove.- See Also:
ChangeAware.removeChangeListener(ChangeListener)
-
-