|
|||||||||
| 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.WebToc
public class WebToc
The WebToc represents the business object that works with the TocControl
using the TocFunctionality objects configured with the GISResources.
| Field Summary | |
|---|---|
protected WebContext |
context
The associated WebMap object for this WebToc. |
protected java.lang.Class |
customReourceContentClass
|
protected java.lang.String |
customResourceContentClassName
The name of the custom class (which should be a sub-class of TocResourceContent) to use for the resource nodes |
protected int |
expandLevel
The number of levels to expand by default. |
protected java.util.Hashtable<TocFunctionality,TocNode> |
funcsNodes
|
protected java.lang.String |
imageFormat
The format of the TOC images. |
protected int |
nextResourceNodeIndex
|
protected java.util.ArrayList<TocNode> |
resourceNodes
|
protected static java.lang.String |
TOC_MODEL_TYPE
|
protected java.util.ArrayList<TocFunctionality> |
tocFuncs
|
protected boolean |
useMIMEData
Indicates whether MIME data is used. |
| Fields inherited from class com.esri.adf.web.data.TocModel |
|---|
init, showContextMenu, visible |
| Constructor Summary | |
|---|---|
WebToc()
Initializes the WebToc. |
|
| Method Summary | |
|---|---|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
java.lang.String |
getCustomResourceContentClassName()
Returns the name of the custom class (which should be a sub-class of TocREsourceContent) to use for the resource nodes |
int |
getExpandLevel()
Returns the number of levels to be expanded by default. |
java.lang.String |
getImageFormat()
Returns the format of the TOC images. |
java.util.Collection<TocNode> |
getRootNodes()
Returns a collection of the top level TocNodes of the TOC. |
java.util.List<TocFunctionality> |
getTocFunctionalities()
|
java.lang.String |
getTocModelType()
|
WebContext |
getWebContext()
|
void |
init(TocFunctionality tocFunc)
Initializes the WebToc for the specified toc functionality. |
void |
init(WebContext context)
Initializes the WebToc by associating itself with this context. |
boolean |
isUseMIMEData()
Returns an indicator whether the control returns MIME data or not. |
void |
setCustomResourceContentClassName(java.lang.String customResourceContentClassName)
Sets the name of the custom class (which should be a sub-class of TocResourceContent) to use for the resource nodes |
void |
setExpandLevel(int expandLevel)
Sets the number of levels to be expanded by default. |
void |
setImageFormat(java.lang.String imageFormat)
Sets the format of the TOC images. |
void |
setUseMIMEData(boolean useMIMEData)
Sets whether the control returns MIME data or not. |
| Methods inherited from class com.esri.adf.web.data.TocModel |
|---|
findNode, isInit, isShowContextMenu, isShowOpenResultLink, isVisible, setInit, setShowContextMenu, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WebContext context
WebMap object for this WebToc.
protected java.lang.String imageFormat
protected static final java.lang.String TOC_MODEL_TYPE
protected boolean useMIMEData
protected int expandLevel
protected java.util.ArrayList<TocNode> resourceNodes
protected java.util.ArrayList<TocFunctionality> tocFuncs
protected java.util.Hashtable<TocFunctionality,TocNode> funcsNodes
protected java.lang.String customResourceContentClassName
protected java.lang.Class customReourceContentClass
protected int nextResourceNodeIndex
| Constructor Detail |
|---|
public WebToc()
| Method Detail |
|---|
public java.lang.String getTocModelType()
getTocModelType in class TocModelpublic void init(WebContext context)
init in interface WebContextInitializecontext - WebContextWebContext.init(WebContext),
WebContext.addResource(String, GISResource, int),
WebContext.removeResource(GISResource)public void init(TocFunctionality tocFunc)
tocFunc - the TocFunctionality to re-initializepublic 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 WebContextInitializeWebContext.destroy()public void setImageFormat(java.lang.String imageFormat)
imageFormat - the image formatpublic java.lang.String getImageFormat()
String- the image formatpublic java.util.Collection<TocNode> getRootNodes()
TocNodes of the TOC. These top level nodes typically represent data
frames.
getRootNodes in class TocModelCollection- the collection of TocNodespublic java.lang.String getCustomResourceContentClassName()
public void setCustomResourceContentClassName(java.lang.String customResourceContentClassName)
customResourceContentClassName - the name of the custom classpublic java.util.List<TocFunctionality> getTocFunctionalities()
public void setUseMIMEData(boolean useMIMEData)
useMIMEData - if true, MIME data is returned instead of an image URL string.public boolean isUseMIMEData()
public void setExpandLevel(int expandLevel)
expandLevel - the expand levelpublic int getExpandLevel()
public WebContext getWebContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||