bibliothek.gui.dock.action.view
Interface ViewGenerator<D extends DockAction,A>
- Type Parameters:
D
- The type of DockAction converted by this generatorA
- The type of view created by this generator
- All Known Implementing Classes:
- BasicPanelPopupGenerator, BubblePanelPopupGenerator, EclipsePanelPopupGenerator, FlatPanelPopupGenerator, PanelDropDownGenerator, PanelMenuGenerator
public interface ViewGenerator<D extends DockAction,A>
A single entry for a ActionViewConverter
. A generator
can convert one or more types of DockAction
into one or more types
of ViewTarget
.
- Author:
- Benjamin Sigg
create
A create(ActionViewConverter converter,
D action,
Dockable dockable)
- Converts
action
into a view. The result of this method
can be null
if no view should be shown for the given action.
- Parameters:
converter
- the converter that invoked this methodaction
- the action to convertdockable
- the Dockable for which the action will be used
- Returns:
- the view of the action or
null
if nothing should
be displayed