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:
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 classBaseCommandButtonPresentationModel.ActionFireTriggerstatic classBaseCommandButtonPresentationModel.BaseBuilder<MPM extends BaseCommandPopupMenuPresentationModel,PM extends BaseCommandButtonPresentationModel<MPM,PM>,B extends BaseCommandButtonPresentationModel.BaseBuilder<MPM,PM,B>>static classBaseCommandButtonPresentationModel.Overlaystatic interfaceBaseCommandButtonPresentationModel.PopupAnchorBoundsProviderstatic classBaseCommandButtonPresentationModel.PopupFireTriggerstatic classBaseCommandButtonPresentationModel.SelectedStateHighlightstatic classBaseCommandButtonPresentationModel.TextClick
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseCommandButtonPresentationModel()
-
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 org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy
-
enabledIconFilterStrategy
protected org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy
-
disabledIconFilterStrategy
protected org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy
-
forceAllocateSpaceForIcon
protected boolean forceAllocateSpaceForIcon
-
backgroundAppearanceStrategy
protected org.pushingpixels.radiance.theming.api.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 org.pushingpixels.radiance.theming.api.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 org.pushingpixels.radiance.common.api.icon.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 org.pushingpixels.radiance.theming.api.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 org.pushingpixels.radiance.theming.api.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 org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getActiveIconFilterStrategy()
-
getEnabledIconFilterStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getEnabledIconFilterStrategy()
-
getDisabledIconFilterStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.IconFilterStrategy getDisabledIconFilterStrategy()
-
isForceAllocateSpaceForIcon
public boolean isForceAllocateSpaceForIcon()
-
getFont
public java.awt.Font getFont()
-
getPopupPlacementStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.PopupPlacementStrategy getPopupPlacementStrategy()
-
isShowPopupIcon
public boolean isShowPopupIcon()
-
getPopupIcon
public org.pushingpixels.radiance.common.api.icon.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 org.pushingpixels.radiance.theming.api.RadianceThemingSlices.Sides getSides()
-
-