public class IlvMapDataSourceProperty extends IlvNamedProperty
IlvMapDataSourceModel
to an IlvManager
. The data source model can be retrieved
from the manager by using the following code :
IlvManager manager = ...; IlvMapDataSourceModel model = IlvMapDataSourceProperty.GetMapDataSourceModel(manager);Note that if no model has been previously attached, a new one is created and attached by calling the
GetMapDataSourceModel
method.Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the property.
|
Constructor and Description |
---|
IlvMapDataSourceProperty(IlvInputStream stream)
Creates a new
IlvNamedProperty from
an IlvInputStream . |
IlvMapDataSourceProperty(IlvMapDataSourceModel model)
Creates a new
IlvMapDataSourceProperty . |
IlvMapDataSourceProperty(IlvMapDataSourceProperty source)
Creates a new
IlvMapDataSourceProperty by copying an existing one. |
Modifier and Type | Method and Description |
---|---|
IlvNamedProperty |
copy()
Returns a copy of this property.
|
IlvMapDataSourceModel |
getMapDataSourceModel()
Returns the value of this property.
|
static IlvMapDataSourceModel |
GetMapDataSourceModel(IlvManager manager)
Gets the
IlvMapDataSourceModel attached as an IlvMapDataSourceProperty
to the manager. |
boolean |
isPersistent()
Indicates if this property is persistent.
|
void |
write(IlvOutputStream stream)
Writes this property into an
IlvOutputStream . |
getName
public static final String NAME
public IlvMapDataSourceProperty(IlvMapDataSourceModel model)
IlvMapDataSourceProperty
.model
- The value of this property.public IlvMapDataSourceProperty(IlvMapDataSourceProperty source)
IlvMapDataSourceProperty
by copying an existing one.source
- The origin of the copy.public IlvMapDataSourceProperty(IlvInputStream stream) throws IlvReadFileException
IlvNamedProperty
from
an IlvInputStream
.stream
- The input stream from which the property is be read.IlvReadFileException
public IlvNamedProperty copy()
copy
in class IlvNamedProperty
public boolean isPersistent()
isPersistent
in class IlvNamedProperty
true
. This property is persistent.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvNamedProperty
stream
- The stream to write to.IOException
public IlvMapDataSourceModel getMapDataSourceModel()
IlvMapDataSource
value of the property.public static IlvMapDataSourceModel GetMapDataSourceModel(IlvManager manager)
IlvMapDataSourceModel
attached as an IlvMapDataSourceProperty
to the manager. If no IlvMapDataSourceModel
has been attached, a new one is created
and attached to the manager.manager
- The manager from which to get the data source.IlvMapDataSourceModel
attached to the manager.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.