Class CommandPanelPresentationModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandPanelPresentationModel
- All Implemented Interfaces:
ChangeAware, MutablePresentationModel, PresentationModel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Insetsprivate HorizontalAlignmentprivate doubleprivate Dimensionprivate CommandButtonPresentationStateprivate doubleprivate intprivate Insetsstatic final Insetsstatic final intprivate PanelLayoutSpecprivate 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(PanelLayoutSpec layoutSpec) voidsetToShowGroupLabels(boolean toShowGroupLabels)
-
Field Details
-
DEFAULT_CONTENT_PADDING
-
DEFAULT_GAP
public static final int DEFAULT_GAP- See Also:
-
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 -
commandPopupFireTrigger
-
commandSelectedStateHighlight
-
backgroundAppearanceStrategy
-
activeIconFilterStrategy
-
enabledIconFilterStrategy
-
disabledIconFilterStrategy
-
commandHorizontalAlignment
-
popupPlacementStrategy
-
-
Constructor Details
-
CommandPanelPresentationModel
private CommandPanelPresentationModel()
-
-
Method Details
-
builder
-
getCommandPresentationState
-
setCommandPresentationState
-
getCommandIconDimension
-
setCommandIconDimension
-
getCommandContentPadding
-
setCommandContentPadding
-
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
-
getCommandPopupFireTrigger
-
getCommandSelectedStateHighlight
-
getPopupPlacementStrategy
-
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()
-