|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alveole.studio.web.managers.Struts2GenericViewManager
public class Struts2GenericViewManager
This class is a manager of struts2 views. It enables to specify any result value for actions.
| Field Summary | |
|---|---|
static java.lang.String |
viewID
This plugin ID. |
| Constructor Summary | |
|---|---|
Struts2GenericViewManager()
|
|
| Method Summary | ||
|---|---|---|
NodeView |
copyView(ProjectContext context,
NodeView source,
NodePackage nodePackage)
Perform deep copy... |
|
void |
createView(ProjectContext context,
NodePackage nodePackage)
Create a view for a static file target. |
|
void |
deleteView(NodeView view)
Delete a static file view. |
|
void |
editView(NodeView view,
boolean shortView)
Open view: either open simple properties (if short view), or open target file. |
|
|
getAdapter(NodeView view,
java.lang.Class<T> cls)
Get any implemented interface for this type of view. |
|
java.awt.Image |
getNodeShape(NodeView view)
Gets this node's representation shape. |
|
void |
serialize(NodeView view,
org.w3c.dom.Element specific)
Serialize this element. |
|
void |
unserialize(NodeView view,
org.w3c.dom.Element specific)
Unserialise this element. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String viewID
| Constructor Detail |
|---|
public Struts2GenericViewManager()
| Method Detail |
|---|
public void createView(ProjectContext context,
NodePackage nodePackage)
createView in interface ViewManagercontext - The context.nodePackage - The package in which the view is added.
public NodeView copyView(ProjectContext context,
NodeView source,
NodePackage nodePackage)
copyView in interface ViewManagercontext - The context.source - The source view.nodePackage - The target package.
public void deleteView(NodeView view)
deleteView in interface ViewManagerview - The view to delete.
public void editView(NodeView view,
boolean shortView)
editView in interface ViewManagerview - The view to be edited.shortView - Specifies if the view was selected by singleClick or dblClick.
public void serialize(NodeView view,
org.w3c.dom.Element specific)
serialize in interface ViewManagerview - The view to be serialized (specific parts only).specific - The DOM tag in which specific parts must be stored.
public void unserialize(NodeView view,
org.w3c.dom.Element specific)
unserialize in interface ViewManagerview - The view to be unserialized (specific parts only).specific - The DOM tag in which specific parts are stored.
public <T> T getAdapter(NodeView view,
java.lang.Class<T> cls)
getAdapter in interface ViewManagerview - The niew to be adapted.cls - The class to be mapped to.
public java.awt.Image getNodeShape(NodeView view)
getNodeShape in interface ViewManagerview - A node view.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||