Synergy Home Page

au.edu.swin.synergy.plugin.metamodeller
Class BPropListModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--au.edu.swin.synergy.plugin.metamodeller.BPropListModel

public class BPropListModel
extends AbstractListModel

Please complete these missing tags

Author:
Shane Fitzgibbon
Requirement/analysis/design Reference:
 
Copyright Belongs To:
Synergy Software 1999
See Also:
, Serialized Form

Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
BPropListModel()
          Class Constructor
BPropListModel(Vector items)
          Class Constructor that sets the data that the model represents.
 
Method Summary
 void addItem(Object item)
          Adds a new item to the list model then fires an event to notify listners of the change.
 void addVector(Vector vect)
           
 void clear()
          Clears all items from the list model then fires an event to notify listeners of this change
 boolean exists(Object item)
          Checks to see if there is an item in the model that matches this one
 Object getElementAt(int index)
          Gets an object in the list model at a specified index
 int getSize()
          Gets the Size o fthe list model
 int indexOf(Object item)
          Finds the index of the specified item in the model.
 void remove(Object item)
          Removes an objects in this list model
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPropListModel

public BPropListModel()
Class Constructor

BPropListModel

public BPropListModel(Vector items)
Class Constructor that sets the data that the model represents.
Parameters:
items - Vector containing the data to be represented
Method Detail

getSize

public int getSize()
Gets the Size o fthe list model
Returns:
the no of items in the list model
Overrides:
getSize in class AbstractListModel

getElementAt

public Object getElementAt(int index)
Gets an object in the list model at a specified index
Parameters:
index - the position in the list model to find the object
Returns:
the Object found at the index in the list model
Throws:
ArrayIndexOutOfBoundsException -  
Overrides:
getElementAt in class AbstractListModel

addItem

public void addItem(Object item)
Adds a new item to the list model then fires an event to notify listners of the change.
Parameters:
item - the object to be added to the list

clear

public void clear()
Clears all items from the list model then fires an event to notify listeners of this change

remove

public void remove(Object item)
Removes an objects in this list model
Parameters:
item - the object to be removed.

exists

public boolean exists(Object item)
Checks to see if there is an item in the model that matches this one
Parameters:
item - Object to look for in the model

indexOf

public int indexOf(Object item)
Finds the index of the specified item in the model. If the object cannot be found in the model it returns -1
Parameters:
item - Object to find the index of

addVector

public void addVector(Vector vect)

Synergy Home Page