|
|||||||||
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 GISResource
s.
Field Summary | |
---|---|
protected WebContext |
context
The associated WebMap object for this WebToc. |
protected Class |
customReourceContentClass
|
protected 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 Hashtable<TocFunctionality,TocNode> |
funcsNodes
|
protected String |
imageFormat
The format of the TOC images. |
protected int |
nextResourceNodeIndex
|
protected ArrayList<TocNode> |
resourceNodes
|
protected static String |
TOC_MODEL_TYPE
|
protected 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. |
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. |
String |
getImageFormat()
Returns the format of the TOC images. |
Collection<TocNode> |
getRootNodes()
Returns a collection of the top level TocNode s of the TOC. |
List<TocFunctionality> |
getTocFunctionalities()
|
String |
getTocModelType()
|
WebContext |
getWebContext()
|
void |
init(TocFunctionality tocFunc)
Initializes the WebToc for the specified toc functionality. |
void |
init(WebContext webContext)
Initializes the WebToc by associating itself with this context. |
boolean |
isUseMIMEData()
Returns an indicator whether the control returns MIME data or not. |
void |
setCustomResourceContentClassName(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(String imageFormat)
Sets the format of the TOC images. |
void |
setUseMIMEData(boolean useMIMEData)
Sets whether the control returns MIME data or not. |
void |
update(WebContext ctxt,
Object arg)
This method is called by the WebContext on its registered WebContextObserver s when users call the
refresh() methods on the context. |
Methods inherited from class com.esri.adf.web.data.TocModel |
---|
addTimer, findNode, findNode, getTimers, isInit, isShowContextMenu, isShowOpenResultLink, 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 WebContext context
WebMap
object for this WebToc.
protected String imageFormat
protected static final String TOC_MODEL_TYPE
protected boolean useMIMEData
protected int expandLevel
protected ArrayList<TocNode> resourceNodes
protected ArrayList<TocFunctionality> tocFuncs
protected Hashtable<TocFunctionality,TocNode> funcsNodes
protected String customResourceContentClassName
protected Class customReourceContentClass
protected int nextResourceNodeIndex
Constructor Detail |
---|
public WebToc()
Method Detail |
---|
public String getTocModelType()
getTocModelType
in class TocModel
public void init(WebContext webContext)
init
in interface WebContextInitialize
webContext
- 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 WebContextInitialize
WebContext.destroy()
public void setImageFormat(String imageFormat)
imageFormat
- the image formatpublic String getImageFormat()
String
- the image formatpublic Collection<TocNode> getRootNodes()
TocNode
s of the TOC. These top level nodes typically represent data
frames.
getRootNodes
in class TocModel
Collection
- the collection of TocNode
spublic String getCustomResourceContentClassName()
public void setCustomResourceContentClassName(String customResourceContentClassName)
customResourceContentClassName
- the name of the custom classpublic 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()
public void update(WebContext ctxt, Object arg)
WebContextObserver
This method is called by the WebContext
on its registered WebContextObserver
s when users call the
refresh()
methods on the context.
To setup an object to be updated by the context, one needs to use the
WebContext.addObserver(WebContextObserver)
to register itself with the context. All
context attributes are wired up to the WebContext
. When users change state on any of
the attributes and need to intimate other attributes of the context to react to the change they call either the
WebContext.refresh()
or WebContext.refresh(Object)
methods. The context in turns calls the WebContextObserver.update(WebContext, Object)
methods on all its registered
observers.
update
in interface WebContextObserver
ctxt
- the WebContext
that has been refreshedarg
- the argument passed to the WebContext
's refresh(arg)
methodWebContext.refresh(Object)
,
WebContext.addObserver(WebContextObserver)
,
WebContext.removeObserver(WebContextObserver)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |