de.bsvrz.ars.export
Class DataspecificationList

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by de.bsvrz.ars.export.DataspecificationList
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class DataspecificationList
extends javax.swing.AbstractListModel

Eine Liste von Datenspezifikationen. Gleichzeitig das Model für die JListe in der GUI

Version:
$Revision: 1.1 $ / $Date: 2008/01/22 16:39:42 $ / ($Author: yvonnes $)
Author:
beck et al. projects GmbH, Phil Schrettenbrunner
See Also:
Serialized Form

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

DataspecificationList

public DataspecificationList()
Erzeugt eine neue DataspecificationList-Instanz, die keine Daten enthält


DataspecificationList

public DataspecificationList(java.util.List<Dataspecification> Dataspec)
Erzeugt eine neue DataspecificationList-Instanz, die die übergebenen Datenspezifikationen enthält

Parameters:
Dataspec - Eine Liste an Datenspezifikationen, mit der die DataspecificationList initialisiert wird
Method Detail

add

public void add(Dataspecification dataspecification)
Fügt der DataspecificationList ein Datenspezifikations-Objekt at

Parameters:
dataspecification - Dataspecification, die hinzugefügt werden soll

update

public void update(int id,
                   Dataspecification dataspecification)
Fügt der DataspecificationList ein Datenspezifikations-Objekt at

Parameters:
id -
dataspecification - Dataspecification, die hinzugefügt werden soll

replaceDataspecificationWith

public void replaceDataspecificationWith(java.util.List<Dataspecification> Dataspecifications)
Ersetzt die Liste der Datenspezifikationen vollständig mit der übergebenen.

Parameters:
Dataspecifications - die neue Liste an Datenspezifikationen

remove

public void remove(int index)
Entfernt die mittels Index angegebenen Dataspecification TODO: Reagieren, wenns das Element nicht gibt

Parameters:
index - Index der Dataspecification, die entfert werden soll

getElementAt

public java.lang.Object getElementAt(int index)
Element mit Index index zurückliefern, oder null, wenn es an unter diesem index kein Element gibt

Parameters:
index - Der Index des angeforderten Elementes
Returns:
Das Element mit Index index

getSize

public int getSize()
Größe der Liste

Returns:
Größe der Liste

saveToFile

public void saveToFile(java.io.File file)
                throws java.io.IOException
Parameters:
file -
Throws:
java.io.IOException


Copyright © 2005-2008 beck et al. projects GmbH All Rights Reserved.