|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alveole.studio.web.managers.JspGenericViewManager
public class JspGenericViewManager
This class is a manager of basic JSP views.
Field Summary | |
---|---|
static java.lang.String |
viewID
This view ID. |
static java.lang.String |
xmlns
XMLNS. |
Constructor Summary | |
---|---|
JspGenericViewManager()
|
Method Summary | ||
---|---|---|
NodeView |
copyView(ProjectContext context,
NodeView source,
NodePackage nodePackage)
Perform copy... |
|
void |
createView(ProjectContext context,
NodePackage nodePackage)
Create a view of type JSP. |
|
void |
deleteView(NodeView view)
Delete a JSP view. |
|
void |
editView(NodeView view,
boolean shortView)
Open JSP view: either open simple properties (if short view), or open JSP target file. |
|
|
getAdapter(NodeView view,
java.lang.Class<T> cls)
Adapts this view to other interfaces. |
|
java.awt.Image |
getNodeShape(NodeView view)
Gets this node's representation shape. |
|
static boolean |
openAndCreateJsp(ProjectContext context,
NodeView view)
Open a new JSP wizard. |
|
void |
serialize(NodeView view,
org.w3c.dom.Element specific)
Save JSP view specific part. |
|
void |
unserialize(NodeView view,
org.w3c.dom.Element specific)
Load JSP view specifiv part. |
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
public static final java.lang.String xmlns
Constructor Detail |
---|
public JspGenericViewManager()
Method Detail |
---|
public void createView(ProjectContext context, NodePackage nodePackage)
createView
in interface ViewManager
context
- The current context.nodePackage
- The target package.public NodeView copyView(ProjectContext context, NodeView source, NodePackage nodePackage)
copyView
in interface ViewManager
context
- The project context.source
- The node to copy.nodePackage
- The target package.
public void deleteView(NodeView view)
deleteView
in interface ViewManager
view
- The view to delete.public static boolean openAndCreateJsp(ProjectContext context, NodeView view)
context
- The project context.view
- The JSP view.
public void editView(NodeView view, boolean shortView)
editView
in interface ViewManager
view
- the view to edit.shortView
- The view mode.public void serialize(NodeView view, org.w3c.dom.Element specific)
serialize
in interface ViewManager
view
- The node.specific
- The target XML tag.public void unserialize(NodeView view, org.w3c.dom.Element specific)
unserialize
in interface ViewManager
view
- The instance to fill.specific
- The tag containing specific properties.public <T> T getAdapter(NodeView view, java.lang.Class<T> cls)
UrlManager
is adapted here.
getAdapter
in interface ViewManager
view
- The view to adapt.cls
- The target class.
public java.awt.Image getNodeShape(NodeView view)
getNodeShape
in interface ViewManager
view
- A node view.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |