p3j.gui.misc
Class SetTypesListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by p3j.gui.misc.SetTypesListModel
All Implemented Interfaces:
Serializable, ListModel

public class SetTypesListModel
extends AbstractListModel

Model of the list of Settypes. Created on January 28, 2007

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SetTypesListModel(ProjectionModel currentProjection)
          Default constructor.
 
Method Summary
 void addSetType(String name, String desc)
          Add a Settype.
 Object getElementAt(int index)
           
 ProjectionModel getProjection()
           
 int getSize()
           
 void removeSetType(int index)
          Remove a Settype.
 void setProjection(ProjectionModel scenario)
           
 void setTypeChanged(int stIndex)
          Propagates event of a changing Settype.
 
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

SetTypesListModel

public SetTypesListModel(ProjectionModel currentProjection)
Default constructor.

Parameters:
currentProjection - the projection to be edited
Method Detail

getElementAt

public Object getElementAt(int index)

getSize

public int getSize()

removeSetType

public void removeSetType(int index)
Remove a Settype.

Parameters:
index - index of the Settype

addSetType

public void addSetType(String name,
                       String desc)
Add a Settype.

Parameters:
name - name of the Settype
desc - description of the Settype

setTypeChanged

public void setTypeChanged(int stIndex)
Propagates event of a changing Settype.

Parameters:
stIndex - index of Settype that was changed

getProjection

public ProjectionModel getProjection()

setProjection

public void setProjection(ProjectionModel scenario)


Copyright © 2012. All Rights Reserved.