Class CommandButtonPresentationModel
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.CommandButtonPresentationModel
-
- All Implemented Interfaces:
ImmutablePresentationModel,PresentationModel
public class CommandButtonPresentationModel extends java.lang.Object implements ImmutablePresentationModel
Encapsulates presentation metadata for displaying commands as buttons. Use a new instance ofCommandButtonPresentationModel.Builderto configure a new presentation, andCommandButtonPresentationModel.Builder.build()to build a presentation.Note that you can use the same
CommandButtonPresentationModelinstance on multiple calls toCommand.project(CommandButtonPresentationModel). UseoverlayWith(Overlay)to create a new presentation instance that overlays the presentation configuration with values set on the passedCommandButtonPresentationModel.Overlayobject.- See Also:
Command,CommandButtonProjection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandButtonPresentationModel.Builderstatic classCommandButtonPresentationModel.FireActionTriggerstatic classCommandButtonPresentationModel.Overlaystatic classCommandButtonPresentationModel.TextClick
-
Field Summary
Fields Modifier and Type Field Description static java.awt.InsetsCOMPACT_BUTTON_CONTENT_PADDINGstatic intDEFAULT_AUTO_REPEAT_INITIAL_INTERVAL_MSstatic intDEFAULT_AUTO_REPEAT_SUBSEQUENT_INTERVAL_MSstatic doubleDEFAULT_GAP_SCALE_FACTORstatic intDEFAULT_HORIZONTAL_ALIGNMENTstatic java.awt.InsetsWIDE_BUTTON_CONTENT_PADDING
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_HORIZONTAL_ALIGNMENT
public static final int DEFAULT_HORIZONTAL_ALIGNMENT
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
overlayWith
public CommandButtonPresentationModel overlayWith(CommandButtonPresentationModel.Overlay overlay)
-
withDefaults
public static CommandButtonPresentationModel withDefaults()
-
builder
public static CommandButtonPresentationModel.Builder builder()
-
overlay
public static CommandButtonPresentationModel.Overlay overlay()
-
getPresentationState
public CommandButtonPresentationState getPresentationState()
-
getBackgroundAppearanceStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.BackgroundAppearanceStrategy getBackgroundAppearanceStrategy()
-
isFocusable
public boolean isFocusable()
-
getHorizontalAlignment
public int getHorizontalAlignment()
-
getContentPadding
public java.awt.Insets getContentPadding()
-
getHorizontalGapScaleFactor
public double getHorizontalGapScaleFactor()
-
getVerticalGapScaleFactor
public double getVerticalGapScaleFactor()
-
getIconDimension
public java.lang.Integer 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()
-
getPopupPlacementStrategy
public org.pushingpixels.radiance.theming.api.RadianceThemingSlices.PopupPlacementStrategy getPopupPlacementStrategy()
-
isMenu
public boolean isMenu()
-
isToDismissPopupsOnActivation
public boolean isToDismissPopupsOnActivation()
-
getPopupMenuPresentationModel
public AbstractPopupMenuPresentationModel getPopupMenuPresentationModel()
-
getActionKeyTip
public java.lang.String getActionKeyTip()
-
getPopupKeyTip
public java.lang.String getPopupKeyTip()
-
getTextClick
public CommandButtonPresentationModel.TextClick getTextClick()
-
getFireActionTrigger
public CommandButtonPresentationModel.FireActionTrigger getFireActionTrigger()
-
isAutoRepeatAction
public boolean isAutoRepeatAction()
-
hasAutoRepeatIntervalsSet
public boolean hasAutoRepeatIntervalsSet()
-
getAutoRepeatInitialInterval
public int getAutoRepeatInitialInterval()
-
getAutoRepeatSubsequentInterval
public int getAutoRepeatSubsequentInterval()
-
getActionRichTooltipPresentationModel
public RichTooltipPresentationModel getActionRichTooltipPresentationModel()
-
getPopupRichTooltipPresentationModel
public RichTooltipPresentationModel getPopupRichTooltipPresentationModel()
-
-