Interface BaseCommandButtonProjection.CommandButtonComponentSupplier<TC extends JCommandButton,​M extends BaseCommand<MCM>,​MCM extends BaseCommandMenuContentModel,​P extends BaseCommandButtonPresentationModel<MPM,​P>,​MPM extends BaseCommandPopupMenuPresentationModel>

    • Method Detail

      • getComponentSupplier

        java.util.function.Function<BaseCommandButtonProjection<M,​MCM,​P,​MPM>,​TC> getComponentSupplier​(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 JCommandButton subclass that represents the Swing component to be used to configure the projected component in #configureComponent(JCommandButton) call.