2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.toolbar
Class ToolbarUtil

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil

public class ToolbarUtil
extends Object

Utility class for toolbar extension points.

Version:
2.12
Author:
Nicklas
Last modified
$Date: 2010-12-06 13:09:29 +0100 (Mon, 06 Dec 2010) $

Field Summary
static String[] EP_ALL
          ID:s for the toolbar extension point that appear on all pages.
static String[] EP_ANNOTATABLE
          ID:s for the toolbar extension point that appear on all pages that displays Annotatable items.
static String[] EP_OWNABLE
          ID:s for the toolbar extension point that appear on all pages that displays Ownable items.
static String[] EP_PREFIX
          ID prefixes for toolbar extension point.
static String[] EP_REMOVABLE
          ID:s for the toolbar extension point that appear on all pages that displays Removable items.
static String[] EP_SHAREABLE
          ID:s for the toolbar extension point that appear on all pages that displays Shareable items.
static int ITEM
           
static int LIST
           
static Item[] TOOLBAR_ITEMS
          An array containing all items that we are registering an extension point for.
 
Constructor Summary
ToolbarUtil()
           
 
Method Summary
private static void register(Registry registry, String id, String name)
           
static void registerExtensionPoints(Registry registry)
           
static ExtensionsInvoker useExtensions(JspContext jspContext)
          Use toolbar extensions for a given gui context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLBAR_ITEMS

public static final Item[] TOOLBAR_ITEMS
An array containing all items that we are registering an extension point for. The extension point id for an item is constructed as: EP_PREFIX[0/1] + Item.name().toLowerCase().


EP_PREFIX

public static String[] EP_PREFIX
ID prefixes for toolbar extension point. EP_PREFIX[0] = list pages; EP_PREFIX[1] = single-item pages


LIST

public static final int LIST
See Also:
Constant Field Values

ITEM

public static final int ITEM
See Also:
Constant Field Values

EP_ALL

public static String[] EP_ALL
ID:s for the toolbar extension point that appear on all pages. EP_ALL[0] = list pages; EP_ALL[1] = single-item pages


EP_OWNABLE

public static String[] EP_OWNABLE
ID:s for the toolbar extension point that appear on all pages that displays Ownable items. EP_OWNABLE[0] = list pages; EP_OWNABLE[1] = single-item pages


EP_SHAREABLE

public static String[] EP_SHAREABLE
ID:s for the toolbar extension point that appear on all pages that displays Shareable items. EP_SHAREABLE[0] = list pages; EP_SHAREABLE[1] = single-item pages


EP_REMOVABLE

public static String[] EP_REMOVABLE
ID:s for the toolbar extension point that appear on all pages that displays Removable items. EP_REMOVABLE[0] = list pages; EP_REMOVABLE[1] = single-item pages


EP_ANNOTATABLE

public static String[] EP_ANNOTATABLE
ID:s for the toolbar extension point that appear on all pages that displays Annotatable items. EP_ANNOTATABLE[0] = list pages; EP_ANNOTATABLE[1] = single-item pages

Constructor Detail

ToolbarUtil

public ToolbarUtil()
Method Detail

useExtensions

public static ExtensionsInvoker useExtensions(JspContext jspContext)
Use toolbar extensions for a given gui context. This method will assemble all specific and generic extension points and then call ExtensionsControl.useExtensions(JspContext, String...).

Parameters:
jspContext - The current jsp context
Returns:
An invoker instance

registerExtensionPoints

public static void registerExtensionPoints(Registry registry)

register

private static void register(Registry registry,
                             String id,
                             String name)

2.17.2: 2011-06-17