|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.tiles.servlet.action.ClientControl
This class provides facilities for controlling the client side post-processing after a server side custom action has been performed.
Constructor Summary | |
ClientControl(ActionContext context)
creates a new instance from the given context. |
Method Summary | |
String |
createJSONResponse()
constructs a JSON string from the current settings and returns it. |
String |
getCustomResponse()
returns the custom response to be sent to the client. |
EdgeList |
getEdges()
returns the set of edges, for which the corresponding ids will be sent to the client. |
Graph2D |
getGraph()
returns the graph. |
String |
getGraphName()
returns the graph name. |
int |
getHitTypes()
returns the event types mask for the client side hit test. |
NodeList |
getNodes()
returns the set of nodes, for which the corresponding ids will be sent to the client. |
javax.servlet.http.HttpSession |
getSession()
returns the session of the request that triggered the action. |
ViewPort |
getViewPort()
returns the view port to be sent to the client. |
boolean |
isRefreshCanvas()
returns whether the client canvas should be refreshed after the performing the server side action. |
boolean |
isUpdateHierarchy()
returns whether the client side hierarchy data should be updated after the performing the server side action. |
boolean |
isUpdateHitTest()
returns whether the client side hit test data should be updated after the performing the server side action |
boolean |
isUpdateSelection()
returns whether the client side selection should be updated after the performing the server side action. |
boolean |
isUpdateWorldBounds()
returns whether the client side world bounds should be updated after the performing the server side action. |
void |
setCustomResponse(String response)
sets the custom response to be sent to the client. |
void |
setEdges(EdgeList edges)
sets the set of edges, for which the corresponding ids will be sent to the client. |
void |
setGraph(Graph2D graph)
sets the graph. |
void |
setHitTypes(int hitTypes)
sets the event types mask for the client side hit test. |
void |
setNodes(NodeList nodes)
sets the set of nodes, for which the corresponding ids will be sent to the client. |
void |
setRefreshCanvas(boolean refreshCanvas)
sets whether the client canvas should be refreshed after the performing the server side action. |
void |
setSession(javax.servlet.http.HttpSession session)
sets the session. |
void |
setUpdateHierarchy(boolean updateHierarchy)
sets whether the client side hierarchy data should be updated after the performing the server side action. |
void |
setUpdateHitTest(boolean updateHitTest)
sets whether the client side hit test data should be updated after the performing the server side action. |
void |
setUpdateSelection(boolean updateSelection)
sets whether the client side selection should be updated after the performing the server side action. |
void |
setUpdateWorldBounds(boolean updateWorldBounds)
sets whether the client side world bounds should be updated after the performing the server side action. |
void |
setViewPort(ViewPort viewPort)
sets the view port to be sent to the client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientControl(ActionContext context)
context
- the context of an actionMethod Detail |
public javax.servlet.http.HttpSession getSession()
public void setSession(javax.servlet.http.HttpSession session)
session
- a sessionpublic String getGraphName()
null
public Graph2D getGraph()
public void setGraph(Graph2D graph)
graph
- a graphpublic boolean isUpdateHierarchy()
public void setUpdateHierarchy(boolean updateHierarchy)
updateHierarchy
- whether the client side hierarchy data should be updated after the performing the
server side actionpublic boolean isUpdateHitTest()
public void setUpdateHitTest(boolean updateHitTest)
updateHitTest
- whether the client side hit test data should be updated after the performing the
server side actionpublic int getHitTypes()
public void setHitTypes(int hitTypes)
hitTypes
- the event types mask for the client side hit testpublic boolean isUpdateWorldBounds()
public void setUpdateWorldBounds(boolean updateWorldBounds)
updateWorldBounds
- whether the client side world bounds should be updated after the performing the
server side actionpublic boolean isUpdateSelection()
public void setUpdateSelection(boolean updateSelection)
updateSelection
- whether the client side selection should be updated after the performing the
server side actionpublic boolean isRefreshCanvas()
public void setRefreshCanvas(boolean refreshCanvas)
refreshCanvas
- whether the client canvas should be refreshed after the performing the
server side actionpublic EdgeList getEdges()
public void setEdges(EdgeList edges)
edges
- the set of edges, for which the corresponding ids will be sent to the clientpublic NodeList getNodes()
public void setNodes(NodeList nodes)
nodes
- the set of nodes, for which the corresponding ids will be sent to the clientpublic String getCustomResponse()
public void setCustomResponse(String response)
response
- the custom response to be sent to the clientpublic ViewPort getViewPort()
public void setViewPort(ViewPort viewPort)
viewPort
- the view port to be sent to the client.public String createJSONResponse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |