org.openide.explorer 6.28.1

org.openide.explorer.view
Class NodePopupFactory

java.lang.Object
  extended by org.openide.explorer.view.NodePopupFactory

public class NodePopupFactory
extends Object

Allows customization of the popup menus of TableView and OutlineView. Just create a subclass of this class and override method createPopupMenu (and call setNodePopupFactory() on TableView or OutlineView).


Constructor Summary
NodePopupFactory()
          Creates a new instance of NodePopupFactory
 
Method Summary
 JPopupMenu createPopupMenu(int row, int column, Node[] selectedNodes, Component component)
          Creates a popup menu with entries from the selected nodes related to the given component (usually a ETable subclass).
 void setShowQuickFilter(boolean show)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePopupFactory

public NodePopupFactory()
Creates a new instance of NodePopupFactory

Method Detail

createPopupMenu

public JPopupMenu createPopupMenu(int row,
                                  int column,
                                  Node[] selectedNodes,
                                  Component component)
Creates a popup menu with entries from the selected nodes related to the given component (usually a ETable subclass). The popup is created for the table element in given column and row (column and row are in the view's coordinates (not the model's)).


setShowQuickFilter

public void setShowQuickFilter(boolean show)

org.openide.explorer 6.28.1

Built on August 25 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.