|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel com.jidesoft.list.AbstractGroupableListModel
public abstract class AbstractGroupableListModel
This is an abstract implementation for GroupableListModel.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
AbstractGroupableListModel()
|
Method Summary | |
---|---|
void |
addListGroupChangeListener(ListGroupChangeListener l)
Adds a listener to the list that's notified each time a change to the data model occurs. |
protected void |
fireGroupChanged(Object source)
AbstractListModel subclasses must call this method
after the group for any of the item is changed. |
Object |
getGroupAt(int index)
Returns the group of the element at the specified index. |
Object[] |
getGroups()
Returns all groups, which control the order of appearance. |
ListGroupChangeListener[] |
getListGroupChangeListeners()
Returns an array of all the list group change listeners registered on this DefaultGroupableListModel . |
void |
removeListGroupChangeListener(ListGroupChangeListener l)
Removes a listener from the list that's notified each time a change to the data model occurs. |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Constructor Detail |
---|
public AbstractGroupableListModel()
Method Detail |
---|
public Object getGroupAt(int index)
GroupableListModel
getGroupAt
in interface GroupableListModel
index
- the index of element
GroupableListModel.getGroups()
public Object[] getGroups()
GroupableListModel
getGroups
in interface GroupableListModel
GroupableListModel.getGroupAt(int)
public void addListGroupChangeListener(ListGroupChangeListener l)
addListGroupChangeListener
in interface GroupableListModel
l
- the ListGroupChangeListener
to be addedpublic void removeListGroupChangeListener(ListGroupChangeListener l)
removeListGroupChangeListener
in interface GroupableListModel
l
- the ListGroupChangeListener
to be removedpublic ListGroupChangeListener[] getListGroupChangeListeners()
DefaultGroupableListModel
.
ListGroupChangeListener
s,
or an empty array if no list data listeners
are currently registeredaddListGroupChangeListener(com.jidesoft.list.ListGroupChangeListener)
,
removeListGroupChangeListener(com.jidesoft.list.ListGroupChangeListener)
protected void fireGroupChanged(Object source)
AbstractListModel
subclasses must call this method
after the group for any of the item is changed.
source
- the ListModel
that changed, typically "this"
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |