scala.swing.Container.Wrapper

class Content

[source: scala/swing/Container/Wrapper.scala]

protected class Content
extends BufferWrapper[Component]
Method Summary
def += (c : Component) : Content
Append a single element to this buffer.
def apply (n : Int) : Nothing
Return element at index `n`
override def clear : Unit
Clears the buffer contents.
protected def insertAt (n : Int, c : Component) : Unit
def length : Int
Return number of elements in the buffer
override def remove (n : Int) : Component
Removes the element on a given index position.
Methods inherited from BufferWrapper
update, insertAll, readOnly, +:, iterator
Methods inherited from Buffer
companion
Methods inherited from BufferTemplate
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
override def clear : Unit
Clears the buffer contents.
Overrides
BufferWrapper.clear

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

protected def insertAt(n : Int, c : Component) : Unit
Overrides
BufferWrapper.insertAt

def +=(c : Component) : Content
Append a single element to this buffer.
Parameters
elem - the element to append.

def length : Int
Return number of elements in the buffer

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