bibliothek.gui.dock.common.intern.action.panel
Class EclipsePanelPopupGenerator

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.action.panel.EclipsePanelPopupGenerator
All Implemented Interfaces:
ViewGenerator<CPanelPopup.PanelPopup,BasicTitleViewItem<JComponent>>

public class EclipsePanelPopupGenerator
extends Object
implements ViewGenerator<CPanelPopup.PanelPopup,BasicTitleViewItem<JComponent>>

Basic handler for creating a button for a CPanelPopup.

Author:
Benjamin Sigg

Constructor Summary
EclipsePanelPopupGenerator()
           
 
Method Summary
 BasicTitleViewItem<JComponent> create(ActionViewConverter converter, CPanelPopup.PanelPopup action, Dockable dockable)
          Converts action into a view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipsePanelPopupGenerator

public EclipsePanelPopupGenerator()
Method Detail

create

public BasicTitleViewItem<JComponent> create(ActionViewConverter converter,
                                             CPanelPopup.PanelPopup action,
                                             Dockable dockable)
Description copied from interface: ViewGenerator
Converts action into a view. The result of this method can be null if no view should be shown for the given action.

Specified by:
create in interface ViewGenerator<CPanelPopup.PanelPopup,BasicTitleViewItem<JComponent>>
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