|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alveole.studio.web.managers.Struts2ActionActionManager
public class Struts2ActionActionManager
This is the default implementation of action manager: a Struts2 action manager.
Field Summary | |
---|---|
static java.lang.String |
ID
This plugin ID. |
Constructor Summary | |
---|---|
Struts2ActionActionManager()
|
Method Summary | ||
---|---|---|
NodeAction |
copyAction(ProjectContext context,
NodeAction source,
NodePackage np)
Create a copy of the action. |
|
void |
createAction(ProjectContext context,
NodePackage np)
Create a new node action, conforming to this driver. |
|
void |
deleteAction(NodeAction action)
Delete this node. |
|
void |
editAction(NodeAction action,
boolean shortView)
Open GUI for edition. |
|
static NodeAction |
getActionByPath(NodePackage np,
java.lang.String path)
Get an action by its path. |
|
|
getAdapter(NodeAction action,
java.lang.Class<T> target)
Get an adapter of the given class. |
|
java.awt.Image |
getNodeShape(NodeAction action)
Gets this node's representation shape. |
|
static void |
gotoActionMethod(ProjectContext context,
NodeAction action2,
Struts2CustomObject co,
java.lang.String className,
java.lang.String methodName,
boolean fireChangeEvent)
Opens Action Java Source file and focus on action method. |
|
void |
serialize(NodeAction action,
org.w3c.dom.Element specific)
Write data to XML file. |
|
void |
unserialize(NodeAction action,
org.w3c.dom.Element specific)
Load data from XML and populate this object. |
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 ID
Constructor Detail |
---|
public Struts2ActionActionManager()
Method Detail |
---|
public void createAction(ProjectContext context, NodePackage np)
createAction
in interface ActionManager
context
- The project context.np
- The package in which this node must be added.public static NodeAction getActionByPath(NodePackage np, java.lang.String path)
public NodeAction copyAction(ProjectContext context, NodeAction source, NodePackage np)
copyAction
in interface ActionManager
context
- The current project.source
- The original node.np
- The target package in which copied node must be dropped.
public void deleteAction(NodeAction action)
deleteAction
in interface ActionManager
action
- The node to delete.public static void gotoActionMethod(ProjectContext context, NodeAction action2, Struts2CustomObject co, java.lang.String className, java.lang.String methodName, boolean fireChangeEvent)
context
- The project context.action2
- The action to be edited.co
- The struts2 custom object (or a working copy).className
- The fully qualified name of the class to edit.methodName
- The name of the method to edit, or null if not defined.fireChangeEvent
- Specifies if a change event must be fired after class creation.public void editAction(NodeAction action, boolean shortView)
editAction
in interface ActionManager
action
- The node to be edited.shortView
- Specifies if the node was selected by single click or dbl-click.public void serialize(NodeAction action, org.w3c.dom.Element specific)
serialize
in interface ActionManager
action
- The node to serialize (serialize only specific parts of this node).specific
- A DOM tag that is used to store all specific data.public void unserialize(NodeAction action, org.w3c.dom.Element specific)
unserialize
in interface ActionManager
action
- The action to fill with specific data.specific
- The DOM node that contains all specific stored properties.public <T> T getAdapter(NodeAction action, java.lang.Class<T> target)
getAdapter
in interface ActionManager
action
- The node to be adapted.target
- A target class.
public java.awt.Image getNodeShape(NodeAction action)
getNodeShape
in interface ActionManager
action
- The node action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |