|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alveole.studio.web.managers.StaticFileGenericViewManager
public class StaticFileGenericViewManager
This class is a manager of basic static files views. Note: this module may also be used for accessing any relative URL resource.
Field Summary | |
---|---|
static java.lang.String |
viewID
This plugin ID. |
static java.lang.String |
xmlns
This plugin xmlns. |
Constructor Summary | |
---|---|
StaticFileGenericViewManager()
|
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. |
|
static boolean |
openFile(ProjectContext context,
NodeView view)
Open a new static file wizard. |
|
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
public static final java.lang.String xmlns
Constructor Detail |
---|
public StaticFileGenericViewManager()
Method Detail |
---|
public void createView(ProjectContext context, NodePackage nodePackage)
createView
in interface ViewManager
context
- The context.nodePackage
- The package in which the view is added.public NodeView copyView(ProjectContext context, NodeView source, NodePackage nodePackage)
copyView
in interface ViewManager
context
- The context.source
- The source view.nodePackage
- The target package.
public void deleteView(NodeView view)
deleteView
in interface ViewManager
view
- The view to delete.public static boolean openFile(ProjectContext context, NodeView view)
context
- The project context.view
- The static file view.public void editView(NodeView view, boolean shortView)
editView
in interface ViewManager
view
- 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 ViewManager
view
- 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 ViewManager
view
- 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 ViewManager
view
- The niew to be adapted.cls
- The class to be mapped to.
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 |