|
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.DefaultListModelWrapper
public class DefaultListModelWrapper
The default implementation of ListModelWrapper.
Field Summary | |
---|---|
protected int[] |
_adjustingIndexes
|
protected int[] |
_indexes
|
protected ListModel |
_model
|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
DefaultListModelWrapper()
|
|
DefaultListModelWrapper(ListModel model)
Creates a DefaultListModelWrapper from any list model. |
Method Summary | |
---|---|
void |
addIndexChangeListener(IndexChangeListener l)
Add IndexChangelistener. |
void |
contentsChanged(ListDataEvent e)
|
protected CompoundListDataEvent |
createCompoundListDataEvent()
|
protected void |
fireEvents(int[] oldIndexes,
int[] newIndexes)
Fires the exact events when index changed. |
protected void |
fireIndexChanged(int eventSerialNumber)
|
void |
fireListDataEvent(ListDataEvent event)
Fires a ListDataEvent. |
int |
getActualIndexAt(int row)
Gets the actual row. |
ListModel |
getActualModel()
Gets the actual list model. |
Object |
getElementAt(int row)
|
int |
getIndexAt(int actualRow)
Gets the visual row. |
IndexChangeListener[] |
getIndexChangeListeners()
Returns an array of all the IndexChangeListener s |
int[] |
getIndexes()
Gets the indexes that maps from the visual row index to the actual row index. |
int |
getSize()
|
void |
intervalAdded(ListDataEvent e)
|
void |
intervalRemoved(ListDataEvent e)
|
void |
reallocateIndexes()
Resets the index mapping. |
void |
removeIndexChangeListener(IndexChangeListener l)
Remove IndexChangelistener. |
void |
setActualModel(ListModel model)
Sets the actual list model. |
void |
setIndexes(int[] indexes)
Sets the indexes of the row mapping. |
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 |
Field Detail |
---|
protected ListModel _model
protected int[] _indexes
protected transient int[] _adjustingIndexes
Constructor Detail |
---|
public DefaultListModelWrapper()
public DefaultListModelWrapper(ListModel model)
model
- the wrapped list modelMethod Detail |
---|
public void setActualModel(ListModel model)
setActualModel
in interface ListModelWrapper
model
- the list model.public ListModel getActualModel()
getActualModel
in interface ListModelWrapper
public int getActualIndexAt(int row)
getActualIndexAt
in interface ListModelWrapper
row
- the row on the UI.
public int getIndexAt(int actualRow)
getIndexAt
in interface ListModelWrapper
actualRow
- the actual row in actual model.
public Object getElementAt(int row)
getElementAt
in interface ListModel
public int getSize()
getSize
in interface ListModel
public void reallocateIndexes()
public int[] getIndexes()
getIndexes
in interface ListModelWrapper
public void setIndexes(int[] indexes)
setIndexes
in interface ListModelWrapper
indexes
- the new indicesprotected void fireEvents(int[] oldIndexes, int[] newIndexes)
oldIndexes
- the index array before filtering.newIndexes
- the index array after filtering.protected CompoundListDataEvent createCompoundListDataEvent()
public void intervalAdded(ListDataEvent e)
intervalAdded
in interface ListDataListener
public void intervalRemoved(ListDataEvent e)
intervalRemoved
in interface ListDataListener
public void contentsChanged(ListDataEvent e)
contentsChanged
in interface ListDataListener
public void fireListDataEvent(ListDataEvent event)
EventFireListModel
fireListDataEvent
in interface EventFireListModel
event
- the eventprotected void fireIndexChanged(int eventSerialNumber)
public void addIndexChangeListener(IndexChangeListener l)
IndexChangeEventGenerator
addIndexChangeListener
in interface IndexChangeEventGenerator
l
- the listenerpublic void removeIndexChangeListener(IndexChangeListener l)
IndexChangeEventGenerator
removeIndexChangeListener
in interface IndexChangeEventGenerator
l
- the listenerpublic IndexChangeListener[] getIndexChangeListeners()
IndexChangeEventGenerator
IndexChangeListener
s
getIndexChangeListeners
in interface IndexChangeEventGenerator
IndexChangeListener
s added or an empty array if no listeners have been addedIndexChangeEventGenerator.addIndexChangeListener(com.jidesoft.grid.IndexChangeListener)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |