JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid.beans
Class ExternalGridProperties

java.lang.Object
  |
  +--com.klg.jclass.datasource.beans.SerializedProperties
        |
        +--com.klg.jclass.higrid.beans.GridProperties
              |
              +--com.klg.jclass.higrid.beans.ExternalGridProperties
All Implemented Interfaces:
EventListener, JCHiGridListener, Serializable

public class ExternalGridProperties
extends GridProperties

This class encapsulates the data and format hierarchy for a HiDataExternalDS.

See Also:
JCHiGrid, Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.higrid.beans.GridProperties
dataSourceType, externalDS
 
Fields inherited from class com.klg.jclass.datasource.beans.SerializedProperties
defaultSerializationFileBase, resourceName, serializationFile
 
Constructor Summary
ExternalGridProperties()
           
ExternalGridProperties(boolean externalDS)
           
ExternalGridProperties(int type, boolean externalDS)
           
ExternalGridProperties(String resource_name, Class caller_class)
          Constructs a ExternalGridProperties from a resource.
ExternalGridProperties(String resource_name, ClassLoader cl)
          Constructs a ExternalGridProperties from a resource.
ExternalGridProperties(String resource_name, ClassLoader cl, String[] names, Object[] data_sources)
          Constructs a ExternalGridProperties from a resource.
ExternalGridProperties(String resource_name, Class caller_class, String sfile)
          Constructs a ExternalGridProperties from a resource.
ExternalGridProperties(String resource_name, Class caller_class, String[] names, Object[] data_sources)
          Constructs a ExternalGridProperties from a resource.
ExternalGridProperties(String resource_name, Class caller_class, String sfile, String[] names, Object[] data_sources)
          Constructs a ExternalGridProperties from a resource.
 
Method Summary
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.
protected  void setCounter(int counter)
          Sets the variable part of the default serialization file name.
 
Methods inherited from class com.klg.jclass.higrid.beans.GridProperties
addJCHiGridListener, fireJCHiGridEvent, fromResource, getDataBinding, getDataSourceNames, getDataSources, getDataSourceType, getModelName, getRoot, getSerializedVersion, getVersion, isExternalDS, JCHiGridValueChanged, remove, removeAll, removeJCHiGridListener, setChanged, setDataBinding, setDataSourceType, setExternalDS, setModelName, setRoot, toString
 
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
 

Constructor Detail

ExternalGridProperties

public ExternalGridProperties()

ExternalGridProperties

public ExternalGridProperties(boolean externalDS)

ExternalGridProperties

public ExternalGridProperties(int type,
                              boolean externalDS)

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              ClassLoader cl)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource.

Parameters:
resource_name - resource name relative to a class loader to the bean component. It must have the right extension.
cl - class loader to use.
Throws:
DataModelException - If the class can't be loaded.

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              Class caller_class,
                              String sfile)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource. First, the package name of the caller class is prepended to the resource name to locate the resource. If no resource is found, the passed-in resource name is used.

Parameters:
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 ExternalGridProperties.
Throws:
DataModelException - If the class can't be loaded.
See Also:
ClassLoader

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              Class caller_class,
                              String sfile,
                              String[] names,
                              Object[] data_sources)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource. First, the package name of the caller class is prepended to the resource name to locate the resource. If no resource is found, the passed-in resource name is used.

Parameters:
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 ExternalGridProperties.
Throws:
DataModelException - If the class can't be loaded.
See Also:
ClassLoader

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              Class caller_class)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource. First, the package name of the caller class is prepended to the resource name to locate the resource. If no resource is found, the passed-in resource name is used.

Parameters:
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.
Throws:
DataModelException - If the class can't be loaded.
See Also:
ClassLoader

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              Class caller_class,
                              String[] names,
                              Object[] data_sources)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource. First, the package name of the caller class is prepended to the resource name to locate the resource. If no resource is found, the passed-in resource name is used.

Parameters:
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.
Throws:
DataModelException - If the class can't be loaded.
See Also:
ClassLoader

ExternalGridProperties

public ExternalGridProperties(String resource_name,
                              ClassLoader cl,
                              String[] names,
                              Object[] data_sources)
                       throws DataModelException
Constructs a ExternalGridProperties from a resource.

Parameters:
resource_name - resource name relative to a class loader to the bean component. It must have the right extension.
cl - class loader to use.
Throws:
DataModelException - If the class can't be loaded.
Method Detail

getBase

protected String getBase()
Description copied from class: GridProperties
Gets the base part of the default serialization file name.

Overrides:
getBase in class GridProperties

getCounter

protected int getCounter()
Description copied from class: GridProperties
Gets the variable part of the default serialization file name.

Overrides:
getCounter in class GridProperties

setCounter

protected void setCounter(int counter)
Description copied from class: GridProperties
Sets the variable part of the default serialization file name.

Overrides:
setCounter in class GridProperties

Copyright © 2004 Quest Software Inc..
All rights reserved.