Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class BeanSet.ListModel

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.BeanSet.ListModel
All Implemented Interfaces:
JDoubleList.SingleListModel, EventListener, ChangeListener, ListModel
Enclosing class:
BeanSet

public static class BeanSet.ListModel
extends Object
implements JDoubleList.SingleListModel, ChangeListener

A List Model view of the BeanSet. The beans that appear in the list model can be filtered by class. *

Author:
ringler

Constructor Summary
BeanSet.ListModel(BeanSet set)
          Constructs a new ListModel.
 
Method Summary
 void add(int index, Object element)
          Does nothing *
 void addListDataListener(ListDataListener l)
          Adds a feature to the ListDataListener attribute of the ListModel object
protected  void fireContentsChanged()
          Informs listeners that something has changed.
 BeanSet getBeanSet()
          Gets the beanSet attribute of the ListModel object
 Object getElementAt(int index)
          Gets the elementAt attribute of the ListModel object
 int getSize()
          Gets the size attribute of the ListModel object
 Class getType()
          Gets the type attribute of the ListModel object
 Object remove(int index)
          Does nothing *
 void removeListDataListener(ListDataListener l)
          Description of the Method
 void setBeanSet(BeanSet beans)
          Sets the beanSet attribute of the ListModel object
 void setType(Class c)
          Sets the type attribute of the ListModel object
 void stateChanged(ChangeEvent e)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanSet.ListModel

public BeanSet.ListModel(BeanSet set)
Constructs a new ListModel.

Parameters:
set - Description of the Parameter
Method Detail

stateChanged

public void stateChanged(ChangeEvent e)
Description of the Method

Specified by:
stateChanged in interface ChangeListener
Parameters:
e - Description of the Parameter

getSize

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

Specified by:
getSize in interface ListModel
Returns:
The size value

remove

public Object remove(int index)
Does nothing *

Specified by:
remove in interface JDoubleList.SingleListModel
Parameters:
index - Description of the Parameter
Returns:
Description of the Return Value

add

public void add(int index,
                Object element)
Does nothing *

Specified by:
add in interface JDoubleList.SingleListModel
Parameters:
index - Description of the Parameter
element - Description of the Parameter

getBeanSet

public BeanSet getBeanSet()
Gets the beanSet attribute of the ListModel object

Returns:
The beanSet value

setBeanSet

public void setBeanSet(BeanSet beans)
Sets the beanSet attribute of the ListModel object

Parameters:
beans - The new beanSet value

getElementAt

public Object getElementAt(int index)
Gets the elementAt attribute of the ListModel object

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

setType

public void setType(Class c)
Sets the type attribute of the ListModel object

Parameters:
c - The new type value

getType

public Class getType()
Gets the type attribute of the ListModel object

Returns:
The type value

addListDataListener

public void addListDataListener(ListDataListener l)
Adds a feature to the ListDataListener attribute of the ListModel object

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

removeListDataListener

public void removeListDataListener(ListDataListener l)
Description of the Method

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

fireContentsChanged

protected void fireContentsChanged()
Informs listeners that something has changed.


Mp3dings 
20100427