p3j.gui.misc
Class SetTypesListModel
java.lang.Object
javax.swing.AbstractListModel
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetTypesListModel
public SetTypesListModel(ProjectionModel currentProjection)
- Default constructor.
- Parameters:
currentProjection
- the projection to be edited
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 Settypedesc
- 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.