3.2.4: 2013-12-06

net.sf.basedb.clients.web.extensions.list
Class ListColumnUtil

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.list.ListColumnUtil

public class ListColumnUtil
extends Object

Utility class for list column extension points.

Since:
3.2
Author:
Nicklas
Last modified
$Date$

Field Summary
static String EP_ALL
          ID for the list column extension point that appear on all list pages.
static String EP_ANNOTATABLE
          ID for the list column extension point that appear on all pages that list Annotatable items.
static String EP_OWNABLE
          ID for the list column extension point that appear on all pages that list Ownable items.
static String EP_PREFIX
          ID prefixes for list column extension point.
static String EP_REMOVABLE
          ID for the list column extension point that appear on all pages that list Removable items.
static String EP_SHAREABLE
          ID for the list column extension point that appear on all pages that list Shareable items.
static Item[] LIST_ITEMS
          An array containing all items that we are registering an extension point for.
 
Constructor Summary
ListColumnUtil()
           
 
Method Summary
private static void register(Registry registry, String id, String name)
           
static void registerExtensionPoints(Registry registry)
           
static ExtensionsInvoker<ListColumnAction> useExtensions(JspContext jspContext)
          Use list column 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

LIST_ITEMS

public static final Item[] LIST_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 + Item.name().toLowerCase().


EP_PREFIX

public static String EP_PREFIX
ID prefixes for list column extension point. The final ID is the prefix + Item.name().toLowerCase().


EP_ALL

public static String EP_ALL
ID for the list column extension point that appear on all list pages.


EP_OWNABLE

public static String EP_OWNABLE
ID for the list column extension point that appear on all pages that list Ownable items.


EP_SHAREABLE

public static String EP_SHAREABLE
ID for the list column extension point that appear on all pages that list Shareable items.


EP_REMOVABLE

public static String EP_REMOVABLE
ID for the list column extension point that appear on all pages that list Removable items.


EP_ANNOTATABLE

public static String EP_ANNOTATABLE
ID for the list column extension point that appear on all pages that list Annotatable items.

Constructor Detail

ListColumnUtil

public ListColumnUtil()
Method Detail

useExtensions

public static ExtensionsInvoker<ListColumnAction> useExtensions(JspContext jspContext)
Use list column 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)

3.2.4: 2013-12-06