D
- The type of DockAction converted by this generatorA
- The type of view created by this generatorpublic interface ViewGenerator<D extends DockAction,A>
ActionViewConverter
. A generator
can convert one or more types of DockAction
into one or more types
of ViewTarget
.Modifier and Type | Method and Description |
---|---|
A |
create(ActionViewConverter converter,
D action,
Dockable dockable)
Converts
action into a view. |
A create(ActionViewConverter converter, D action, Dockable dockable)
action
into a view. The result of this method
can be null
if no view should be shown for the given action.converter
- the converter that invoked this methodaction
- the action to convertdockable
- the Dockable for which the action will be usednull
if nothing should
be displayed