Class Projection<T extends javax.swing.JComponent,C extends ContentModel,P extends PresentationModel>
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.projection.BlackboxProjection<C,P>
-
- org.pushingpixels.flamingo.api.common.projection.Projection<T,C,P>
-
- Direct Known Subclasses:
AbstractPopupMenuProjection,CommandButtonProjection,CommandPanelProjection,CommandStripProjection,ComponentProjection
public abstract class Projection<T extends javax.swing.JComponent,C extends ContentModel,P extends PresentationModel> extends BlackboxProjection<C,P>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProjection.ComponentCustomizer<TC extends javax.swing.JComponent>This interface can be used as part ofsetComponentCustomizer(ComponentCustomizer)to customize the result ofbuildComponent()with additional functionality not exposed viaBlackboxProjection.getContentModel()orBlackboxProjection.getPresentationModel().static interfaceProjection.ComponentSupplier<TC extends javax.swing.JComponent,CC extends ContentModel,PC extends PresentationModel>This interface can be used as part ofsetComponentSupplier(ComponentSupplier)to return your own supplier ofProjection.ComponentSupplierto be used before theconfigureComponent(JComponent)call.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProjection(C contentModel, P presentationModel, Projection.ComponentSupplier<T,C,P> componentSupplier)
-
Method Summary
-
Methods inherited from class org.pushingpixels.flamingo.api.common.projection.BlackboxProjection
getCommandOverlays, getContentModel, getPresentationModel, setCommandOverlays
-
-
-
-
Method Detail
-
setComponentSupplier
public void setComponentSupplier(Projection.ComponentSupplier<T,C,P> componentSupplier)
-
setComponentCustomizer
public void setComponentCustomizer(Projection.ComponentCustomizer<T> componentCustomizer)
-
setCommandComponentCustomizers
public void setCommandComponentCustomizers(java.util.Map<Command,Projection.ComponentCustomizer<JCommandButton>> commandComponentCustomizers)
-
setCommandComponentSuppliers
public void setCommandComponentSuppliers(java.util.Map<Command,Projection.ComponentSupplier<JCommandButton,Command,CommandButtonPresentationModel>> commandComponentSuppliers)
-
getComponentSupplier
public final Projection.ComponentSupplier<T,C,P> getComponentSupplier()
-
getComponentCustomizer
public final Projection.ComponentCustomizer<T> getComponentCustomizer()
-
getCommandComponentSuppliers
public final java.util.Map<Command,Projection.ComponentSupplier<JCommandButton,Command,CommandButtonPresentationModel>> getCommandComponentSuppliers()
-
getCommandComponentCustomizers
public final java.util.Map<Command,Projection.ComponentCustomizer<JCommandButton>> getCommandComponentCustomizers()
-
buildComponent
public T buildComponent()
-
configureComponent
protected abstract void configureComponent(T component)
-
-