ca.sqlpower.architect.swingui.olap
Class OLAPContextMenuFactory

java.lang.Object
  extended by ca.sqlpower.architect.swingui.olap.OLAPContextMenuFactory
All Implemented Interfaces:
PopupMenuFactory

public class OLAPContextMenuFactory
extends java.lang.Object
implements PopupMenuFactory

Creates context menus for the tree or the playpen. (Or anyone else who wants one).


Constructor Summary
OLAPContextMenuFactory(ArchitectSwingSession session, OLAPEditSession oSession)
           
 
Method Summary
 javax.swing.JPopupMenu createPopupMenu(java.lang.Object sourceComponent)
          Creates a context menu for the given olap object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OLAPContextMenuFactory

public OLAPContextMenuFactory(ArchitectSwingSession session,
                              OLAPEditSession oSession)
Method Detail

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu(java.lang.Object sourceComponent)
Creates a context menu for the given olap object. This menu should be appropriate for the tree or the PlayPen.

Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
sourceComponent - The source component which the popup menu for, if the given source component is null, he a popup for the playpen is created instead
Returns:
The popup menu for the given source


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