Class CommandButtonPresentationModel
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.BaseCommandButtonPresentationModel<CommandPopupMenuPresentationModel, CommandButtonPresentationModel>
org.pushingpixels.radiance.component.api.common.model.CommandButtonPresentationModel
- All Implemented Interfaces:
ImmutablePresentationModel, PresentationModel
public class CommandButtonPresentationModel
extends BaseCommandButtonPresentationModel<CommandPopupMenuPresentationModel, CommandButtonPresentationModel>
Encapsulates presentation metadata for displaying commands as buttons. Use a new instance of
CommandButtonPresentationModel.Builder to configure a new presentation, and CommandButtonPresentationModel.Builder.build() to build a
presentation.
Note that you can use the same CommandButtonPresentationModel instance on multiple
calls to Command.project(CommandButtonPresentationModel). Use
overlayWith(Overlay) to create a new presentation instance that overlays the
presentation configuration with values set on the passed BaseCommandButtonPresentationModel.Overlay object.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class BaseCommandButtonPresentationModel
BaseCommandButtonPresentationModel.ActionFireTrigger, BaseCommandButtonPresentationModel.BaseBuilder<MPM,PM, B>, BaseCommandButtonPresentationModel.Overlay, BaseCommandButtonPresentationModel.PopupAnchorBoundsProvider, BaseCommandButtonPresentationModel.PopupFireTrigger, BaseCommandButtonPresentationModel.SelectedStateHighlight, BaseCommandButtonPresentationModel.TextClick -
Field Summary
Fields inherited from class BaseCommandButtonPresentationModel
actionFireTrigger, actionKeyTip, actionRichTooltipPresentationModel, activeIconFilterStrategy, autoRepeatInitialInterval, autoRepeatSubsequentInterval, backgroundAppearanceStrategy, COMPACT_BUTTON_CONTENT_PADDING, contentPadding, DEFAULT_AUTO_REPEAT_INITIAL_INTERVAL_MS, DEFAULT_AUTO_REPEAT_SUBSEQUENT_INTERVAL_MS, DEFAULT_GAP_SCALE_FACTOR, DEFAULT_HORIZONTAL_ALIGNMENT, disabledIconFilterStrategy, enabledIconFilterStrategy, font, forceAllocateSpaceForIcon, hasAutoRepeatIntervalsSet, horizontalAlignment, horizontalGapScaleFactor, iconDimension, isAutoRepeatAction, isFocusable, popupAnchorBoundsProvider, popupFireTrigger, popupIcon, popupKeyTip, popupMenuPresentationModel, popupPlacementStrategy, popupRichTooltipPresentationModel, presentationState, selectedStateHighlight, showPopupIcon, sides, textClick, toDismissPopupsOnActivation, verticalGapScaleFactor, WIDE_BUTTON_CONTENT_PADDING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BaseCommandButtonPresentationModel
getActionFireTrigger, getActionKeyTip, getActionRichTooltipPresentationModel, getActiveIconFilterStrategy, getAutoRepeatInitialInterval, getAutoRepeatSubsequentInterval, getBackgroundAppearanceStrategy, getContentPadding, getDisabledIconFilterStrategy, getEnabledIconFilterStrategy, getFont, getHorizontalAlignment, getHorizontalGapScaleFactor, getIconDimension, getPopupAnchorBoundsProvider, getPopupFireTrigger, getPopupIcon, getPopupKeyTip, getPopupMenuPresentationModel, getPopupPlacementStrategy, getPopupRichTooltipPresentationModel, getPresentationState, getSelectedStateHighlight, getSides, getTextClick, getVerticalGapScaleFactor, hasAutoRepeatIntervalsSet, isAutoRepeatAction, isFocusable, isForceAllocateSpaceForIcon, isShowPopupIcon, isToDismissPopupsOnActivation, overlay
-
Constructor Details
-
CommandButtonPresentationModel
protected CommandButtonPresentationModel()
-
-
Method Details
-
overlayWith
public CommandButtonPresentationModel overlayWith(BaseCommandButtonPresentationModel.Overlay overlay) - Specified by:
overlayWithin classBaseCommandButtonPresentationModel<CommandPopupMenuPresentationModel, CommandButtonPresentationModel>
-
withDefaults
-
builder
-