AbstractPopupMenuProjection, CommandButtonProjection, CommandPanelProjection, CommandStripProjection, ComponentProjectionpublic abstract class Projection<T extends javax.swing.JComponent,C extends ContentModel,P extends PresentationModel> extends BlackboxProjection<C,P>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
Projection.ComponentCustomizer<TC extends javax.swing.JComponent> |
This interface can be used as part of
setComponentCustomizer(ComponentCustomizer) to customize the result of
buildComponent() with additional functionality not exposed via
BlackboxProjection.getContentModel() or BlackboxProjection.getPresentationModel(). |
static interface |
Projection.ComponentSupplier<TC extends javax.swing.JComponent,CC extends ContentModel,PC extends PresentationModel> |
This interface can be used as part of
setComponentSupplier(ComponentSupplier)
to return your own supplier of Projection.ComponentSupplier to be used before the
configureComponent(JComponent) call. |
| Modifier | Constructor | Description |
|---|---|---|
protected |
Projection(C contentModel,
P presentationModel,
Projection.ComponentSupplier<T,C,P> componentSupplier) |
getCommandOverlays, getContentModel, getPresentationModel, setCommandOverlayspublic void setComponentSupplier(Projection.ComponentSupplier<T,C,P> componentSupplier)
public void setComponentCustomizer(Projection.ComponentCustomizer<T> componentCustomizer)
public void setCommandComponentCustomizers(java.util.Map<Command,Projection.ComponentCustomizer<AbstractCommandButton>> commandComponentCustomizers)
public void setCommandComponentSuppliers(java.util.Map<Command,Projection.ComponentSupplier<AbstractCommandButton,Command,CommandButtonPresentationModel>> commandComponentSuppliers)
public final Projection.ComponentSupplier<T,C,P> getComponentSupplier()
public final Projection.ComponentCustomizer<T> getComponentCustomizer()
public final java.util.Map<Command,Projection.ComponentSupplier<AbstractCommandButton,Command,CommandButtonPresentationModel>> getCommandComponentSuppliers()
public final java.util.Map<Command,Projection.ComponentCustomizer<AbstractCommandButton>> getCommandComponentCustomizers()
public T buildComponent()
protected abstract void configureComponent(T component)