Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

org.openquark.gems.client.browser
Class BrowserTreeActions

java.lang.Object
  extended by org.openquark.gems.client.browser.BrowserTreeActions

public class BrowserTreeActions
extends Object

A helper class to provide some default actions for a browser tree.

Author:
Edward Lam

Method Summary
 void addDefaultMenuItems(JPopupMenu targetMenu, BrowserTreeNode selectedNode)
          Add supported built-in popup menu items for actions in this object.
 void addDisplayMenuItems(JPopupMenu targetMenu)
          Add the built-in popup menu items for changing the gem browser display settings.
 void addMetadataEditMenuItems(JPopupMenu targetMenu, BrowserTreeNode selectedNode)
          Add menu items for metadata viewing and editing.
 void addSortCategorizeMenuItems(JPopupMenu targetMenu, BrowserTreeNode selectedNode)
          Add the built-in popup menu items for sorting and categorization.
 JPanel getBrowserTreeButtonPanel()
           
 JPopupMenu getDefaultBrowserTreePopup(TreePath selectionPath)
          Return a new default popup for the browser tree The popup will contain applicable actions in this object, appropriately activated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBrowserTreeButtonPanel

public JPanel getBrowserTreeButtonPanel()
Returns:
the JPanel with the buttons to modify the browser tree.

getDefaultBrowserTreePopup

public JPopupMenu getDefaultBrowserTreePopup(TreePath selectionPath)
Return a new default popup for the browser tree The popup will contain applicable actions in this object, appropriately activated.

Parameters:
selectionPath - the selection path on which the popup was invoked.
Returns:
JPopupMenu the default popup menu for the browser tree.

addDefaultMenuItems

public void addDefaultMenuItems(JPopupMenu targetMenu,
                                BrowserTreeNode selectedNode)
Add supported built-in popup menu items for actions in this object. Menu items with icons will have their icons left-justified to the menu border.

Parameters:
targetMenu - the popup menu to which to add the items.
selectedNode - the node for which the items should be added (if any)

addDisplayMenuItems

public void addDisplayMenuItems(JPopupMenu targetMenu)
Add the built-in popup menu items for changing the gem browser display settings.

Parameters:
targetMenu - the popup menu to which to add the items.

addSortCategorizeMenuItems

public void addSortCategorizeMenuItems(JPopupMenu targetMenu,
                                       BrowserTreeNode selectedNode)
Add the built-in popup menu items for sorting and categorization.

Parameters:
targetMenu - the popup menu to which to add the items.
selectedNode - the node for which the items should be added (if any)

addMetadataEditMenuItems

public void addMetadataEditMenuItems(JPopupMenu targetMenu,
                                     BrowserTreeNode selectedNode)
Add menu items for metadata viewing and editing.

Parameters:
targetMenu - the popup menu to which to add the items.
selectedNode - the node for which the items should be added (if any)

Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.