|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.datasource.TreeData | +--com.klg.jclass.datasource.beans.JCTreeData
This Bean creates a hierarchical structure of data. It supports different data source objects.
NodeProperties
,
Serialized FormField Summary | |
protected Applet |
applet
The parent applet. |
protected com.klg.jclass.datasource.beans.MetaDataCreator |
metaDataCreator
|
protected String |
name
Name of the Bean. |
Fields inherited from class com.klg.jclass.datasource.TreeData |
currentBookmark, currentDataTable, data_tree, eventsEnabled, listeners, meta_tree, modelName, nameCounter |
Constructor Summary | |
JCTreeData()
|
|
JCTreeData(Applet applet,
String name)
Creates a JCTreeData which reads parameters from the applet's HTML file. |
|
JCTreeData(int type)
|
Method Summary | |
void |
addDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
implements DataModel method addDataModelListener . |
protected void |
createMetaData()
Creates meta data for the tree data Bean. |
String |
getAbout()
Gets the about property. |
AppletContext |
getAppletContext()
Gets the Bean's applet's context. |
static AppletContext |
getAppletContext(Applet applet)
Gets the Bean's applet's context. |
String |
getName()
Gets the name of the Bean, as set in the constructor or by setName . |
protected void |
getParameters()
Reads the parameter values from the HTML page using the tree data Bean's applet. |
void |
getParameters(Applet applet)
Reads the parameter values from the HTML page using the specified applet. |
void |
getParameters(Applet applet,
String file)
Reads the parameter values from the file. |
com.klg.jclass.datasource.beans.TreeProperties |
getTreeProperties()
Gets TreeProperties property. |
String |
getVersion()
Gets the value of the Version property. |
void |
setAbout(String s)
about property is read-only. |
void |
setModelName(String s)
Sets the model name of the tree data Bean. |
void |
setName(String name)
Sets the name of the Bean. |
void |
setTreeProperties(String resource_name,
ClassLoader cl)
Sets the tree data Bean component using a serialization file. |
void |
setTreeProperties(com.klg.jclass.datasource.beans.TreeProperties comp)
Sets TreeProperties property. |
void |
setVersion(String s)
Version property is read-only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient Applet applet
protected String name
protected com.klg.jclass.datasource.beans.MetaDataCreator metaDataCreator
Constructor Detail |
public JCTreeData()
public JCTreeData(int type)
public JCTreeData(Applet applet, String name)
JCTreeData
which reads parameters from the applet's HTML file.
applet
- the applet whose PARAM
tags are to be readname
- if this is not null, only parameters preceded by this name are readApplet.getParameter(java.lang.String)
Method Detail |
public String getName()
setName
.
If no name has been set, a 0-length String will be returned.
setName(java.lang.String)
public void setName(String name)
name
- Bean namepublic void getParameters(Applet applet)
applet
- Applet.getParameter(java.lang.String)
public void getParameters(Applet applet, String file)
applet
- if not null and in a browser, its documentBase()
is used to
construct a complete filename if necessaryfile
- if an http protocol is not specified (if a ":" is not present), the current working directory is usedpublic AppletContext getAppletContext()
Applet.getAppletContext()
public static AppletContext getAppletContext(Applet applet)
applet
-
Applet.getAppletContext()
public String getAbout()
about
property.
The about
property displays contact information for
Quest Software.
about
propetypublic void setAbout(String s)
about
property is read-only.
s
- public String getVersion()
Version
property.
The Version
property specifies the JClass version number.
public void setVersion(String s)
Version
property is read-only.
s
- public void setModelName(String s)
setModelName
in interface DataModel
setModelName
in class TreeData
s
- public void setTreeProperties(com.klg.jclass.datasource.beans.TreeProperties comp) throws DataModelException
TreeProperties
property.
comp
-
DataModelException
- If fails to create a meta data.public com.klg.jclass.datasource.beans.TreeProperties getTreeProperties()
TreeProperties
property.
setTreeProperties(com.klg.jclass.datasource.beans.TreeProperties)
public void setTreeProperties(String resource_name, ClassLoader cl) throws DataModelException
resource_name
- resource name relative to a class loader
to the tree data Bean componentcl
- class loader used to get the resource
DataModelException
- If fails to create a meta data.public void addDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
DataModel
method addDataModelListener
.
addDataModelListener
in interface DataModel
addDataModelListener
in class TreeData
listener
- DataModelListener
protected void createMetaData() throws DataModelException
DataModelException
- If fails to create a meta data.protected void getParameters()
super.getParameters()
.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |