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

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

public class ArrayListModel
extends AbstractListModel

Array 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
ArrayListModel(java.lang.Object[] array)
          Constructs new ArrayListModel 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

ArrayListModel

public ArrayListModel(java.lang.Object[] array)
Constructs new ArrayListModel object.

Parameters:
array - the array 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.