org.zkoss.zul
Class SimpleListModel

java.lang.Object
  extended by org.zkoss.zul.AbstractListModel
      extended by org.zkoss.zul.SimpleListModel
All Implemented Interfaces:
java.io.Serializable, ListModel

public class SimpleListModel
extends AbstractListModel
implements java.io.Serializable

A simple implementation of ListModel. Note: It assumes the content is immutable. If not, use ListModelList instead.

Author:
tomyeh
See Also:
ListModelSet, ListModelList, ListModelMap, Serialized Form

Constructor Summary
SimpleListModel(java.lang.Object[] data)
           
 
Method Summary
 java.lang.Object getElementAt(int j)
          Returns the value at the specified index.
 int getSize()
          Returns the length of the list.
 
Methods inherited from class org.zkoss.zul.AbstractListModel
addListDataListener, fireEvent, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleListModel

public SimpleListModel(java.lang.Object[] data)
Method Detail

getSize

public int getSize()
Description copied from interface: ListModel
Returns the length of the list.

Specified by:
getSize in interface ListModel

getElementAt

public java.lang.Object getElementAt(int j)
Description copied from interface: ListModel
Returns the value at the specified index.

Specified by:
getElementAt in interface ListModel


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.