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 class
CommandPopupMenuPanelPresentationModel.Builder
-
Field Summary
Fields Modifier and Type Field Description private RadianceThemingSlices.IconFilterStrategy
activeIconFilterStrategy
private RadianceThemingSlices.BackgroundAppearanceStrategy
backgroundAppearanceStrategy
private java.awt.Insets
commandContentPadding
private HorizontalAlignment
commandHorizontalAlignment
private double
commandHorizontalGapScaleFactor
private java.awt.Dimension
commandIconDimension
private CommandButtonPresentationState
commandPresentationState
private double
commandVerticalGapScaleFactor
private int
contentGap
private java.awt.Insets
contentPadding
private RadianceThemingSlices.IconFilterStrategy
disabledIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy
enabledIconFilterStrategy
private MenuPopupPanelLayoutSpec
layoutSpec
private boolean
toShowGroupLabels
private WeakChangeSupport
weakChangeSupport
Stores the listeners on this model.
-
Constructor Summary
Constructors Modifier Constructor Description private
CommandPopupMenuPanelPresentationModel()
-
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:ChangeAware
Adds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListener
in 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:ChangeAware
Removes the specified change listener from tracking changes to the underlying source.- Specified by:
removeChangeListener
in interfaceChangeAware
- Parameters:
l
- Change listener to remove.- See Also:
ChangeAware.removeChangeListener(ChangeListener)
-
fireStateChanged
private void fireStateChanged()
-
-