scala.swing

class RefBuffer

[source: scala/swing/RefBuffer.scala]

abstract class RefBuffer[A <: AnyRef]
extends Buffer[A] with scala.swing.SingleRefCollection[A]
Value Summary
protected abstract val underlying : Buffer[Reference[A]]
Values and Variables inherited from scala.swing.SingleRefCollection
scala.swing.SingleRefCollection.referenceQueue
Method Summary
def += (el : A) : RefBuffer[A]
Append a single element to this buffer.
def +=: (el : A) : RefBuffer[A]
Prepend a single element to this buffer and return the identity of the buffer.
def apply (n : Int) : A
Return element at index `n`
def clear : Unit
Clears the buffer contents.
def insertAll (n : Int, iter : Iterable[A]) : Unit
def length : Int
Return number of elements in the buffer
def remove (el : A) : Unit
def remove (n : Int) : A
Removes the element on a given index position.
protected[this] def removeReference (ref : Reference[A]) : Unit
def update (n : Int, el : A) : Unit
Replace element at index n with the new element newelem.
Methods inherited from scala.swing.SingleRefCollection
scala.swing.SingleRefCollection.Ref (abstract), scala.swing.SingleRefCollection.purgeReferences, scala.swing.SingleRefCollection.iterator
Methods inherited from Buffer
companion
Methods inherited from BufferLike
insertAll (abstract), +:, remove, -=, ++=:, ++:, ++=:, append, appendAll, prepend, prependAll, prependAll, insert, trimStart, trimEnd, <<, stringPrefix, ++=, +, +, ++, ++, -, -, --, --, readOnly
Methods inherited from Cloneable
clone
Methods inherited from Shrinkable
-=, --=, --=
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from SeqLike
thisCollection, toCollection, lengthCompare, size, isDefinedAt, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseMap, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, view, view, hashCode, equals, toString, findLastIndexOf, equalsWith, containsSlice, projection
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from IterableLike
elements, foreach, forall, exists, find, isEmpty, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, first, firstOption
Methods inherited from GenericTraversableTemplate
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, withFilter
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
protected abstract val underlying : Buffer[Reference[A]]
Overrides
scala.swing.SingleRefCollection.scala.swing.SingleRefCollection.underlying

Method Details
def +=(el : A) : RefBuffer[A]
Append a single element to this buffer.
Parameters
elem - the element to append.

def +=:(el : A) : RefBuffer[A]
Prepend a single element to this buffer and return the identity of the buffer.
Parameters
elem - the element to prepend.

def remove(el : A) : Unit

def remove(n : Int) : A
Removes the element on a given index position.
Parameters
n - the index which refers to the element to delete.
Returns
the previous element

def insertAll(n : Int, iter : Iterable[A]) : Unit

def update(n : Int, el : A) : Unit
Replace element at index n with the new element newelem.
Parameters
n - the index of the element to replace.
newelem - the new element.
Throws
IndexOutofBoundsException - if the index is not valid

def apply(n : Int) : A
Return element at index `n`
Throws
IndexOutofBoundsException - if the index is not valid

def length : Int
Return number of elements in the buffer

def clear : Unit
Clears the buffer contents.

protected[this] def removeReference(ref : Reference[A]) : Unit
Overrides
scala.swing.SingleRefCollection.scala.swing.SingleRefCollection.removeReference