bibliothek.gui.dock.action.view
Interface ViewGenerator<D extends DockAction,A>

Type Parameters:
D - The type of DockAction converted by this generator
A - 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

Method Summary
 A create(ActionViewConverter converter, D action, Dockable dockable)
          Converts action into a view.
 

Method Detail

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 method
action - the action to convert
dockable - the Dockable for which the action will be used
Returns:
the view of the action or null if nothing should be displayed