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
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)
static <I> ExtensionsInvoker<ListColumnAction<I,?>>
useExtensions(JspContext jspContext, ExtensionsFilter filter)
Use list column extensions for a given gui context.
-
Field Details
-
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
ID prefixes for list column extension point. The final ID is the prefix + Item.name().toLowerCase(). -
EP_ALL
ID for the list column extension point that appear on all list pages. -
EP_OWNABLE
ID for the list column extension point that appear on all pages that listOwnable
items. -
EP_SHAREABLE
ID for the list column extension point that appear on all pages that listShareable
items. -
EP_REMOVABLE
ID for the list column extension point that appear on all pages that listRemovable
items. -
EP_ANNOTATABLE
ID for the list column extension point that appear on all pages that listAnnotatable
items.
-
-
Constructor Details
-
ListColumnUtil
public ListColumnUtil()
-
-
Method Details
-
useExtensions
-
useExtensions
public static <I> ExtensionsInvoker<ListColumnAction<I,?>> useExtensions(JspContext jspContext, ExtensionsFilter filter)Use list column extensions for a given gui context. This method will assemble all specific and generic extension points and then callExtensionsControl.useExtensions(JspContext, ExtensionsFilter, String...)
orExtensionsControl.useExtensions(JspContext, String...)
(if the filter is null)- Parameters:
jspContext
- The current jsp contextfilter
- Optional filter for the extensions- Returns:
- An invoker instance
- Since:
- 3.19.4
-
registerExtensionPoints
-
register
-