org.ejtools.adwt
Class BeanContextListModel

java.lang.Object
  |
  +--org.ejtools.adwt.BeanContextListModel
All Implemented Interfaces:
java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener, javax.swing.ListModel

public class BeanContextListModel
extends java.lang.Object
implements javax.swing.ListModel, java.beans.beancontext.BeanContextMembershipListener

Description of the Class

Version:
$Revision: 1.2 $
Author:
Laurent Etiemble

Field Summary
protected  java.util.Collection listeners
          Description of the Field
protected  java.beans.beancontext.BeanContext root
          Description of the Field
 
Constructor Summary
BeanContextListModel(java.beans.beancontext.BeanContext root)
          Constructor for the BeanContextListModel object
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
          Adds a feature to the ListDataListener attribute of the BeanContextListModel object
 void childrenAdded(java.beans.beancontext.BeanContextMembershipEvent bcme)
          Description of the Method
 void childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent bcme)
          Description of the Method
protected  void fireContentsChanged()
          Description of the Method
protected  void fireIntervalAdded()
          Description of the Method
protected  void fireIntervalRemoved()
          Description of the Method
 java.lang.Object getElementAt(int index)
          Gets the elementAt attribute of the BeanContextListModel object
 int getSize()
          Gets the size attribute of the BeanContextListModel object
 void removeListDataListener(javax.swing.event.ListDataListener l)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected java.util.Collection listeners
Description of the Field


root

protected java.beans.beancontext.BeanContext root
Description of the Field

Constructor Detail

BeanContextListModel

public BeanContextListModel(java.beans.beancontext.BeanContext root)
Constructor for the BeanContextListModel object

Parameters:
root - Description of the Parameter
Method Detail

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Adds a feature to the ListDataListener attribute of the BeanContextListModel object

Specified by:
addListDataListener in interface javax.swing.ListModel
Parameters:
l - The feature to be added to the ListDataListener attribute

childrenAdded

public void childrenAdded(java.beans.beancontext.BeanContextMembershipEvent bcme)
Description of the Method

Specified by:
childrenAdded in interface java.beans.beancontext.BeanContextMembershipListener
Parameters:
bcme - Description of the Parameter

childrenRemoved

public void childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent bcme)
Description of the Method

Specified by:
childrenRemoved in interface java.beans.beancontext.BeanContextMembershipListener
Parameters:
bcme - Description of the Parameter

getElementAt

public java.lang.Object getElementAt(int index)
Gets the elementAt attribute of the BeanContextListModel object

Specified by:
getElementAt in interface javax.swing.ListModel
Parameters:
index - Description of the Parameter
Returns:
The elementAt value

getSize

public int getSize()
Gets the size attribute of the BeanContextListModel object

Specified by:
getSize in interface javax.swing.ListModel
Returns:
The size value

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Description of the Method

Specified by:
removeListDataListener in interface javax.swing.ListModel
Parameters:
l - Description of the Parameter

fireContentsChanged

protected void fireContentsChanged()
Description of the Method


fireIntervalAdded

protected void fireIntervalAdded()
Description of the Method


fireIntervalRemoved

protected void fireIntervalRemoved()
Description of the Method



Copyright © 2002-2003 EJTools Org.. All Rights Reserved.