|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IViewerUpdater
A strategy interface for updating the elements in a StructuredViewer.
Many structured viewer classes have similar methods for adding and removing
elements, few of which are defined in common ancestor classes. This interface
serves as a universal adapter for updating the elements in a viewer
ObservableListContentProvider.ObservableListContentProvider(IViewerUpdater),
ObservableSetContentProvider.ObservableSetContentProvider(IViewerUpdater)| Method Summary | |
|---|---|
void |
add(java.lang.Object[] elements)
Adds the elements to the viewer. |
void |
insert(java.lang.Object element,
int position)
Insert the element into the viewer at the specified position. |
void |
move(java.lang.Object element,
int oldPosition,
int newPosition)
Moves the specified element from the specified old position to the specified new position. |
void |
remove(java.lang.Object[] elements)
Removes the elements from the viewer |
void |
remove(java.lang.Object element,
int position)
Remove the element from the viewer |
void |
replace(java.lang.Object oldElement,
java.lang.Object newElement,
int position)
Replace the specified element at the given position with the new element. |
| Method Detail |
|---|
void insert(java.lang.Object element,
int position)
element - the element to addposition - the position of the element
void remove(java.lang.Object element,
int position)
element - the element to removeposition - the position of the element
void replace(java.lang.Object oldElement,
java.lang.Object newElement,
int position)
oldElement - the element being replacednewElement - the element that replaces oldElementposition - the position of the element being replaced.
void move(java.lang.Object element,
int oldPosition,
int newPosition)
element - the element being movedoldPosition - the position of the element before it is movednewPosition - the position of the element after it is movedvoid add(java.lang.Object[] elements)
elements - the elements to addvoid remove(java.lang.Object[] elements)
elements - the elements to remove
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.