Class CommandPanelPresentationModel
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.CommandPanelPresentationModel
-
- All Implemented Interfaces:
ChangeAware
,MutablePresentationModel
,PresentationModel
public class CommandPanelPresentationModel extends java.lang.Object implements MutablePresentationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandPanelPresentationModel.Builder
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
CommandPanelPresentationModel()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_CONTENT_PADDING
public static final java.awt.Insets DEFAULT_CONTENT_PADDING
-
DEFAULT_GAP
public static final int DEFAULT_GAP
- See Also:
- Constant Field Values
-
weakChangeSupport
private final WeakChangeSupport weakChangeSupport
Stores the listeners on this model.
-
layoutSpec
private PanelLayoutSpec 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
-
commandPopupFireTrigger
private BaseCommandButtonPresentationModel.PopupFireTrigger commandPopupFireTrigger
-
commandSelectedStateHighlight
private BaseCommandButtonPresentationModel.SelectedStateHighlight commandSelectedStateHighlight
-
backgroundAppearanceStrategy
private RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy
-
activeIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy
-
enabledIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy
-
disabledIconFilterStrategy
private RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy
-
commandHorizontalAlignment
private HorizontalAlignment commandHorizontalAlignment
-
popupPlacementStrategy
private RadianceThemingSlices.PopupPlacementStrategy popupPlacementStrategy
-
-
Method Detail
-
builder
public static CommandPanelPresentationModel.Builder builder()
-
getCommandPresentationState
public CommandButtonPresentationState getCommandPresentationState()
-
setCommandPresentationState
public void setCommandPresentationState(CommandButtonPresentationState commandPresentationState)
-
getCommandIconDimension
public java.awt.Dimension getCommandIconDimension()
-
setCommandIconDimension
public void setCommandIconDimension(java.awt.Dimension commandIconDimension)
-
getCommandContentPadding
public java.awt.Insets getCommandContentPadding()
-
setCommandContentPadding
public void setCommandContentPadding(java.awt.Insets commandContentPadding)
-
getLayoutSpec
public PanelLayoutSpec getLayoutSpec()
-
setLayoutSpec
public void setLayoutSpec(PanelLayoutSpec 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()
-
getCommandPopupFireTrigger
public BaseCommandButtonPresentationModel.PopupFireTrigger getCommandPopupFireTrigger()
-
getCommandSelectedStateHighlight
public BaseCommandButtonPresentationModel.SelectedStateHighlight getCommandSelectedStateHighlight()
-
getPopupPlacementStrategy
public RadianceThemingSlices.PopupPlacementStrategy getPopupPlacementStrategy()
-
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()
-
-