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
-
Field Summary
Fields Modifier and Type Field Description private RadianceThemingSlices.IconFilterStrategyactiveIconFilterStrategyprivate RadianceThemingSlices.BackgroundAppearanceStrategybackgroundAppearanceStrategyprivate java.awt.InsetscommandContentPaddingprivate HorizontalAlignmentcommandHorizontalAlignmentprivate doublecommandHorizontalGapScaleFactorprivate java.awt.DimensioncommandIconDimensionprivate CommandButtonPresentationStatecommandPresentationStateprivate doublecommandVerticalGapScaleFactorprivate intcontentGapprivate java.awt.InsetscontentPaddingprivate RadianceThemingSlices.IconFilterStrategydisabledIconFilterStrategyprivate RadianceThemingSlices.IconFilterStrategyenabledIconFilterStrategyprivate MenuPopupPanelLayoutSpeclayoutSpecprivate booleantoShowGroupLabelsprivate WeakChangeSupportweakChangeSupportStores the listeners on this model.
-
Constructor Summary
Constructors Modifier Constructor Description privateCommandPopupMenuPanelPresentationModel()
-
Method Summary
-
-
-
Field Detail
-
weakChangeSupport
private final WeakChangeSupport weakChangeSupport
Stores the listeners on this model.
-
layoutSpec
private MenuPopupPanelLayoutSpec layoutSpec
-
contentPadding
private java.awt.Insets contentPadding
-
contentGap
private int contentGap
-
toShowGroupLabels
private boolean toShowGroupLabels
-
commandPresentationState
private CommandButtonPresentationState commandPresentationState
-
commandIconDimension
private java.awt.Dimension commandIconDimension
-
commandContentPadding
private java.awt.Insets commandContentPadding
-
commandHorizontalGapScaleFactor
private double commandHorizontalGapScaleFactor
-
commandVerticalGapScaleFactor
private double commandVerticalGapScaleFactor
-
backgroundAppearanceStrategy
private RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy
-
activeIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy
-
enabledIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy
-
disabledIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy
-
commandHorizontalAlignment
private HorizontalAlignment commandHorizontalAlignment
-
-
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.awt.Dimension getCommandIconDimension()
-
setCommandIconDimension
public void setCommandIconDimension(java.awt.Dimension 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 RadianceThemingSlices.BackgroundAppearanceStrategy getBackgroundAppearanceStrategy()
-
setBackgroundAppearanceStrategy
public void setBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy)
-
getActiveIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getActiveIconFilterStrategy()
-
getEnabledIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getEnabledIconFilterStrategy()
-
getDisabledIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getDisabledIconFilterStrategy()
-
setIconFilterStrategies
public void setIconFilterStrategies(RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy)
-
isToShowGroupLabels
public boolean isToShowGroupLabels()
-
setToShowGroupLabels
public void setToShowGroupLabels(boolean toShowGroupLabels)
-
getCommandHorizontalAlignment
public HorizontalAlignment 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)
-
fireStateChanged
private void fireStateChanged()
-
-