public class DataspecificationList
extends javax.swing.AbstractListModel
Constructor and Description |
---|
DataspecificationList()
Erzeugt eine neue DataspecificationList-Instanz, die keine Daten enthält
|
DataspecificationList(java.util.List<Dataspecification> Dataspec)
Erzeugt eine neue DataspecificationList-Instanz, die die übergebenen Datenspezifikationen
enthält
|
Modifier and Type | Method and Description |
---|---|
void |
add(Dataspecification dataspecification)
Fügt der DataspecificationList ein Datenspezifikations-Objekt at
|
java.lang.Object |
getElementAt(int index)
Element mit Index index zurückliefern, oder null, wenn es an unter diesem index kein Element
gibt
|
int |
getSize()
Größe der Liste
|
void |
remove(int index)
Entfernt die mittels Index angegebenen Dataspecification TODO: Reagieren, wenns das Element
nicht gibt
|
void |
replaceDataspecificationWith(java.util.List<Dataspecification> Dataspecifications)
Ersetzt die Liste der Datenspezifikationen vollständig mit der übergebenen.
|
void |
saveToFile(java.io.File file)
TODO
|
void |
update(int id,
Dataspecification dataspecification)
Fügt der DataspecificationList ein Datenspezifikations-Objekt at
|
public DataspecificationList()
public DataspecificationList(java.util.List<Dataspecification> Dataspec)
Dataspec
- Eine Liste an Datenspezifikationen, mit der die DataspecificationList
initialisiert wirdpublic void add(Dataspecification dataspecification)
dataspecification
- Dataspecification, die hinzugefügt werden sollpublic void update(int id, Dataspecification dataspecification)
id
- ID.dataspecification
- Dataspecification, die hinzugefügt werden sollpublic void replaceDataspecificationWith(java.util.List<Dataspecification> Dataspecifications)
Dataspecifications
- die neue Liste an Datenspezifikationenpublic void remove(int index)
index
- Index der Dataspecification, die entfert werden sollpublic java.lang.Object getElementAt(int index)
index
- Der Index des angeforderten Elementespublic int getSize()
public void saveToFile(java.io.File file) throws java.io.IOException
file
- Datei.java.io.IOException
- Exception.