- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QItemSelectionRange>
,Collection<QItemSelectionRange>
,List<QItemSelectionRange>
Manages information about selected items in a model
Java wrapper for Qt class QItemSelection
-
Constructor Summary
ConstructorDescriptionSeeQItemSelection::
QtJambiItemSelection() QItemSelection
(QItemSelectionRange ... arg__1) SeeQItemSelection::
QtJambiItemSelection(std::initializer_list<QItemSelectionRange>) QItemSelection
(QModelIndex topLeft, QModelIndex bottomRight) QItemSelection
(Collection<? extends QItemSelectionRange> other) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
addAll
(int index, Collection<? extends QItemSelectionRange> c) Inserts all of the elements in the specified collection into this list at the specified position.final boolean
addAll
(Collection<? extends QItemSelectionRange> c) Appends all of the elements in the specified collection to the end of this list.clone()
Creates and returns a copy of this object.final boolean
contains
(QModelIndex index) final boolean
containsAll
(Collection<?> c) Returnstrue
if this container contains all of the elements in the specified collection.int
hashCode()
Returns the objects's hash code computed byqHash(QItemSelection)
.final QList<QModelIndex>
indexes()
final Iterator<QItemSelectionRange>
iterator()
Returns an iterator over elements of typeT
.final ListIterator<QItemSelectionRange>
Returns a list iterator over the elements in this list (in proper sequence).final ListIterator<QItemSelectionRange>
listIterator
(int index) Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.final void
merge
(QItemSelection other, QItemSelectionModel.SelectionFlag ... command) Overloaded function formerge(io.qt.core.QItemSelection, io.qt.core.QItemSelectionModel.SelectionFlags)
.final void
merge
(QItemSelection other, QItemSelectionModel.SelectionFlags command) final QItemSelectionRange
remove
(int index) Removes the element at the specified position in this list.final boolean
removeAll
(Collection<?> c) Removes all of this container elements that are also contained in the specified collection.final boolean
retainAll
(Collection<?> c) Retains only the elements in this list that are contained in the specified collection (optional operation).final void
select
(QModelIndex topLeft, QModelIndex bottomRight) static QItemSelection
split
(QItemSelectionRange range, QItemSelectionRange other) final List<QItemSelectionRange>
subList
(int fromIndex, int toIndex) Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.final void
swap
(QItemSelection value2) Seeswap(QItemSelection&,
QItemSelection&) final QItemSelectionRange[]
toArray()
Returns an array containing all of the elements in this container.final <A> A[]
toArray
(A[] a) Returns an array containing all of the elements in this container.Methods inherited from class io.qt.core.QList
add, add, append, append, asBooleanArray, asByteArray, asByteBuffer, asCharArray, asCharBuffer, asDoubleArray, asDoubleBuffer, asFloatArray, asFloatBuffer, asIntArray, asIntBuffer, asLongArray, asLongBuffer, asObjectArray, asShortArray, asShortBuffer, assign, at, begin, capacity, clear, constBegin, constEnd, contains, count, count, createVariantList, createVariantList, detach, end, endsWith, equals, fill, fill, first, get, indexOf, indexOf, insert, insert, isDetached, isEmpty, isSharedWith, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, of, ofBoolean, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofBuffer, ofByte, ofChar, ofDouble, ofFloat, ofInt, ofLong, ofShort, ofTyped, ofTyped, prepend, readFrom, remove, remove, removeAll, removeAt, removeFirst, removeIf, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swap, swapItemsAt, takeAt, takeFirst, takeLast, toString, value, value, writeTo
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
QItemSelection
- Parameters:
topLeft
-bottomRight
-
-
QItemSelection
public QItemSelection()See
QItemSelection::
QtJambiItemSelection() -
QItemSelection
See
QItemSelection::
QtJambiItemSelection(std::initializer_list<QItemSelectionRange>) - Parameters:
arg__1
-
-
QItemSelection
-
-
Method Details
-
contains
- Parameters:
index
-- Returns:
-
indexes
- Returns:
-
merge
@QtUninvokable public final void merge(QItemSelection other, QItemSelectionModel.SelectionFlags command) - Parameters:
other
-command
-
-
select
- Parameters:
topLeft
-bottomRight
-
-
swap
See
swap(QItemSelection&,
QItemSelection&) - Parameters:
value2
-
-
split
- Parameters:
range
-other
-
-
hashCode
Returns the objects's hash code computed byqHash(QItemSelection)
.- Specified by:
hashCode
in interfaceCollection<QItemSelectionRange>
- Specified by:
hashCode
in interfaceList<QItemSelectionRange>
- Overrides:
hashCode
in classQList<QItemSelectionRange>
-
clone
Creates and returns a copy of this object.
See
QItemSelection::
QItemSelection(QItemSelection) - Overrides:
clone
in classQList<QItemSelectionRange>
-
merge
@QtUninvokable public final void merge(QItemSelection other, QItemSelectionModel.SelectionFlag ... command) Overloaded function for
merge(io.qt.core.QItemSelection, io.qt.core.QItemSelectionModel.SelectionFlags)
. -
addAll
Appends all of the elements in the specified collection to the end of this list.- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
-
addAll
Inserts all of the elements in the specified collection into this list at the specified position. -
remove
Removes the element at the specified position in this list. -
listIterator
Returns a list iterator over the elements in this list (in proper sequence).- Specified by:
listIterator
in interfaceList<T>
-
listIterator
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.- Specified by:
listIterator
in interfaceList<T>
-
subList
Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive. (IffromIndex
andtoIndex
are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list. -
retainAll
Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all of its elements that are not contained in the specified collection.- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
containsAll
Returnstrue
if this container contains all of the elements in the specified collection.- Specified by:
containsAll
in interfaceCollection<T>
-
removeAll
Removes all of this container elements that are also contained in the specified collection.- Specified by:
removeAll
in interfaceCollection<T>
-
iterator
Returns an iterator over elements of typeT
.- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Returns:
- an Iterator
-