|
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.higrid.beans.GridProperties
This class encapsulates the data and format hierarchy for a HiJCData
. This is a tree
of JCHiGridNode
. It observes changes of each JCHiGridNode
and then
tell its own observers of change.
This is meant for internal use only by HiGrid
and is not meant to be used by applets or applications.
JCHiGridNode
,
Serialized FormField Summary | |
protected int |
dataSourceType
Data source type of the higrid bean. |
protected boolean |
externalDS
|
Fields inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
defaultSerializationFileBase, resourceName, serializationFile |
Constructor Summary | |
GridProperties()
Default Constructor. |
|
GridProperties(boolean externalDS)
Constructor that is passed a flag to indicate whether an internal or external datasource is required. |
|
GridProperties(int type,
boolean externalDS)
Constructor that is passed a dataSource type and a flag to indicate whether an internal or external datasource is required. |
|
GridProperties(String resource_name,
Class caller_class)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
ClassLoader cl)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
ClassLoader cl,
String[] names,
Object[] data_sources)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
ClassLoader cl,
String[] names,
Object[] data_sources,
boolean externalDS)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
Class caller_class,
String sfile)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
Class caller_class,
String[] names,
Object[] data_sources)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
Class caller_class,
String[] names,
Object[] data_sources,
boolean externalDS)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
Class caller_class,
String sfile,
String[] names,
Object[] data_sources)
Constructs a GridProperties from a resource. |
|
GridProperties(String resource_name,
Class caller_class,
String sfile,
String[] names,
Object[] data_sources,
boolean externalDS)
Constructs a GridProperties from a resource. |
Method Summary | |
void |
addJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
Adds the specified listener to receive JCHiGridEvent objects. |
void |
fireJCHiGridEvent(com.klg.jclass.higrid.beans.JCHiGridEvent event)
Informs registered listeners of a JCHiGridEvent . |
static com.klg.jclass.datasource.beans.SerializedProperties |
fromResource(ClassLoader cl,
String name)
Instantiates a SerializedProperties from a resource. |
protected String |
getBase()
Gets the base part of the default serialization file name. |
protected int |
getCounter()
Gets the variable part of the default serialization file name. |
String |
getDataBinding()
Gets the external data binding string. |
String[] |
getDataSourceNames()
Returns an array of the names of IDE data source objects. |
Object[] |
getDataSources()
Returns an array of IDE data source objects. |
int |
getDataSourceType()
Returns the data source type. |
String |
getModelName()
Gets 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. |
boolean |
isExternalDS()
Gets the external datasource indication. |
void |
JCHiGridValueChanged(com.klg.jclass.higrid.beans.JCHiGridEvent e)
When value(s) of the JCHiGridNode 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 |
removeJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
Removes the specified listener so it no longer receives JCHiGridEvent objects. |
protected void |
setChanged()
Sets the component value changed indication. |
protected void |
setCounter(int counter)
Sets the variable part of the default serialization file name. |
void |
setDataBinding(String s)
Sets the external data binding string. |
void |
setDataSourceType(int type)
Sets the data source type. |
void |
setExternalDS(boolean externalDS)
Sets the external datasource indication. |
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()
Overrides the generic toString() method. |
Methods inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
addJCDataListener, fireJCDataEvent, fromFile, fromResource, getDefaultSerializationFile, getDefaultSerializationFileToOpen, getResourceName, getSerializationFile, isResourceNameSpecified, isSameString, isSerializationRequired, removeJCDataListener, 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
protected boolean externalDS
Constructor Detail |
public GridProperties()
public GridProperties(boolean externalDS)
externalDS
- indicates internal or external datasourcepublic GridProperties(int type, boolean externalDS)
type
- the dataSource typeexternalDS
- indicates internal or external datasourcepublic GridProperties(String resource_name, ClassLoader cl) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.cl
- class loader to use.
DataModelException
- If the class can't be loaded.public GridProperties(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 GridProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public GridProperties(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 GridProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public GridProperties(String resource_name, Class caller_class, String sfile, String[] names, Object[] data_sources, boolean externalDS) 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 GridProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public GridProperties(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 GridProperties(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 GridProperties(String resource_name, Class caller_class, String[] names, Object[] data_sources, boolean externalDS) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.
DataModelException
- If the class can't be loaded.public GridProperties(String resource_name, ClassLoader cl, 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.
DataModelException
- If the class can't be loaded.public GridProperties(String resource_name, ClassLoader cl, String[] names, Object[] data_sources, boolean externalDS) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.
DataModelException
- If the class can't be loaded.Method Detail |
protected String getBase()
protected int getCounter()
protected void setCounter(int counter)
public void setDataSourceType(int type)
public int getDataSourceType()
public String[] getDataSourceNames()
public Object[] getDataSources()
public void setModelName(String s)
public String getModelName()
public void setExternalDS(boolean externalDS)
public boolean isExternalDS()
public void setDataBinding(String s)
public String getDataBinding()
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 found.
IOException
- If an IO exception occurs.Beans.instantiate(java.lang.ClassLoader, java.lang.String)
public static String getVersion()
public static String getSerializedVersion()
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)
protected void setChanged()
setChanged
in class SerializedProperties
public void addJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
listener
- A listener.public void removeJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
JCHiGridEvent
objects.
listener
- A listener.public void fireJCHiGridEvent(com.klg.jclass.higrid.beans.JCHiGridEvent event)
JCHiGridEvent
.
event
- The JCHiGridEvent.public String toString()
toString()
method.
toString
in class Object
public void JCHiGridValueChanged(com.klg.jclass.higrid.beans.JCHiGridEvent e)
JCHiGridNode
is changed.
JCHiGridValueChanged
in interface JCHiGridListener
JCHiGridNode
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |