Package org.jdesktop.swingbinding.impl
Class ListBindingManager
- java.lang.Object
-
- org.jdesktop.swingbinding.impl.ListBindingManager
-
- All Implemented Interfaces:
EventListener,ObservableListListener
public abstract class ListBindingManager extends Object implements ObservableListListener
- Author:
- sky, Shannon Hickey
-
-
Constructor Summary
Constructors Constructor Description ListBindingManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidadded(int index, int length)protected abstract voidallChanged()protected abstract voidchanged(int row)intcolumnCount()protected abstract AbstractColumnBinding[]getColBindings()ObjectgetElement(int index)List<?>getElements()voidlistElementPropertyChanged(ObservableList list, int index)Notification than a property of an element in this list has changed.voidlistElementReplaced(ObservableList list, int index, Object oldElement)Notification that an element has been replaced by another in the list.voidlistElementsAdded(ObservableList list, int index, int length)Notification that elements have been added to the list.voidlistElementsRemoved(ObservableList list, int index, List elements)Notification that elements have been removed from the list.protected abstract voidremoved(int index, int length)voidsetElements(List<?> elements, boolean sendAllChanged)intsize()ObjectvalueAt(int row, int column)protected abstract voidvalueChanged(int row, int column)
-
-
-
Method Detail
-
getColBindings
protected abstract AbstractColumnBinding[] getColBindings()
-
setElements
public void setElements(List<?> elements, boolean sendAllChanged)
-
getElement
public final Object getElement(int index)
-
getElements
public final List<?> getElements()
-
size
public final int size()
-
valueAt
public final Object valueAt(int row, int column)
-
columnCount
public final int columnCount()
-
listElementsAdded
public final void listElementsAdded(ObservableList list, int index, int length)
Description copied from interface:ObservableListListenerNotification that elements have been added to the list.- Specified by:
listElementsAddedin interfaceObservableListListener- Parameters:
list- theObservableListthat has changedindex- the index the elements were added tolength- the number of elements that were added
-
listElementsRemoved
public final void listElementsRemoved(ObservableList list, int index, List elements)
Description copied from interface:ObservableListListenerNotification that elements have been removed from the list.- Specified by:
listElementsRemovedin interfaceObservableListListener- Parameters:
list- theObservableListthat has changedindex- the starting index the elements were removed fromelements- a list containing the elements that were removed.
-
listElementReplaced
public final void listElementReplaced(ObservableList list, int index, Object oldElement)
Description copied from interface:ObservableListListenerNotification that an element has been replaced by another in the list.- Specified by:
listElementReplacedin interfaceObservableListListener- Parameters:
list- theObservableListthat has changedindex- the index of the element that was replacedoldElement- the element at the index before the change
-
listElementPropertyChanged
public final void listElementPropertyChanged(ObservableList list, int index)
Description copied from interface:ObservableListListenerNotification than a property of an element in this list has changed. Not allObservableListssupport this notification. Only observable lists that returntruefromsupportsElementPropertyChangedsend this notification.- Specified by:
listElementPropertyChangedin interfaceObservableListListener- Parameters:
list- theObservableListthat has changedindex- the index of the element that changed
-
allChanged
protected abstract void allChanged()
-
valueChanged
protected abstract void valueChanged(int row, int column)
-
added
protected abstract void added(int index, int length)
-
removed
protected abstract void removed(int index, int length)
-
changed
protected abstract void changed(int row)
-
-