public class TLcdEditableModelListDescriptor extends TLcdModelDescriptor
TLcdModelDescriptor
, used as the model descriptor of a TLcdModelList
.
It contains the ILcdModelDescriptor
s from the ILcdModel
s
contained in the TLcdModelList
.Constructor and Description |
---|
TLcdEditableModelListDescriptor()
Create a TLcdEditableModelListDescriptor with ModelSet as source, type and display name.
|
TLcdEditableModelListDescriptor(String aSourceName,
String aDisplayName)
Create a TLcdEditableModelListDescriptor with the given source and display name.
|
TLcdEditableModelListDescriptor(String aSourceName,
String aTypeName,
String aDisplayName)
Create a TLcdEditableModelListDescriptor with the given source, display name,
and type name.
|
Modifier and Type | Method and Description |
---|---|
void |
addModelDescriptor(ILcdModelDescriptor aModelDescriptor)
Add the given
ILcdModelDescriptor . |
ILcdModelDescriptor |
getModelDescriptor(int aIndex)
Get the
ILcdModelDescriptor s at the given index. |
int |
getModelDescriptorCount()
Returns the number of
ILcdModelDescriptor s in this set. |
void |
insertModelDescriptorAt(ILcdModelDescriptor aModelDescriptor,
int aIndex)
Inserts the given
ILcdModelDescriptor at the given index. |
void |
removeAllModelDescriptors()
Remove all
ILcdModelDescriptor s. |
void |
removeModelDescriptor(ILcdModelDescriptor aModelDescriptor)
Remove the given
ILcdModelDescriptor . |
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
public TLcdEditableModelListDescriptor()
public TLcdEditableModelListDescriptor(String aSourceName, String aDisplayName)
aSourceName
- an indication of the source of the model(s).aDisplayName
- a display name for the data in the model(s).public TLcdEditableModelListDescriptor(String aSourceName, String aTypeName, String aDisplayName)
aSourceName
- an indication of the source of the model(s).aTypeName
- a type name for the data in the model(s).aDisplayName
- a display name for the data in the model(s).public void addModelDescriptor(ILcdModelDescriptor aModelDescriptor)
ILcdModelDescriptor
.aModelDescriptor
- the ILcdModelDescriptor
.public void insertModelDescriptorAt(ILcdModelDescriptor aModelDescriptor, int aIndex)
ILcdModelDescriptor
at the given index.aModelDescriptor
- the ILcdModelDescriptor
.aIndex
- the index the model descriptor should have after insertion. The index should be smaller than or
equal to the current number of model descriptors.public void removeModelDescriptor(ILcdModelDescriptor aModelDescriptor)
ILcdModelDescriptor
.aModelDescriptor
- the ILcdModelDescriptor
.public void removeAllModelDescriptors()
ILcdModelDescriptor
s.public int getModelDescriptorCount()
ILcdModelDescriptor
s in this set.ILcdModelDescriptor
s in this set.public ILcdModelDescriptor getModelDescriptor(int aIndex)
ILcdModelDescriptor
s at the given index.aIndex
- the index.ILcdModelDescriptor
s at the given index.