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 elements : Iterator[A]
Creates a new iterator over all elements contained in this object.
def insertAll (n : Int, iter : Iterable[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 readOnly : RandomAccessSeq[A]
return a read only alias of this buffer
def update (n : Int, a : A) : Unit
Replace element at index n with the new element newelem.
Methods inherited from Buffer
+= (abstract), remove (abstract), +, ++=, ++=, ++=, ++, ++, ++, ++:, -=, append, appendAll, prepend, prependAll, insert, trimStart, trimEnd, <<, clone, hashCode, stringPrefix
Methods inherited from Seq
length (abstract), lengthCompare, size, isEmpty, concat, last, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, take, drop, slice, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, toSeq, projection, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice
Methods inherited from Collection
toString
Methods inherited from Iterable
partition, foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
apply (abstract), compose
Methods inherited from AnyRef
getClass, equals, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def clear : Unit
Clears the buffer contents.
Overrides
Buffer.clear

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.
Overrides
Buffer.update

def insertAll(n : Int, iter : Iterable[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.
Overrides
Buffer.insertAll

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

def readOnly : RandomAccessSeq[A]
return a read only alias of this buffer
Overrides
Buffer.readOnly

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

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