Class BaseCommandButtonProjection<M extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,P extends BaseCommandButtonPresentationModel<MPM,P>,MPM extends BaseCommandPopupMenuPresentationModel>
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.projection.BlackboxProjection<C,P>
-
- org.pushingpixels.radiance.component.api.common.projection.BaseProjection<JCommandButton,M,P>
-
- org.pushingpixels.radiance.component.api.common.projection.BaseCommandButtonProjection<M,MCM,P,MPM>
-
- Direct Known Subclasses:
BasicRibbonBandUI.BandCollapseCommandButtonProjection
,ColorSelectorCommandButtonProjection
,CommandButtonProjection
,RibbonApplicationMenuCommandButtonProjection
public abstract class BaseCommandButtonProjection<M extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,P extends BaseCommandButtonPresentationModel<MPM,P>,MPM extends BaseCommandPopupMenuPresentationModel> extends BaseProjection<JCommandButton,M,P>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BaseCommandButtonProjection.CommandButtonComponentSupplier<TC extends JCommandButton,M extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,P extends BaseCommandButtonPresentationModel<MPM,P>,MPM extends BaseCommandPopupMenuPresentationModel>
This interface can be used as part ofsetComponentSupplier(CommandButtonComponentSupplier)
to return your own supplier ofBaseCommandButtonProjection.CommandButtonComponentSupplier
to be used before the#configureComponent(JCommandButton)
call.
-
Field Summary
Fields Modifier and Type Field Description private BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M,MCM,P,MPM>
componentSupplier
-
Constructor Summary
Constructors Constructor Description BaseCommandButtonProjection(M command, P commandPresentation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JCommandButton
buildBaseComponent()
BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M,MCM,P,MPM>
getComponentSupplier()
abstract AbstractPopupMenuPanelProjection<? extends AbstractPopupMenuPanel,MCM,MPM>
getPopupMenuPanelProjection()
abstract BaseCommandButtonProjection<M,MCM,P,MPM>
reproject(P newCommandPresentation)
BaseCommandButtonProjection<M,MCM,P,MPM>
reprojectWithOverlay(BaseCommandButtonPresentationModel.Overlay overlay)
void
setComponentSupplier(BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M,MCM,P,MPM> componentSupplier)
-
Methods inherited from class org.pushingpixels.radiance.component.api.common.projection.BaseProjection
buildComponent, configureComponent
-
Methods inherited from class org.pushingpixels.radiance.component.api.common.projection.BlackboxProjection
getCommandOverlays, getContentModel, getPresentationModel, setCommandOverlays
-
-
-
-
Field Detail
-
componentSupplier
private BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M extends BaseCommand<MCM>,MCM extends BaseCommandMenuContentModel,P extends BaseCommandButtonPresentationModel<MPM,P>,MPM extends BaseCommandPopupMenuPresentationModel> componentSupplier
-
-
Method Detail
-
setComponentSupplier
public void setComponentSupplier(BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M,MCM,P,MPM> componentSupplier)
-
getComponentSupplier
public BaseCommandButtonProjection.CommandButtonComponentSupplier<JCommandButton,M,MCM,P,MPM> getComponentSupplier()
-
getPopupMenuPanelProjection
public abstract AbstractPopupMenuPanelProjection<? extends AbstractPopupMenuPanel,MCM,MPM> getPopupMenuPanelProjection()
-
reproject
public abstract BaseCommandButtonProjection<M,MCM,P,MPM> reproject(P newCommandPresentation)
-
reprojectWithOverlay
public BaseCommandButtonProjection<M,MCM,P,MPM> reprojectWithOverlay(BaseCommandButtonPresentationModel.Overlay overlay)
-
buildBaseComponent
public JCommandButton buildBaseComponent()
- Specified by:
buildBaseComponent
in classBaseProjection<JCommandButton,M extends BaseCommand<MCM>,P extends BaseCommandButtonPresentationModel<MPM,P>>
-
-