Class BaseCommandButtonPresentationModel<MPM extends BaseCommandPopupMenuPresentationModel,PM extends BaseCommandButtonPresentationModel<MPM,PM>>
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.BaseCommandButtonPresentationModel<MPM,PM>
-
- All Implemented Interfaces:
ImmutablePresentationModel
,PresentationModel
- Direct Known Subclasses:
BasicRibbonBandUI.BandCollapseCommandButtonPresentationModel
,ColorSelectorCommandButtonPresentationModel
,CommandButtonPresentationModel
public abstract class BaseCommandButtonPresentationModel<MPM extends BaseCommandPopupMenuPresentationModel,PM extends BaseCommandButtonPresentationModel<MPM,PM>> extends java.lang.Object implements ImmutablePresentationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseCommandButtonPresentationModel.ActionFireTrigger
static class
BaseCommandButtonPresentationModel.BaseBuilder<MPM extends BaseCommandPopupMenuPresentationModel,PM extends BaseCommandButtonPresentationModel<MPM,PM>,B extends BaseCommandButtonPresentationModel.BaseBuilder<MPM,PM,B>>
static class
BaseCommandButtonPresentationModel.Overlay
static interface
BaseCommandButtonPresentationModel.PopupAnchorBoundsProvider
static class
BaseCommandButtonPresentationModel.PopupFireTrigger
static class
BaseCommandButtonPresentationModel.SelectedStateHighlight
static class
BaseCommandButtonPresentationModel.TextClick
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseCommandButtonPresentationModel()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_HORIZONTAL_ALIGNMENT
public static final HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT
-
DEFAULT_GAP_SCALE_FACTOR
public static final double DEFAULT_GAP_SCALE_FACTOR
- See Also:
- Constant Field Values
-
DEFAULT_AUTO_REPEAT_INITIAL_INTERVAL_MS
public static final int DEFAULT_AUTO_REPEAT_INITIAL_INTERVAL_MS
- See Also:
- Constant Field Values
-
DEFAULT_AUTO_REPEAT_SUBSEQUENT_INTERVAL_MS
public static final int DEFAULT_AUTO_REPEAT_SUBSEQUENT_INTERVAL_MS
- See Also:
- Constant Field Values
-
WIDE_BUTTON_CONTENT_PADDING
public static final java.awt.Insets WIDE_BUTTON_CONTENT_PADDING
-
COMPACT_BUTTON_CONTENT_PADDING
public static final java.awt.Insets COMPACT_BUTTON_CONTENT_PADDING
-
presentationState
protected CommandButtonPresentationState presentationState
-
iconDimension
protected java.awt.Dimension iconDimension
-
activeIconFilterStrategy
protected RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy
-
enabledIconFilterStrategy
protected RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy
-
disabledIconFilterStrategy
protected RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy
-
forceAllocateSpaceForIcon
protected boolean forceAllocateSpaceForIcon
-
backgroundAppearanceStrategy
protected RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy
-
isFocusable
protected boolean isFocusable
-
horizontalAlignment
protected HorizontalAlignment horizontalAlignment
-
contentPadding
protected java.awt.Insets contentPadding
-
horizontalGapScaleFactor
protected double horizontalGapScaleFactor
-
verticalGapScaleFactor
protected double verticalGapScaleFactor
-
selectedStateHighlight
protected BaseCommandButtonPresentationModel.SelectedStateHighlight selectedStateHighlight
-
font
protected java.awt.Font font
-
popupPlacementStrategy
protected RadianceThemingSlices.PopupPlacementStrategy popupPlacementStrategy
-
actionKeyTip
protected java.lang.String actionKeyTip
-
popupKeyTip
protected java.lang.String popupKeyTip
-
toDismissPopupsOnActivation
protected boolean toDismissPopupsOnActivation
-
showPopupIcon
protected boolean showPopupIcon
-
popupAnchorBoundsProvider
protected BaseCommandButtonPresentationModel.PopupAnchorBoundsProvider popupAnchorBoundsProvider
-
popupIcon
protected RadianceIcon popupIcon
-
popupMenuPresentationModel
protected MPM extends BaseCommandPopupMenuPresentationModel popupMenuPresentationModel
-
textClick
protected BaseCommandButtonPresentationModel.TextClick textClick
-
isAutoRepeatAction
protected boolean isAutoRepeatAction
-
hasAutoRepeatIntervalsSet
protected boolean hasAutoRepeatIntervalsSet
-
autoRepeatInitialInterval
protected int autoRepeatInitialInterval
-
autoRepeatSubsequentInterval
protected int autoRepeatSubsequentInterval
-
actionFireTrigger
protected BaseCommandButtonPresentationModel.ActionFireTrigger actionFireTrigger
-
popupFireTrigger
protected BaseCommandButtonPresentationModel.PopupFireTrigger popupFireTrigger
-
actionRichTooltipPresentationModel
protected RichTooltipPresentationModel actionRichTooltipPresentationModel
-
popupRichTooltipPresentationModel
protected RichTooltipPresentationModel popupRichTooltipPresentationModel
-
sides
protected RadianceThemingSlices.Sides sides
-
-
Method Detail
-
overlayWith
public abstract PM overlayWith(BaseCommandButtonPresentationModel.Overlay overlay)
-
overlay
public static BaseCommandButtonPresentationModel.Overlay overlay()
-
getPresentationState
public CommandButtonPresentationState getPresentationState()
-
getBackgroundAppearanceStrategy
public RadianceThemingSlices.BackgroundAppearanceStrategy getBackgroundAppearanceStrategy()
-
isFocusable
public boolean isFocusable()
-
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
-
getContentPadding
public java.awt.Insets getContentPadding()
-
getHorizontalGapScaleFactor
public double getHorizontalGapScaleFactor()
-
getVerticalGapScaleFactor
public double getVerticalGapScaleFactor()
-
getIconDimension
public java.awt.Dimension getIconDimension()
-
getActiveIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getActiveIconFilterStrategy()
-
getEnabledIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getEnabledIconFilterStrategy()
-
getDisabledIconFilterStrategy
public RadianceThemingSlices.IconFilterStrategy getDisabledIconFilterStrategy()
-
isForceAllocateSpaceForIcon
public boolean isForceAllocateSpaceForIcon()
-
getFont
public java.awt.Font getFont()
-
getPopupPlacementStrategy
public RadianceThemingSlices.PopupPlacementStrategy getPopupPlacementStrategy()
-
isShowPopupIcon
public boolean isShowPopupIcon()
-
getPopupIcon
public RadianceIcon getPopupIcon()
-
getPopupAnchorBoundsProvider
public BaseCommandButtonPresentationModel.PopupAnchorBoundsProvider getPopupAnchorBoundsProvider()
-
getSelectedStateHighlight
public BaseCommandButtonPresentationModel.SelectedStateHighlight getSelectedStateHighlight()
-
isToDismissPopupsOnActivation
public boolean isToDismissPopupsOnActivation()
-
getPopupMenuPresentationModel
public MPM getPopupMenuPresentationModel()
-
getActionKeyTip
public java.lang.String getActionKeyTip()
-
getPopupKeyTip
public java.lang.String getPopupKeyTip()
-
getTextClick
public BaseCommandButtonPresentationModel.TextClick getTextClick()
-
getActionFireTrigger
public BaseCommandButtonPresentationModel.ActionFireTrigger getActionFireTrigger()
-
getPopupFireTrigger
public BaseCommandButtonPresentationModel.PopupFireTrigger getPopupFireTrigger()
-
isAutoRepeatAction
public boolean isAutoRepeatAction()
-
hasAutoRepeatIntervalsSet
public boolean hasAutoRepeatIntervalsSet()
-
getAutoRepeatInitialInterval
public int getAutoRepeatInitialInterval()
-
getAutoRepeatSubsequentInterval
public int getAutoRepeatSubsequentInterval()
-
getActionRichTooltipPresentationModel
public RichTooltipPresentationModel getActionRichTooltipPresentationModel()
-
getPopupRichTooltipPresentationModel
public RichTooltipPresentationModel getPopupRichTooltipPresentationModel()
-
getSides
public RadianceThemingSlices.Sides getSides()
-
-