|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.TocModel
com.esri.adf.web.data.results.WebResultsToc
public class WebResultsToc
Defines the result view of a web application:
<managed-bean> <managed-bean-name>resultsView</managed-bean-name> <managed-bean-class>com.esri.adf.web.data.results.WebResultsToc</managed-bean-class> <managed-bean-scope>none</managed-bean-scope> </managed-bean>
Field Summary | |
---|---|
protected static String |
TOC_MODEL_TYPE
|
Fields inherited from class com.esri.adf.web.data.TocModel |
---|
init, showContextMenu, visible |
Fields inherited from interface com.esri.adf.web.data.results.WebResultsObserver |
---|
ALL_RESULTS_CLEARED, RESULT_ADDED, RESULT_MODIFIED, RESULT_REMOVED, RESULT_REPLACED |
Constructor Summary | |
---|---|
WebResultsToc()
Instantiates an empty object of WebResultsToc. |
Method Summary | |
---|---|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
WebResults |
getResults()
Gets the result associated with this TOC. |
Collection<TocNode> |
getRootNodes()
|
ResultNode |
getSelectedResult()
Gets the result node that has been selected. |
String |
getTocModelType()
|
void |
init(WebContext context)
The initialization chores of attributes of a WebContext should be performed in this method. |
boolean |
isShowOpenResultLink()
|
void |
reload()
Reloads the whole TOC tree from the associated result. |
void |
setResults(WebResults results)
Sets the result associated with this TOC. |
void |
setSelectedResult(ResultNode selectedResult)
Sets the result node that has been selected. |
void |
webResultsUpdate(WebResults webResults,
int updateType,
ResultNode affectedNode,
Object args)
Add, remove, replace or modify the given result node. |
Methods inherited from class com.esri.adf.web.data.TocModel |
---|
addTimer, findNode, findNode, getTimers, isInit, isShowContextMenu, isVisible, removeNode, setInit, setShowContextMenu, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String TOC_MODEL_TYPE
Constructor Detail |
---|
public WebResultsToc()
Method Detail |
---|
public void init(WebContext context)
WebContextInitialize
The initialization chores of attributes of a WebContext
should be performed in this method.
Typically this method is called by the WebContext
when the context itself is initialized. It is important
to note that this method is again called by the context when a GISResource
is dynamically added to or
removed from the context. Classes that implement this method should keep this in mind and adapt the method to react
to the callbacks in these circumstances as well.
A WebContext
attribute is usable only after this method has been called.
init
in interface WebContextInitialize
context
- WebContext
- the WebContextWebContext.init(WebContext)
,
WebContext.addResource(String, GISResource, int)
,
WebContext.removeResource(GISResource)
public void destroy()
WebContextInitialize
The cleaup chores (such as releasing held resources) of attributes of a WebContext
should be performed in
this method.
Typically this method is called by the WebContext
when the context itself is destroyed.
The WebContext
attribute is unusable after this method has been called.
destroy
in interface WebContextInitialize
WebContext.destroy()
public String getTocModelType()
getTocModelType
in class TocModel
public Collection<TocNode> getRootNodes()
getRootNodes
in class TocModel
public WebResults getResults()
public void setResults(WebResults results)
public ResultNode getSelectedResult()
public void setSelectedResult(ResultNode selectedResult)
selectedResult
- the node reference.public void reload()
public void webResultsUpdate(WebResults webResults, int updateType, ResultNode affectedNode, Object args)
webResultsUpdate
in interface WebResultsObserver
updateType
- the update type e.g. WebResultsObserver.RESULT_ADDED
affectedNode
- the node to be add, remove, replace or modify.args
- a ResultNode to be replaced (only for replace type).webResults
- the WebResults
object that was updatedpublic boolean isShowOpenResultLink()
isShowOpenResultLink
in class TocModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |