Interface Projection.ComponentSupplier<TC extends javax.swing.JComponent,CC extends ContentModel,PC extends PresentationModel>
-
- Enclosing class:
- Projection<T extends javax.swing.JComponent,C extends ContentModel,P extends PresentationModel>
- 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 Projection.ComponentSupplier<TC extends javax.swing.JComponent,CC extends ContentModel,PC extends PresentationModel>
This interface can be used as part ofProjection.setComponentSupplier(ComponentSupplier)
to return your own supplier ofProjection.ComponentSupplier
to be used before theBaseProjection.configureComponent(JComponent)
call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.function.Function<Projection<TC,CC,PC>,TC>
getComponentSupplier(Projection<TC,CC,PC> projection)
-
-
-
Method Detail
-
getComponentSupplier
java.util.function.Function<Projection<TC,CC,PC>,TC> getComponentSupplier(Projection<TC,CC,PC> 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
JComponent
subclass that represents the Swing component to be used to configure the projected component inBaseProjection.configureComponent(JComponent)
call.
-
-