Class ListColumnUtil
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description 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 listAnnotatable
items.static String
EP_OWNABLE
ID for the list column extension point that appear on all pages that listOwnable
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 listRemovable
items.static String
EP_SHAREABLE
ID for the list column extension point that appear on all pages that listShareable
items.static Item[]
LIST_ITEMS
An array containing all items that we are registering an extension point for.
-
Constructor Summary
Constructors Constructor Description ListColumnUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
register(Registry registry, String id, String name)
static void
registerExtensionPoints(Registry registry)
static <I> ExtensionsInvoker<ListColumnAction<I,?>>
useExtensions(JspContext jspContext)
Use list column extensions for a given gui context.
-
-
-
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 listOwnable
items.
-
EP_SHAREABLE
public static String EP_SHAREABLE
ID for the list column extension point that appear on all pages that listShareable
items.
-
EP_REMOVABLE
public static String EP_REMOVABLE
ID for the list column extension point that appear on all pages that listRemovable
items.
-
EP_ANNOTATABLE
public static String EP_ANNOTATABLE
ID for the list column extension point that appear on all pages that listAnnotatable
items.
-
-
Method Detail
-
useExtensions
public static <I> ExtensionsInvoker<ListColumnAction<I,?>> useExtensions(JspContext jspContext)
Use list column extensions for a given gui context. This method will assemble all specific and generic extension points and then callExtensionsControl.useExtensions(JspContext, String...)
.- Parameters:
jspContext
- The current jsp context- Returns:
- An invoker instance
-
registerExtensionPoints
public static void registerExtensionPoints(Registry registry)
-
-