ca.sqlpower.architect.swingui
Interface PopupMenuFactory

All Known Implementing Classes:
OLAPContextMenuFactory

public interface PopupMenuFactory

Simple interface that can be used in components that want to show a popup menu but don't know what items the menu should actually contain. For example, the PlayPen can be used for relational modeling or OLAP modeling, and it displays completely different popups in those situations because it's got different implementations of this factory in those two scenarios.


Method Summary
 javax.swing.JPopupMenu createPopupMenu(java.lang.Object sourceComponent)
          Creates a popup menu appropriate to this factory's settings and current state.
 

Method Detail

createPopupMenu

javax.swing.JPopupMenu createPopupMenu(java.lang.Object sourceComponent)
Creates a popup menu appropriate to this factory's settings and current state.

Parameters:
sourceComponent - Source Component which the popup menu is based on, it can be null, if that is the case, then a popup menu for the playpen is created
Returns:
The popup menu that should be displayed now. Will not be null.


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca