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 ofCommandButtonPresentationModel.Builder
to configure a new presentation, andCommandButtonPresentationModel.Builder.build()
to build a presentation.Note that you can use the same
CommandButtonPresentationModel
instance on multiple calls toCommand.project(CommandButtonPresentationModel)
. UseoverlayWith(Overlay)
to create a new presentation instance that overlays the presentation configuration with values set on the passedBaseCommandButtonPresentationModel.Overlay
object.- See Also:
Command
,CommandButtonProjection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandButtonPresentationModel.Builder
-
Nested classes/interfaces inherited from class org.pushingpixels.radiance.component.api.common.model.BaseCommandButtonPresentationModel
BaseCommandButtonPresentationModel.ActionFireTrigger, BaseCommandButtonPresentationModel.BaseBuilder<MPM extends BaseCommandPopupMenuPresentationModel,PM extends BaseCommandButtonPresentationModel<MPM,PM>,B extends BaseCommandButtonPresentationModel.BaseBuilder<MPM,PM,B>>, BaseCommandButtonPresentationModel.Overlay, BaseCommandButtonPresentationModel.PopupAnchorBoundsProvider, BaseCommandButtonPresentationModel.PopupFireTrigger, BaseCommandButtonPresentationModel.SelectedStateHighlight, BaseCommandButtonPresentationModel.TextClick
-
-
Field Summary
-
Fields inherited from class org.pushingpixels.radiance.component.api.common.model.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 Modifier Constructor Description protected
CommandButtonPresentationModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandButtonPresentationModel.Builder
builder()
CommandButtonPresentationModel
overlayWith(BaseCommandButtonPresentationModel.Overlay overlay)
static CommandButtonPresentationModel
withDefaults()
-
Methods inherited from class org.pushingpixels.radiance.component.api.common.model.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
-
-
-
-
Method Detail
-
overlayWith
public CommandButtonPresentationModel overlayWith(BaseCommandButtonPresentationModel.Overlay overlay)
- Specified by:
overlayWith
in classBaseCommandButtonPresentationModel<CommandPopupMenuPresentationModel,CommandButtonPresentationModel>
-
withDefaults
public static CommandButtonPresentationModel withDefaults()
-
builder
public static CommandButtonPresentationModel.Builder builder()
-
-