Class ToolbarUtil
java.lang.Object
net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil
Utility class for toolbar extension points.
- Version:
- 2.12
- Author:
- Nicklas
- Last modified
- $Date: 2019-02-26 11:10:15 +0100 (tis, 26 feb. 2019) $
-
Field Summary
Modifier and TypeFieldDescriptionstatic String[]
ID:s for the toolbar extension point that appear on all pages.static String[]
ID:s for the toolbar extension point that appear on all pages that displaysAnnotatable
items.static String[]
ID:s for the toolbar extension point that appear on all pages that displaysOwnable
items.static String[]
ID prefixes for toolbar extension point.static String[]
ID:s for the toolbar extension point that appear on all pages that displaysRemovable
items.static String[]
ID:s for the toolbar extension point that appear on all pages that displaysShareable
items.static final int
static final int
static final Item[]
An array containing all items that we are registering an extension point for. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
static void
registerExtensionPoints
(Registry registry) static ExtensionsInvoker<ButtonAction>
useExtensions
(JspContext jspContext) Use toolbar extensions for a given gui context.
-
Field Details
-
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
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:
-
ITEM
public static final int ITEM- See Also:
-
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
ID:s for the toolbar extension point that appear on all pages that displaysOwnable
items. EP_OWNABLE[0] = list pages; EP_OWNABLE[1] = single-item pages -
EP_SHAREABLE
ID:s for the toolbar extension point that appear on all pages that displaysShareable
items. EP_SHAREABLE[0] = list pages; EP_SHAREABLE[1] = single-item pages -
EP_REMOVABLE
ID:s for the toolbar extension point that appear on all pages that displaysRemovable
items. EP_REMOVABLE[0] = list pages; EP_REMOVABLE[1] = single-item pages -
EP_ANNOTATABLE
ID:s for the toolbar extension point that appear on all pages that displaysAnnotatable
items. EP_ANNOTATABLE[0] = list pages; EP_ANNOTATABLE[1] = single-item pages
-
-
Constructor Details
-
ToolbarUtil
public ToolbarUtil()
-
-
Method Details
-
useExtensions
Use toolbar 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
-
register
-