LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJListComponent._LyJListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by leon.view.win.swing.component.LyJListComponent._LyJListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel
Enclosing class:
LyJListComponent

public class LyJListComponent._LyJListModel
extends javax.swing.AbstractListModel

This class implements the access to the data to display in the list.

See Also:
Serialized Form

Constructor Summary
LyJListComponent._LyJListModel()
          Sole constructor.
 
Method Summary
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 void itemAdded(int index)
          Notifies the LyListComponent that a row has been added.
 void itemRemoved(int index)
          Notifies the LyListComponent that a row has been removed.
 void listUpdated(int oldSize, int newSize)
          Notifies the LyListComponent that the data has totally changed.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyJListComponent._LyJListModel

public LyJListComponent._LyJListModel()
Sole constructor.

Method Detail

getElementAt

public java.lang.Object getElementAt(int index)

getSize

public int getSize()

itemAdded

public void itemAdded(int index)
Notifies the LyListComponent that a row has been added.

Parameters:
index - the index of the new row

itemRemoved

public void itemRemoved(int index)
Notifies the LyListComponent that a row has been removed.

Parameters:
index - the index of the new row

listUpdated

public void listUpdated(int oldSize,
                        int newSize)
Notifies the LyListComponent that the data has totally changed.

Parameters:
oldSize - the old size of the list
newSize - the new size of the list

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com