Class ComponentPresentationModel
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.ribbon.synapse.model.ComponentPresentationModel
-
- All Implemented Interfaces:
ImmutablePresentationModel
,PresentationModel
public class ComponentPresentationModel extends java.lang.Object implements ImmutablePresentationModel
Encapsulates presentation metadata for displaying arbitrary components in the ribbon. Use a new instance ofComponentPresentationModel.Builder
to configure a new presentation, andComponentPresentationModel.Builder.build()
to build a presentation.- See Also:
ComponentProjection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComponentPresentationModel.Builder
-
Field Summary
Fields Modifier and Type Field Description private RadianceThemingSlices.BackgroundAppearanceStrategy
backgroundAppearanceStrategy
private HorizontalAlignment
horizontalAlignment
private boolean
isResizingAware
private java.lang.String
keyTip
private RichTooltipPresentationModel
richTooltipPresentationModel
-
Constructor Summary
Constructors Modifier Constructor Description private
ComponentPresentationModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentPresentationModel.Builder
builder()
RadianceThemingSlices.BackgroundAppearanceStrategy
getBackgroundAppearanceStrategy()
HorizontalAlignment
getHorizontalAlignment()
java.lang.String
getKeyTip()
RichTooltipPresentationModel
getRichTooltipPresentationModel()
boolean
isResizingAware()
static ComponentPresentationModel
withDefaults()
-
-
-
Field Detail
-
backgroundAppearanceStrategy
private RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy
-
horizontalAlignment
private HorizontalAlignment horizontalAlignment
-
keyTip
private java.lang.String keyTip
-
isResizingAware
private boolean isResizingAware
-
richTooltipPresentationModel
private RichTooltipPresentationModel richTooltipPresentationModel
-
-
Method Detail
-
withDefaults
public static ComponentPresentationModel withDefaults()
-
builder
public static ComponentPresentationModel.Builder builder()
-
getBackgroundAppearanceStrategy
public RadianceThemingSlices.BackgroundAppearanceStrategy getBackgroundAppearanceStrategy()
-
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
-
getKeyTip
public java.lang.String getKeyTip()
-
isResizingAware
public boolean isResizingAware()
-
getRichTooltipPresentationModel
public RichTooltipPresentationModel getRichTooltipPresentationModel()
-
-