Class CommandPopupMenuPanelPresentationModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandPopupMenuPanelPresentationModel
- All Implemented Interfaces:
ChangeAware
,MutablePresentationModel
,PresentationModel
public class CommandPopupMenuPanelPresentationModel
extends Object
implements MutablePresentationModel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Insets
private HorizontalAlignment
private double
private Dimension
private CommandButtonPresentationState
private double
private int
private Insets
private MenuPopupPanelLayoutSpec
private boolean
private final WeakChangeSupport
Stores the listeners on this model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified change listener to track changes to the underlying source.builder()
private void
double
double
int
boolean
void
Removes the specified change listener from tracking changes to the underlying source.void
setBackgroundAppearanceStrategy
(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) void
setCommandContentPadding
(Insets commandContentPadding) void
setCommandHorizontalGapScaleFactor
(double commandHorizontalGapScaleFactor) void
setCommandIconDimension
(Dimension commandIconDimension) void
setCommandPresentationState
(CommandButtonPresentationState commandPresentationState) void
setCommandVerticalGapScaleFactor
(double commandVerticalGapScaleFactor) void
setContentGap
(int contentGap) void
setContentPadding
(Insets contentPadding) void
setIconFilterStrategies
(RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy) void
setLayoutSpec
(MenuPopupPanelLayoutSpec layoutSpec) void
setToShowGroupLabels
(boolean toShowGroupLabels)
-
Field Details
-
weakChangeSupport
Stores the listeners on this model. -
layoutSpec
-
contentPadding
-
contentGap
private int contentGap -
toShowGroupLabels
private boolean toShowGroupLabels -
commandPresentationState
-
commandIconDimension
-
commandContentPadding
-
commandHorizontalGapScaleFactor
private double commandHorizontalGapScaleFactor -
commandVerticalGapScaleFactor
private double commandVerticalGapScaleFactor -
backgroundAppearanceStrategy
-
activeIconFilterStrategy
-
enabledIconFilterStrategy
-
disabledIconFilterStrategy
-
commandHorizontalAlignment
-
-
Constructor Details
-
CommandPopupMenuPanelPresentationModel
private CommandPopupMenuPanelPresentationModel()
-
-
Method Details
-
builder
-
getCommandPresentationState
-
setCommandPresentationState
-
getCommandContentPadding
-
setCommandContentPadding
-
getCommandIconDimension
-
setCommandIconDimension
-
getLayoutSpec
-
setLayoutSpec
-
getContentPadding
-
setContentPadding
-
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
-
setBackgroundAppearanceStrategy
public void setBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) -
getActiveIconFilterStrategy
-
getEnabledIconFilterStrategy
-
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
-
addChangeListener
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:
-
removeChangeListener
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:
-
fireStateChanged
private void fireStateChanged()
-