|
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.beans.SerializedProperties | +--com.klg.jclass.datasource.beans.TreeProperties
This class encapsulates the data hierarchy for a JCTreeData
. This is a tree
of NodeProperties
.
JCTreeData
,
NodeProperties
,
Serialized FormField Summary | |
protected int |
dataSourceType
Data source type of the tree data bean. |
Fields inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
defaultSerializationFileBase, resourceName, serializationFile |
Constructor Summary | |
TreeProperties()
|
|
TreeProperties(int type,
String model_name)
|
|
TreeProperties(String resource_name,
Class caller_class)
Constructs a TreeProperties from a resource. |
|
TreeProperties(String resource_name,
ClassLoader cl)
|
|
TreeProperties(String resource_name,
ClassLoader cl,
String[] names,
Object[] data_sources)
|
|
TreeProperties(String resource_name,
Class caller_class,
String sfile)
Constructs a TreeProperties from a resource. |
|
TreeProperties(String resource_name,
Class caller_class,
String[] names,
Object[] data_sources)
Constructs a TreeProperties from a resource. |
|
TreeProperties(String resource_name,
Class caller_class,
String sfile,
String[] names,
Object[] data_sources)
Constructs a TreeProperties from a resource. |
Method Summary | |
static com.klg.jclass.datasource.beans.SerializedProperties |
fromResource(ClassLoader cl,
String name)
Instantiates a SerializedProperties from a resource. |
String[] |
getDataSourceNames()
Return an array of the names of IDE data source objects. |
Object[] |
getDataSources()
Return an array of IDE data source objects. |
int |
getDataSourceType()
Return the data source type. |
String |
getModelName()
Sets the model name. |
com.klg.jclass.datasource.DataSourceTreeNode |
getRoot()
Gets the root of the tree structure. |
static String |
getSerializedVersion()
Gets the serialized version of the bean component currently being de-serialized. |
static String |
getVersion()
Gets the current version. |
void |
JCDataValueChanged(com.klg.jclass.datasource.beans.JCDataEvent e)
When value(s) of the data bean component is changed. |
void |
remove(com.klg.jclass.datasource.DataSourceTreeNode node)
Removes a node from the tree. |
void |
removeAll()
Removes all nodes from the tree. |
void |
setDataSourceType(int type)
Sets the data source type. |
void |
setModelName(String s)
Sets the model name. |
void |
setRoot(com.klg.jclass.datasource.DataSourceTreeNode root)
Sets the root of the tree structure. |
String |
toString()
|
Methods inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
addJCDataListener, fireJCDataEvent, fromFile, fromResource, getDefaultSerializationFile, getDefaultSerializationFileToOpen, getResourceName, getSerializationFile, isResourceNameSpecified, isSameString, isSerializationRequired, removeJCDataListener, setChanged, setDefaultSerializationFileBase, setResourceName, setSerializationFile, toFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int dataSourceType
Constructor Detail |
public TreeProperties()
public TreeProperties(int type, String model_name)
public TreeProperties(String resource_name, Class caller_class, String sfile) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.sfile
- serialization file that is used at design-time in JBuilder to
load a TreeProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public TreeProperties(String resource_name, Class caller_class, String sfile, String[] names, Object[] data_sources) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.sfile
- serialization file that is used at design-time in JBuilder to
load a TreeProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public TreeProperties(String resource_name, Class caller_class) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.
DataModelException
- If the class can't be loaded.ClassLoader
public TreeProperties(String resource_name, Class caller_class, String[] names, Object[] data_sources) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.
DataModelException
- If the class can't be loaded.ClassLoader
public TreeProperties(String resource_name, ClassLoader cl) throws DataModelException
public TreeProperties(String resource_name, ClassLoader cl, String[] names, Object[] data_sources) throws DataModelException
Method Detail |
public void setModelName(String s)
public String getModelName()
public void setDataSourceType(int type)
public int getDataSourceType()
public String[] getDataSourceNames()
public Object[] getDataSources()
public void JCDataValueChanged(com.klg.jclass.datasource.beans.JCDataEvent e)
JCDataValueChanged
in interface JCDataListener
public static com.klg.jclass.datasource.beans.SerializedProperties fromResource(ClassLoader cl, String name) throws ClassNotFoundException, IOException
cl
- class loader used to get the resource.name
- resource name relative to a class loader
to the bean component. It must have the right extension.
ClassNotFoundException
- If the class can't be loaded.
IOException
- If an IO exception occurs.Beans.instantiate(java.lang.ClassLoader, java.lang.String)
public com.klg.jclass.datasource.DataSourceTreeNode getRoot()
public void setRoot(com.klg.jclass.datasource.DataSourceTreeNode root)
public void removeAll()
public void remove(com.klg.jclass.datasource.DataSourceTreeNode node)
public static String getVersion()
public static String getSerializedVersion()
public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |