Interface BaseCommandButtonProjection.CommandButtonComponentSupplier<TC extends JCommandButton, M extends BaseCommand<MCM>, MCM extends BaseCommandMenuContentModel, P extends BaseCommandButtonPresentationModel<MPM,P> , MPM extends BaseCommandPopupMenuPresentationModel>
- Enclosing class:
BaseCommandButtonProjection<M extends BaseCommand<MCM>, MCM extends BaseCommandMenuContentModel, P extends BaseCommandButtonPresentationModel<MPM,P>, MPM extends BaseCommandPopupMenuPresentationModel>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public 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 of
call.
BaseCommandButtonProjection.setComponentSupplier(CommandButtonComponentSupplier) to return your own supplier of
TC to be used before the
invalid reference
#configureComponent(JCommandButton)
-
Method Summary
Modifier and TypeMethodDescriptiongetComponentSupplier(BaseCommandButtonProjection<M, MCM, P, MPM> projection)
-
Method Details
-
getComponentSupplier
Function<BaseCommandButtonProjection<M,MCM, getComponentSupplierP, MPM>, TC> (BaseCommandButtonProjection<M, MCM, P, MPM> projection) - Parameters:
projection- Information on the projection in case this creator has logic that depends on specific field(s) of the content model and / or the presentation model.- Returns:
- A supplier of the target component. It should be a reference to a function that
gets one parameter - projection, and returns an instance of the matching
JCommandButtonsubclass that represents the Swing component to be used to configure the projected component incall.invalid reference
#configureComponent(JCommandButton)
-