scala.swing

class BufferWrapper

[source: scala/swing/BufferWrapper.scala]

protected[swing] abstract class BufferWrapper[A]
extends Buffer[A]
Default partial implementation for buffer adapters.
Direct Known Subclasses:
Container.Wrapper.Content, TabbedPane.pages

Method Summary
def +: (a : A) : BufferWrapper[A]
Prepend a single element to this buffer and return the identity of the buffer.
def clear : Unit
Clears the buffer contents.
def insertAll (n : Int, elems : Traversable[A]) : Unit
Inserts new elements at the index n. Opposed to method update, this method will not replace an element with a one. Instead, it will insert a new element at index n.
protected abstract def insertAt (n : Int, a : A) : Unit
def iterator : Iterator[A]
Creates a new iterator over all elements contained in this iterable object.
def readOnly : Vector[A]
def update (n : Int, a : A) : Unit
Replace element at index n with the new element newelem.
Methods inherited from Buffer
companion
Methods inherited from BufferTemplate
apply (abstract), length (abstract), += (abstract), remove (abstract), remove, -=, ++:, ++:, append, appendAll, prepend, prependAll, prependAll, insert, trimStart, trimEnd, <<, stringPrefix, ++=, +, +, ++, ++, -, -, --, --
Methods inherited from Cloneable
clone
Methods inherited from Shrinkable
-=, --=, --=
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from Unhashable
hashCode, identityHashCode
Methods inherited from SequenceTemplate
lengthCompare, size, isDefinedAt, zip, zipAll, zipWithIndex, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, padTo, toSequence, indices, view, view, equals, toString, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from IterableTemplate
elements, foreach, isEmpty, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, first, firstOption, toSeq
Methods inherited from TraversableClass
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString, addString
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def clear : Unit
Clears the buffer contents.

def update(n : Int, a : 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 insertAll(n : Int, elems : Traversable[A]) : Unit
Inserts new elements at the index n. Opposed to method update, this method will not replace an element with a one. Instead, it will insert a new element at index n.
Parameters
n - the index where a new element will be inserted.
iter - the iterable object providing all elements to insert.
Throws
IndexOutofBoundsException - if the index is not valid

protected abstract def insertAt(n : Int, a : A) : Unit

def readOnly : Vector[A]

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

def iterator : Iterator[A]
Creates a new iterator over all elements contained in this iterable object.
Returns
the new iterator