org.acm.seguin.tools.install
Class TagListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.acm.seguin.tools.install.TagListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class TagListModel
extends javax.swing.AbstractListModel

List model that stores the tags

Author:
Chris Seguin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TagListModel()
          Constructor for the TagListModel object
 
Method Summary
 void add(TagLinePanel tlp)
          Adds a tag
 void clearAll()
          Empty out the list model
 TagLinePanel find(java.lang.String name)
          Description of the Method
 java.lang.Object getElementAt(int index)
          Gets the ElementAt attribute of the TagListModel object
 int getSize()
          Gets the Size attribute of the TagListModel object
 java.util.Iterator iterator()
          Gets the list of items
 void remove(java.lang.String name)
          Description of the Method
 void swap(int index1, int index2)
          Swaps two entries
 
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

TagListModel

public TagListModel()
Constructor for the TagListModel object

Method Detail

getSize

public int getSize()
Gets the Size attribute of the TagListModel object

Returns:
The Size value

getElementAt

public java.lang.Object getElementAt(int index)
Gets the ElementAt attribute of the TagListModel object

Parameters:
index - Description of Parameter
Returns:
The ElementAt value

find

public TagLinePanel find(java.lang.String name)
Description of the Method

Parameters:
name - Description of Parameter
Returns:
Description of the Returned Value

remove

public void remove(java.lang.String name)
Description of the Method

Parameters:
name - Description of Parameter

add

public void add(TagLinePanel tlp)
Adds a tag

Parameters:
tlp - Description of Parameter

iterator

public java.util.Iterator iterator()
Gets the list of items

Returns:
Description of the Returned Value

swap

public void swap(int index1,
                 int index2)
Swaps two entries

Parameters:
index1 - Description of Parameter
index2 - Description of Parameter

clearAll

public void clearAll()
Empty out the list model