java.lang.Object
com.esri.arcgisruntime.mapping.BookmarkList
- All Implemented Interfaces:
ListenableList<Bookmark>,Iterable<Bookmark>,Collection<Bookmark>,List<Bookmark>,SequencedCollection<Bookmark>,Observable,ObservableList<Bookmark>
Represents the bookmarks of an ArcGISMap.
This class is not creatable but bookmarks can be added and removed. Changes to the list can be observed by adding a listener.
- Since:
- 100.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends Bookmark> collection) booleanbooleanaddAll(Collection<? extends Bookmark> collection) voidaddListChangedListener(ListChangedListener<Bookmark> listener) Adds a listener for added and removed events.voidaddListener(InvalidationListener listener) voidaddListener(ListChangeListener<? super Bookmark> listener) voidclear()booleanbooleancontainsAll(Collection<?> collection) get(int index) intbooleanisEmpty()iterator()intlastIndexOf(Object object) listIterator(int index) remove(int index) voidremove(int from, int to) booleanbooleanbooleanremoveAll(Collection<?> collection) booleanremoveListChangedListener(ListChangedListener<Bookmark> listener) Removes the given listener from this class instance.voidremoveListener(InvalidationListener listener) voidremoveListener(ListChangeListener<? super Bookmark> listener) booleanbooleanretainAll(Collection<?> collection) booleanbooleansetAll(Collection<? extends Bookmark> col) intsize()subList(int start, int end) Object[]toArray()<T> T[]toArray(T[] array) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliteratorMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<Bookmark>- Specified by:
containsAllin interfaceList<Bookmark>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Bookmark>
-
listIterator
- Specified by:
listIteratorin interfaceList<Bookmark>
-
listIterator
- Specified by:
listIteratorin interfaceList<Bookmark>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] array) -
addListChangedListener
Description copied from interface:ListenableListAdds a listener for added and removed events.Adding this listener on the UI thread will cause it to be invoked on the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.
- Specified by:
addListChangedListenerin interfaceListenableList<Bookmark>- Parameters:
listener- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
Description copied from interface:ListenableListRemoves the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListenerin interfaceListenableList<Bookmark>- Parameters:
listener- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
addListener
- Specified by:
addListenerin interfaceObservableList<Bookmark>
-
removeListener
- Specified by:
removeListenerin interfaceObservableList<Bookmark>
-
addAll
- Specified by:
addAllin interfaceObservableList<Bookmark>
-
setAll
- Specified by:
setAllin interfaceObservableList<Bookmark>
-
setAll
- Specified by:
setAllin interfaceObservableList<Bookmark>
-
removeAll
- Specified by:
removeAllin interfaceObservableList<Bookmark>
-
retainAll
- Specified by:
retainAllin interfaceObservableList<Bookmark>
-
remove
public void remove(int from, int to) - Specified by:
removein interfaceObservableList<Bookmark>
-
addListener
- Specified by:
addListenerin interfaceObservable
-
removeListener
- Specified by:
removeListenerin interfaceObservable
-