|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.extensions.edit.EditUtil
public class EditUtil
Utility class for handling edit-dialog related extensions. This class handler both the tab-control extension points in the edit-dialog and the on-save extension points when saving the changes.
Field Summary | |
---|---|
static Item[] |
EDIT_ITEMS
An array containing all items that we are registering extension points for. |
static String |
EP_PREFIX_EDIT
ID prefix for tabcontrol extension points on edit pages. |
static String |
EP_PREFIX_SAVE
ID prefix for tabcontrol extension points on edit pages. |
Constructor Summary | |
---|---|
EditUtil()
|
Method Summary | |
---|---|
private static void |
registerEditTab(Registry registry,
String id,
String name)
|
static void |
registerExtensionPoints(Registry registry)
Registers tabcontrol and on-save extension points with the given registry. |
private static void |
registerOnSave(Registry registry,
String id,
String name,
RethrowErrorHandlerFactory ehf)
|
static ExtensionsInvoker |
useEditExtensions(JspContext jspContext)
Use edit-dialog extensions for a given gui context. |
private static ExtensionsInvoker |
useExtensions(String prefix,
JspContext jspContext)
|
static ExtensionsInvoker |
useOnSaveExtensions(JspContext jspContext)
Use on-save 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 |
---|
public static final Item[] EDIT_ITEMS
public static String EP_PREFIX_EDIT
public static String EP_PREFIX_SAVE
Constructor Detail |
---|
public EditUtil()
Method Detail |
---|
public static ExtensionsInvoker useOnSaveExtensions(JspContext jspContext)
ExtensionsControl.useExtensions(JspContext, String...)
.
jspContext
- The current jsp context
public static ExtensionsInvoker useEditExtensions(JspContext jspContext)
ExtensionsControl.useExtensions(JspContext, String...)
.
jspContext
- The current jsp context
private static ExtensionsInvoker useExtensions(String prefix, JspContext jspContext)
public static void registerExtensionPoints(Registry registry)
private static void registerEditTab(Registry registry, String id, String name)
private static void registerOnSave(Registry registry, String id, String name, RethrowErrorHandlerFactory ehf)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |