|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewManager
This interface defines a plugin that may be used to manage views.
It is similar to ActionManager
but it is used to manage views only.
Views may be JSP files, static files, or any template file.
They are used to display action results.
Method Summary | ||
---|---|---|
NodeView |
copyView(ProjectContext context,
NodeView source,
NodePackage nodePackage)
Copies a view (do not open a user dialog to fill specific values). |
|
void |
createView(ProjectContext context,
NodePackage nodePackage)
Create a view (open a user dialog to fill specific values). |
|
void |
deleteView(NodeView view)
Delete this view. |
|
void |
editView(NodeView view,
boolean shortView)
Edit this view (display a user dialog). |
|
|
getAdapter(NodeView view,
java.lang.Class<T> cls)
Get adapter for thid node. |
|
java.awt.Image |
getNodeShape(NodeView view)
Get Image to be displayed for the given view. |
|
void |
serialize(NodeView view,
org.w3c.dom.Element specific)
Serialize this node's specific part. |
|
void |
unserialize(NodeView view,
org.w3c.dom.Element specific)
Unserialize this node. |
Method Detail |
---|
void createView(ProjectContext context, NodePackage nodePackage)
context
- The context.nodePackage
- The package in which the view is added.NodeView copyView(ProjectContext context, NodeView source, NodePackage nodePackage)
context
- The context.source
- The source view.nodePackage
- The target package.
void editView(NodeView view, boolean shortView)
view
- The view to be edited.shortView
- Specifies if the view was selected by singleClick or dblClick.void deleteView(NodeView view)
view
- The view to delete.void serialize(NodeView view, org.w3c.dom.Element specific)
view
- The view to be serialized (specific parts only).specific
- The DOM tag in which specific parts must be stored.void unserialize(NodeView view, org.w3c.dom.Element specific)
view
- The view to be unserialized (specific parts only).specific
- The DOM tag in which specific parts are stored.<T> T getAdapter(NodeView view, java.lang.Class<T> cls)
UrlManager
may be implemented
to add ability to be called by URL.
view
- The niew to be adapted.cls
- The class to be mapped to.
java.awt.Image getNodeShape(NodeView view)
view
- A node view.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |