|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
de.bsvrz.ars.export.DataspecificationList
public class DataspecificationList
Eine Liste von Datenspezifikationen. Gleichzeitig das Model für die JListe in der GUI
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
void |
update(int id,
Dataspecification dataspecification)
Fügt der DataspecificationList ein Datenspezifikations-Objekt at |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataspecificationList()
public DataspecificationList(java.util.List<Dataspecification> Dataspec)
Dataspec
- Eine Liste an Datenspezifikationen, mit der die DataspecificationList
initialisiert wirdMethod Detail |
---|
public void add(Dataspecification dataspecification)
dataspecification
- Dataspecification, die hinzugefügt werden sollpublic void update(int id, Dataspecification dataspecification)
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 Elementes
public int getSize()
public void saveToFile(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |