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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends Bookmark> collection) boolean
boolean
addAll
(Collection<? extends Bookmark> collection) void
addListChangedListener
(ListChangedListener<Bookmark> listener) Adds a listener for added and removed events.void
addListener
(InvalidationListener listener) void
addListener
(ListChangeListener<? super Bookmark> listener) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) get
(int index) int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object object) listIterator
(int index) remove
(int index) void
remove
(int from, int to) boolean
boolean
boolean
removeAll
(Collection<?> collection) boolean
removeListChangedListener
(ListChangedListener<Bookmark> listener) Removes the given listener from this class instance.void
removeListener
(InvalidationListener listener) void
removeListener
(ListChangeListener<? super Bookmark> listener) boolean
boolean
retainAll
(Collection<?> collection) boolean
boolean
setAll
(Collection<? extends Bookmark> col) int
size()
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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Bookmark>
- Specified by:
containsAll
in interfaceList<Bookmark>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Bookmark>
-
listIterator
- Specified by:
listIterator
in interfaceList<Bookmark>
-
listIterator
- Specified by:
listIterator
in 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:ListenableList
Adds 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:
addListChangedListener
in 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:ListenableList
Removes the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListener
in interfaceListenableList<Bookmark>
- Parameters:
listener
- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
addListener
- Specified by:
addListener
in interfaceObservableList<Bookmark>
-
removeListener
- Specified by:
removeListener
in interfaceObservableList<Bookmark>
-
addAll
- Specified by:
addAll
in interfaceObservableList<Bookmark>
-
setAll
- Specified by:
setAll
in interfaceObservableList<Bookmark>
-
setAll
- Specified by:
setAll
in interfaceObservableList<Bookmark>
-
removeAll
- Specified by:
removeAll
in interfaceObservableList<Bookmark>
-
retainAll
- Specified by:
retainAll
in interfaceObservableList<Bookmark>
-
remove
public void remove(int from, int to) - Specified by:
remove
in interfaceObservableList<Bookmark>
-
addListener
- Specified by:
addListener
in interfaceObservable
-
removeListener
- Specified by:
removeListener
in interfaceObservable
-