|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.l2fprod.common.swing.table.AbstractMutableListTableModel
public abstract class AbstractMutableListTableModel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.l2fprod.common.swing.list.MutableListModel |
|---|
MutableListModel.ActionList, MutableListModel.Actions |
| Field Summary | |
|---|---|
protected java.util.List |
_data
|
protected javax.swing.event.EventListenerList |
listenerList
|
| Constructor Summary | |
|---|---|
AbstractMutableListTableModel()
|
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list (optional operation). |
void |
add(java.lang.Object object)
Appends the specified element to the end of this list (optional operation). |
void |
add(java.lang.Object[] objects)
|
void |
addListDataListener(javax.swing.event.ListDataListener l)
Add a listener to the list that's notified each time a change to the data model occurs. |
protected void |
fireContentsChanged(java.lang.Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements of the list change. |
protected void |
fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements are added to the model. |
protected void |
fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements are removed from the model. |
void |
fireTableDataChanged()
|
void |
fireTableRowsDeleted(int firstRow,
int lastRow)
|
void |
fireTableRowsInserted(int firstRow,
int lastRow)
|
void |
fireTableRowsUpdated(int firstRow,
int lastRow)
|
java.lang.Object |
getElementAt(int index)
|
int |
getIndex(java.lang.Object o)
Returns the index within this model of the first occurence of the specified Object. |
int |
getIndex(java.lang.Object o,
int fromIndex)
Return the index within this model of the first occurence of the specified Object, starting at the specified index (included). |
java.lang.Object |
getObject(int index)
|
int |
getRowCount()
|
int |
getSize()
|
void |
moveDown(int index)
Move the object at index one line down |
void |
moveTo(int oldIndex0,
int oldIndex1,
int newIndex0)
Move the objects between oldIndex0 and
oldIndex1 to the new position newIndex0. |
void |
moveToBottom(int index)
Move the object at index to the bottom of the list. |
void |
moveToTop(int index)
Move the object at index to the top of the list. |
void |
moveUp(int index)
Move the object at index one line up |
java.lang.Object |
remove(int index)
Remove the element at index |
void |
remove(java.lang.Object o)
|
void |
removeAll()
Remove All Elements from this list model. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Remove a listener from the list that's notified each time a change to the data model occurs. |
void |
replace(int index,
java.lang.Object object)
|
void |
update()
Shortcut for fireTableDataChanged() |
void |
update(int row)
Notify listeners that the given row has been updated. |
int |
update(java.lang.Object o)
Notify listeners that the given object has been updated. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
getColumnCount, getValueAt |
| Field Detail |
|---|
protected java.util.List _data
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractMutableListTableModel()
| Method Detail |
|---|
public void add(java.lang.Object object)
MutableListModel
add in interface MutableListModelobject - an Object valuepublic void add(java.lang.Object[] objects)
public void add(int index,
java.lang.Object element)
MutableListModel
add in interface MutableListModelindex - an int valueelement - an Object valuepublic void update()
public void update(int row)
row - an int valuegetIndex(Object)public int update(java.lang.Object o)
o - an Object value
getIndex(Object)
public void replace(int index,
java.lang.Object object)
public void remove(java.lang.Object o)
public java.lang.Object remove(int index)
MutableListModelindex
remove in interface MutableListModelindex - an int value
public void removeAll()
MutableListModel
removeAll in interface MutableListModelpublic void moveToTop(int index)
index to the top of the list.
moveToTop in interface MutableListModelindex - an int valuepublic void moveUp(int index)
index one line up
moveUp in interface MutableListModelindex - an int valuepublic void moveDown(int index)
index one line down
moveDown in interface MutableListModelindex - an int valuepublic void moveToBottom(int index)
index to the bottom of the list.
moveToBottom in interface MutableListModelindex - an int value
public void moveTo(int oldIndex0,
int oldIndex1,
int newIndex0)
oldIndex0 and
oldIndex1 to the new position newIndex0.
moveTo in interface MutableListModeloldIndex0 - ,
oldIndex1 the limits of the interval to movenewIndex0 - the new position of the element that was at oldIndex0oldIndex1 - oldIndex1 the limits of the interval to movepublic int getIndex(java.lang.Object o)
o - an Object value
public int getIndex(java.lang.Object o,
int fromIndex)
o - an Object valuefromIndex - an int value
int valuepublic java.lang.Object getObject(int index)
public int getRowCount()
getRowCount in interface javax.swing.table.TableModel
public void fireTableRowsInserted(int firstRow,
int lastRow)
fireTableRowsInserted in class javax.swing.table.AbstractTableModelpublic void fireTableDataChanged()
fireTableDataChanged in class javax.swing.table.AbstractTableModel
public void fireTableRowsUpdated(int firstRow,
int lastRow)
fireTableRowsUpdated in class javax.swing.table.AbstractTableModel
public void fireTableRowsDeleted(int firstRow,
int lastRow)
fireTableRowsDeleted in class javax.swing.table.AbstractTableModelpublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModell - the ListDataListenerpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModell - the ListDataListener
protected void fireContentsChanged(java.lang.Object source,
int index0,
int index1)
source - The ListModel that changed, typically "this".index0 - One end of the new interval.index1 - The other end of the new interval.EventListenerList,
DefaultListModel
protected void fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
source - The ListModel that changed, typically "this".index0 - One end of the new interval.index1 - The other end of the new interval.EventListenerList,
DefaultListModel
protected void fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
source - The ListModel that changed, typically "this".index0 - One end of the new interval.index1 - The other end of the new interval.EventListenerList,
DefaultListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic int getSize()
getSize in interface javax.swing.ListModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||