yu.ac.bg.etf.javaqx.qswing.list
Class VectorListModel

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.list.AbstractListModel
      extended byyu.ac.bg.etf.javaqx.qswing.list.VectorListModel
All Implemented Interfaces:
ListModel

public class VectorListModel
extends AbstractListModel

Vector List Model.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel
listenerList
 
Constructor Summary
VectorListModel(java.util.Vector vector)
          Constructs new VectorListModel object.
 
Method Summary
 java.lang.Object getElementAt(int index)
          Returns the element at the specified index.
 int getSize()
          Returns the size of the list.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorListModel

public VectorListModel(java.util.Vector vector)
Constructs new VectorListModel object.

Parameters:
vector - the vector model
Method Detail

getElementAt

public java.lang.Object getElementAt(int index)
Returns the element at the specified index.

Parameters:
index - the element index
Returns:
the element at the specified index

getSize

public int getSize()
Returns the size of the list.

Returns:
the size of the list


Copyright © 2007 ETF and contributors. All Rights Reserved.