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 Insetsprivate HorizontalAlignmentprivate doubleprivate Dimensionprivate CommandButtonPresentationStateprivate doubleprivate intprivate Insetsprivate MenuPopupPanelLayoutSpecprivate booleanprivate final WeakChangeSupportStores the listeners on this model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified change listener to track changes to the underlying source.builder()private voiddoubledoubleintbooleanvoidRemoves the specified change listener from tracking changes to the underlying source.voidsetBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) voidsetCommandContentPadding(Insets commandContentPadding) voidsetCommandHorizontalGapScaleFactor(double commandHorizontalGapScaleFactor) voidsetCommandIconDimension(Dimension commandIconDimension) voidsetCommandPresentationState(CommandButtonPresentationState commandPresentationState) voidsetCommandVerticalGapScaleFactor(double commandVerticalGapScaleFactor) voidsetContentGap(int contentGap) voidsetContentPadding(Insets contentPadding) voidsetIconFilterStrategies(RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy) voidsetLayoutSpec(MenuPopupPanelLayoutSpec layoutSpec) voidsetToShowGroupLabels(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:ChangeAwareAdds the specified change listener to track changes to the underlying source.- Specified by:
addChangeListenerin interfaceChangeAware- Parameters:
l- Change listener to add.- See Also:
-
removeChangeListener
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:
-
fireStateChanged
private void fireStateChanged()
-