Packages

  • package root
    Definition Classes
    root
  • package scala
    Definition Classes
    root
  • package swing

    Scala-swing is a graphical user interface library that will wrap most of Java Swing for Scala in a straightforward manner.

    Scala-swing is a graphical user interface library that will wrap most of Java Swing for Scala in a straightforward manner.

    Overview

    The widget class hierarchy loosely resembles that of Java Swing. The main differences are:

    • In Java Swing all components are containers per default. This does not make much sense for a number of components, like scala.swing.TextField, scala.swing.CheckBox, scala.swing.RadioButton, and so on. Our guess is that this architecture was chosen because Java lacks multiple inheritance. In scala-swing, components that can have child components extend the scala.swing.Container trait.
    • Layout managers and panels are coupled. There is no way to exchange the layout manager of a panel. As a result, the layout constraints for widgets can be typed. (Note that you gain more type-safety and do not loose much flexibility here. Besides being not a common operation, exchanging the layout manager of a panel in Java Swing almost always leads to exchanging the layout constraints for every of the panel's child component. In the end, it is not more work to move all children to a newly created panel.)
    • Widget hierarchies are built by adding children to their parent container's contents collection. The typical usage style is to create anonymous subclasses of the widgets to customize their properties, and nest children and event reactions.
    • The scala-swing event system follows a different approach than the underlying Java system. Instead of adding event listeners with a particular interface (such as java.awt.ActionListener), a scala.swing.Reactor instance announces the interest in receiving events by calling listenTo for a scala.swing.Publisher. Publishers are also reactors and listen to themselves per default as a convenience. A reactor contains an object reactions which serves as a convenient place to register observers by adding partial functions that pattern match for any event that the observer is interested in. This is shown in the examples section below.
    • For more details see SIP-8.

    Scala-swing comprises two main packages:

    • scala.swing: All widget classes and traits.
    • scala.swing.event: The event hierarchy.

    This package object contains useful type aliases that do not have wrappers.

    Examples

    The following example shows how to plug components and containers together and react to a mouse click on a button:

    import scala.swing._
    
    new Frame {
      title = "Hello world"
    
      contents = new FlowPanel {
        contents += new Label("Launch rainbows:")
        contents += new Button("Click me") {
          reactions += {
            case event.ButtonClicked(_) =>
              println("All the colours!")
          }
        }
      }
    
      pack()
      centerOnScreen()
      open()
    }
    Definition Classes
    scala
  • object Container
    Definition Classes
    swing
  • trait Wrapper extends Container with Publisher

    Utility trait for wrapping containers.

    Utility trait for wrapping containers. Provides an immutable implementation of the contents member.

    Definition Classes
    Container
  • Content

class Content extends BufferWrapper[Component]

Attributes
protected
Linear Supertypes
BufferWrapper[Component], Buffer[Component], Shrinkable[Component], Growable[Component], Clearable, collection.mutable.Seq[Component], SeqOps[Component, [_]Buffer[_], Buffer[Component]], collection.mutable.Cloneable[Buffer[Component]], java.lang.Cloneable, collection.Seq[Component], Equals, SeqOps[Component, [_]Buffer[_], Buffer[Component]], PartialFunction[Int, Component], (Int) => Component, collection.mutable.Iterable[Component], collection.Iterable[Component], IterableFactoryDefaults[Component, [x]Buffer[x]], IterableOps[Component, [_]Buffer[_], Buffer[Component]], IterableOnceOps[Component, [_]Buffer[_], Buffer[Component]], collection.IterableOnce[Component], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Content
  2. BufferWrapper
  3. Buffer
  4. Shrinkable
  5. Growable
  6. Clearable
  7. Seq
  8. SeqOps
  9. Cloneable
  10. Cloneable
  11. Seq
  12. Equals
  13. SeqOps
  14. PartialFunction
  15. Function1
  16. Iterable
  17. Iterable
  18. IterableFactoryDefaults
  19. IterableOps
  20. IterableOnceOps
  21. IterableOnce
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Content()

Type Members

  1. type MoreElem[+B] = collection.IterableOnce[B]
    Definition Classes
    BufferWrapper

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: Component](suffix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    IterableOps
    Annotations
    @inline()
  4. final def ++:[B >: Component](prefix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    SeqOps → IterableOps
    Annotations
    @inline()
  5. final def ++=(xs: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  6. final def ++=:(elems: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @inline()
  7. final def +:[B >: Component](elem: B): Buffer[B]
    Definition Classes
    SeqOps
    Annotations
    @inline()
  8. final def +=(elem: Component): Content.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  9. final def +=:(elem: Component): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @inline()
  10. final def --=(xs: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Shrinkable
    Annotations
    @inline()
  11. final def -=(elem: Component): Content.this.type
    Definition Classes
    Shrinkable
    Annotations
    @inline()
  12. final def :+[B >: Component](elem: B): Buffer[B]
    Definition Classes
    SeqOps
    Annotations
    @inline()
  13. final def :++[B >: Component](suffix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    SeqOps
    Annotations
    @inline()
  14. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def addAll(xs: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Growable
  16. def addOne(c: Component): Content.this.type
    Definition Classes
    Content → Growable
  17. final def addString(b: collection.mutable.StringBuilder): collection.mutable.StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  18. final def addString(b: collection.mutable.StringBuilder, sep: String): collection.mutable.StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  19. def addString(b: collection.mutable.StringBuilder, start: String, sep: String, end: String): collection.mutable.StringBuilder
    Definition Classes
    IterableOnceOps
  20. def andThen[C](k: PartialFunction[Component, C]): PartialFunction[Int, C]
    Definition Classes
    PartialFunction
  21. def andThen[C](k: (Component) => C): PartialFunction[Int, C]
    Definition Classes
    PartialFunction → Function1
  22. final def append(elem: Component): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @inline()
  23. final def appendAll(xs: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @inline()
  24. def appended[B >: Component](elem: B): Buffer[B]
    Definition Classes
    SeqOps
  25. def appendedAll[B >: Component](suffix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    SeqOps
  26. def apply(n: Int): Component
    Definition Classes
    Content → SeqOps → Function1
  27. def applyOrElse[A1 <: Int, B1 >: Component](x: A1, default: (A1) => B1): B1
    Definition Classes
    PartialFunction
  28. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  29. def canEqual(that: Any): Boolean
    Definition Classes
    Seq → Equals
  30. def className: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
  31. def clear(): Unit
    Definition Classes
    ContentBufferWrapper → Clearable
  32. def clone(): Buffer[Component]
    Definition Classes
    SeqOps → Cloneable → AnyRef
  33. final def coll: Content.this.type
    Attributes
    protected
    Definition Classes
    Iterable → IterableOps
  34. def collect[B](pf: PartialFunction[Component, B]): Buffer[B]
    Definition Classes
    IterableOps → IterableOnceOps
  35. def collectFirst[B](pf: PartialFunction[Component, B]): Option[B]
    Definition Classes
    IterableOnceOps
  36. def combinations(n: Int): collection.Iterator[Buffer[Component]]
    Definition Classes
    SeqOps
  37. def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, Component]
    Definition Classes
    PartialFunction
  38. def compose[A](g: (A) => Int): (A) => Component
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  39. final def concat[B >: Component](suffix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    SeqOps → IterableOps
    Annotations
    @inline()
  40. def contains[A1 >: Component](elem: A1): Boolean
    Definition Classes
    SeqOps
  41. def containsSlice[B](that: collection.Seq[B]): Boolean
    Definition Classes
    SeqOps
  42. def copyToArray[B >: Component](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  43. def copyToArray[B >: Component](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
  44. def copyToArray[B >: Component](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
  45. def corresponds[B](that: collection.Seq[B])(p: (Component, B) => Boolean): Boolean
    Definition Classes
    SeqOps
  46. def corresponds[B](that: collection.IterableOnce[B])(p: (Component, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  47. def count(p: (Component) => Boolean): Int
    Definition Classes
    IterableOnceOps
  48. def diff[B >: Component](that: collection.Seq[B]): Buffer[Component]
    Definition Classes
    SeqOps
  49. def distinct: Buffer[Component]
    Definition Classes
    SeqOps
  50. def distinctBy[B](f: (Component) => B): Buffer[Component]
    Definition Classes
    SeqOps
  51. def drop(n: Int): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  52. def dropInPlace(n: Int): Content.this.type
    Definition Classes
    Buffer
  53. def dropRight(n: Int): Buffer[Component]
    Definition Classes
    IterableOps
  54. def dropRightInPlace(n: Int): Content.this.type
    Definition Classes
    Buffer
  55. def dropWhile(p: (Component) => Boolean): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  56. def dropWhileInPlace(p: (Component) => Boolean): Content.this.type
    Definition Classes
    Buffer
  57. def elementWise: ElementWiseExtractor[Int, Component]
    Definition Classes
    PartialFunction
  58. def empty: Buffer[Component]
    Definition Classes
    IterableFactoryDefaults → IterableOps
  59. def endsWith[B >: Component](that: collection.Iterable[B]): Boolean
    Definition Classes
    SeqOps
  60. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. def equals(o: Any): Boolean
    Definition Classes
    Seq → Equals → AnyRef → Any
  62. def exists(p: (Component) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  63. def filter(pred: (Component) => Boolean): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  64. def filterNot(pred: (Component) => Boolean): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  65. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  66. def find(p: (Component) => Boolean): Option[Component]
    Definition Classes
    IterableOnceOps
  67. def findLast(p: (Component) => Boolean): Option[Component]
    Definition Classes
    SeqOps
  68. def flatMap[B](f: (Component) => collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    IterableOps → IterableOnceOps
  69. def flatten[B](implicit asIterable: (Component) => collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    IterableOps → IterableOnceOps
  70. def fold[A1 >: Component](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  71. def foldLeft[B](z: B)(op: (B, Component) => B): B
    Definition Classes
    IterableOnceOps
  72. def foldRight[B](z: B)(op: (Component, B) => B): B
    Definition Classes
    IterableOnceOps
  73. def forall(p: (Component) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  74. def foreach[U](f: (Component) => U): Unit
    Definition Classes
    IterableOnceOps
  75. def fromSpecific(coll: collection.IterableOnce[Component]): Buffer[Component]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  76. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  77. def groupBy[K](f: (Component) => K): Map[K, Buffer[Component]]
    Definition Classes
    IterableOps
  78. def groupMap[K, B](key: (Component) => K)(f: (Component) => B): Map[K, Buffer[B]]
    Definition Classes
    IterableOps
  79. def groupMapReduce[K, B](key: (Component) => K)(f: (Component) => B)(reduce: (B, B) => B): Map[K, B]
    Definition Classes
    IterableOps
  80. def grouped(size: Int): collection.Iterator[Buffer[Component]]
    Definition Classes
    IterableOps
  81. def hashCode(): Int
    Definition Classes
    Seq → AnyRef → Any
  82. def head: Component
    Definition Classes
    IterableOps
  83. def headOption: Option[Component]
    Definition Classes
    IterableOps
  84. def indexOf[B >: Component](elem: B): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecatedOverriding("Override indexOf(elem, from) instead - indexOf(elem) calls indexOf(elem, 0)", "2.13.0")
  85. def indexOf[B >: Component](elem: B, from: Int): Int
    Definition Classes
    SeqOps
  86. def indexOfSlice[B >: Component](that: collection.Seq[B]): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecatedOverriding("Override indexOfSlice(that, from) instead - indexOfSlice(that) calls indexOfSlice(that, 0)", "2.13.0")
  87. def indexOfSlice[B >: Component](that: collection.Seq[B], from: Int): Int
    Definition Classes
    SeqOps
  88. def indexWhere(p: (Component) => Boolean): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecatedOverriding("Override indexWhere(p, from) instead - indexWhere(p) calls indexWhere(p, 0)", "2.13.0")
  89. def indexWhere(p: (Component) => Boolean, from: Int): Int
    Definition Classes
    SeqOps
  90. def indices: collection.immutable.Range
    Definition Classes
    SeqOps
  91. def init: Buffer[Component]
    Definition Classes
    IterableOps
  92. def inits: collection.Iterator[Buffer[Component]]
    Definition Classes
    IterableOps
  93. def insert(n: Int, c: Component): Unit
    Definition Classes
    Content → Buffer
  94. def insertAll(idx: Int, elems: MoreElem[Component]): Unit
    Definition Classes
    BufferWrapper → Buffer
  95. def intersect[B >: Component](that: collection.Seq[B]): Buffer[Component]
    Definition Classes
    SeqOps
  96. def isDefinedAt(idx: Int): Boolean
    Definition Classes
    SeqOps
  97. def isEmpty: Boolean
    Definition Classes
    SeqOps → IterableOnceOps
  98. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  99. def isTraversableAgain: Boolean
    Definition Classes
    IterableOps → IterableOnceOps
  100. def iterableFactory: SeqFactory[Buffer]
    Definition Classes
    Buffer → Seq → Seq → Iterable → Iterable → IterableOps
  101. def iterator: collection.Iterator[Component]
    Definition Classes
    BufferWrapper → IterableOnce
  102. def knownSize: Int
    Definition Classes
    Buffer → Growable → IterableOnce
  103. def last: Component
    Definition Classes
    IterableOps
  104. def lastIndexOf[B >: Component](elem: B, end: Int): Int
    Definition Classes
    SeqOps
  105. def lastIndexOfSlice[B >: Component](that: collection.Seq[B]): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecatedOverriding("Override lastIndexOfSlice(that, end) instead - lastIndexOfSlice(that) calls lastIndexOfSlice(that, Int.MaxValue)", "2.13.0")
  106. def lastIndexOfSlice[B >: Component](that: collection.Seq[B], end: Int): Int
    Definition Classes
    SeqOps
  107. def lastIndexWhere(p: (Component) => Boolean): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecatedOverriding("Override lastIndexWhere(p, end) instead - lastIndexWhere(p) calls lastIndexWhere(p, Int.MaxValue)", "2.13.0")
  108. def lastIndexWhere(p: (Component) => Boolean, end: Int): Int
    Definition Classes
    SeqOps
  109. def lastOption: Option[Component]
    Definition Classes
    IterableOps
  110. def lazyZip[B](that: collection.Iterable[B]): LazyZip2[Component, B, Content.this.type]
    Definition Classes
    Iterable
  111. def length: Int
    Definition Classes
    Content → SeqOps
  112. def lengthCompare(that: collection.Iterable[_]): Int
    Definition Classes
    SeqOps
  113. def lengthCompare(len: Int): Int
    Definition Classes
    SeqOps
  114. final def lengthIs: SizeCompareOps
    Definition Classes
    SeqOps
    Annotations
    @inline()
  115. def lift: (Int) => Option[Component]
    Definition Classes
    PartialFunction
  116. def map[B](f: (Component) => B): Buffer[B]
    Definition Classes
    IterableOps → IterableOnceOps
  117. def max[B >: Component](implicit ord: math.Ordering[B]): Component
    Definition Classes
    IterableOnceOps
  118. def maxBy[B](f: (Component) => B)(implicit cmp: math.Ordering[B]): Component
    Definition Classes
    IterableOnceOps
  119. def maxByOption[B](f: (Component) => B)(implicit cmp: math.Ordering[B]): Option[Component]
    Definition Classes
    IterableOnceOps
  120. def maxOption[B >: Component](implicit ord: math.Ordering[B]): Option[Component]
    Definition Classes
    IterableOnceOps
  121. def min[B >: Component](implicit ord: math.Ordering[B]): Component
    Definition Classes
    IterableOnceOps
  122. def minBy[B](f: (Component) => B)(implicit cmp: math.Ordering[B]): Component
    Definition Classes
    IterableOnceOps
  123. def minByOption[B](f: (Component) => B)(implicit cmp: math.Ordering[B]): Option[Component]
    Definition Classes
    IterableOnceOps
  124. def minOption[B >: Component](implicit ord: math.Ordering[B]): Option[Component]
    Definition Classes
    IterableOnceOps
  125. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  126. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  127. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  128. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  129. def newSpecificBuilder: Builder[Component, Buffer[Component]]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  130. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
  131. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  132. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  133. def occCounts[B](sq: collection.Seq[B]): Map[B, Int]
    Attributes
    protected[collection]
    Definition Classes
    SeqOps
  134. def orElse[A1 <: Int, B1 >: Component](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
    Definition Classes
    PartialFunction
  135. def padTo[B >: Component](len: Int, elem: B): Buffer[B]
    Definition Classes
    SeqOps
  136. def padToInPlace(len: Int, elem: Component): Content.this.type
    Definition Classes
    Buffer
  137. def partition(p: (Component) => Boolean): (Buffer[Component], Buffer[Component])
    Definition Classes
    IterableOps
  138. def partitionMap[A1, A2](f: (Component) => Either[A1, A2]): (Buffer[A1], Buffer[A2])
    Definition Classes
    IterableOps
  139. def patch[B >: Component](from: Int, other: collection.IterableOnce[B], replaced: Int): Buffer[B]
    Definition Classes
    SeqOps
  140. def patchInPlace(from: Int, patch: MoreElem[Component], replaced: Int): Content.this.type
    Definition Classes
    BufferWrapper → Buffer
  141. def permutations: collection.Iterator[Buffer[Component]]
    Definition Classes
    SeqOps
  142. def prepend(elem: Component): Content.this.type
    Definition Classes
    BufferWrapper → Buffer
  143. def prependAll(elems: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Buffer
  144. def prepended[B >: Component](elem: B): Buffer[B]
    Definition Classes
    SeqOps
  145. def prependedAll[B >: Component](prefix: collection.IterableOnce[B]): Buffer[B]
    Definition Classes
    SeqOps
  146. def product[B >: Component](implicit num: math.Numeric[B]): B
    Definition Classes
    IterableOnceOps
  147. def reduce[B >: Component](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  148. def reduceLeft[B >: Component](op: (B, Component) => B): B
    Definition Classes
    IterableOnceOps
  149. def reduceLeftOption[B >: Component](op: (B, Component) => B): Option[B]
    Definition Classes
    IterableOnceOps
  150. def reduceOption[B >: Component](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  151. def reduceRight[B >: Component](op: (Component, B) => B): B
    Definition Classes
    IterableOnceOps
  152. def reduceRightOption[B >: Component](op: (Component, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  153. def remove(n: Int): Component
    Definition Classes
    Content → Buffer
  154. def remove(idx: Int, count: Int): Unit
    Definition Classes
    BufferWrapper → Buffer
  155. def reverse: Buffer[Component]
    Definition Classes
    SeqOps
  156. def reverseIterator: collection.Iterator[Component]
    Definition Classes
    SeqOps
  157. def reversed: collection.Iterable[Component]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  158. def runWith[U](action: (Component) => U): (Int) => Boolean
    Definition Classes
    PartialFunction
  159. def sameElements[B >: Component](that: collection.IterableOnce[B]): Boolean
    Definition Classes
    SeqOps
  160. def scan[B >: Component](z: B)(op: (B, B) => B): Buffer[B]
    Definition Classes
    IterableOps
  161. def scanLeft[B](z: B)(op: (B, Component) => B): Buffer[B]
    Definition Classes
    IterableOps → IterableOnceOps
  162. def scanRight[B](z: B)(op: (Component, B) => B): Buffer[B]
    Definition Classes
    IterableOps
  163. def search[B >: Component](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
    Definition Classes
    SeqOps
  164. def search[B >: Component](elem: B)(implicit ord: Ordering[B]): SearchResult
    Definition Classes
    SeqOps
  165. def segmentLength(p: (Component) => Boolean, from: Int): Int
    Definition Classes
    SeqOps
  166. final def segmentLength(p: (Component) => Boolean): Int
    Definition Classes
    SeqOps
  167. final def size: Int
    Definition Classes
    SeqOps → IterableOnceOps
  168. final def sizeCompare(that: collection.Iterable[_]): Int
    Definition Classes
    SeqOps → IterableOps
  169. final def sizeCompare(otherSize: Int): Int
    Definition Classes
    SeqOps → IterableOps
  170. final def sizeIs: SizeCompareOps
    Definition Classes
    IterableOps
    Annotations
    @inline()
  171. def slice(from: Int, until: Int): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  172. def sliceInPlace(start: Int, end: Int): Content.this.type
    Definition Classes
    Buffer
  173. def sliding(size: Int, step: Int): collection.Iterator[Buffer[Component]]
    Definition Classes
    IterableOps
  174. def sliding(size: Int): collection.Iterator[Buffer[Component]]
    Definition Classes
    IterableOps
  175. def sortBy[B](f: (Component) => B)(implicit ord: Ordering[B]): Buffer[Component]
    Definition Classes
    SeqOps
  176. def sortWith(lt: (Component, Component) => Boolean): Buffer[Component]
    Definition Classes
    SeqOps
  177. def sorted[B >: Component](implicit ord: Ordering[B]): Buffer[Component]
    Definition Classes
    SeqOps
  178. def span(p: (Component) => Boolean): (Buffer[Component], Buffer[Component])
    Definition Classes
    IterableOps → IterableOnceOps
  179. def splitAt(n: Int): (Buffer[Component], Buffer[Component])
    Definition Classes
    IterableOps → IterableOnceOps
  180. def startsWith[B >: Component](that: collection.IterableOnce[B], offset: Int): Boolean
    Definition Classes
    SeqOps
  181. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Component, S]): S
    Definition Classes
    IterableOnce
  182. def stringPrefix: String
    Attributes
    protected[this]
    Definition Classes
    Buffer → Seq → Iterable
  183. def subtractAll(xs: collection.IterableOnce[Component]): Content.this.type
    Definition Classes
    Shrinkable
  184. def subtractOne(x: Component): Content.this.type
    Definition Classes
    Buffer → Shrinkable
  185. def sum[B >: Component](implicit num: math.Numeric[B]): B
    Definition Classes
    IterableOnceOps
  186. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  187. def tail: Buffer[Component]
    Definition Classes
    IterableOps
  188. def tails: collection.Iterator[Buffer[Component]]
    Definition Classes
    IterableOps
  189. def take(n: Int): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  190. def takeInPlace(n: Int): Content.this.type
    Definition Classes
    Buffer
  191. def takeRight(n: Int): Buffer[Component]
    Definition Classes
    IterableOps
  192. def takeRightInPlace(n: Int): Content.this.type
    Definition Classes
    Buffer
  193. def takeWhile(p: (Component) => Boolean): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  194. def takeWhileInPlace(p: (Component) => Boolean): Content.this.type
    Definition Classes
    Buffer
  195. def tapEach[U](f: (Component) => U): Buffer[Component]
    Definition Classes
    IterableOps → IterableOnceOps
  196. def to[C1](factory: Factory[Component, C1]): C1
    Definition Classes
    IterableOnceOps
  197. def toArray[B >: Component](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  198. final def toBuffer[B >: Component]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  199. def toIndexedSeq: collection.immutable.IndexedSeq[Component]
    Definition Classes
    IterableOnceOps
  200. final def toIterable: Content.this.type
    Definition Classes
    Iterable → IterableOps
  201. def toList: collection.immutable.List[Component]
    Definition Classes
    IterableOnceOps
  202. def toMap[K, V](implicit ev: <:<[Component, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  203. def toSeq: collection.immutable.Seq[Component]
    Definition Classes
    IterableOnceOps
  204. def toSet[B >: Component]: Set[B]
    Definition Classes
    IterableOnceOps
  205. def toString(): String
    Definition Classes
    Seq → Function1 → Iterable → AnyRef → Any
  206. def toVector: collection.immutable.Vector[Component]
    Definition Classes
    IterableOnceOps
  207. def transpose[B](implicit asIterable: (Component) => collection.Iterable[B]): Buffer[Buffer[B]]
    Definition Classes
    IterableOps
  208. def trimEnd(n: Int): Unit
    Definition Classes
    Buffer
  209. def trimStart(n: Int): Unit
    Definition Classes
    Buffer
  210. def unapply(a: Int): Option[Component]
    Definition Classes
    PartialFunction
  211. def unzip[A1, A2](implicit asPair: (Component) => (A1, A2)): (Buffer[A1], Buffer[A2])
    Definition Classes
    IterableOps
  212. def unzip3[A1, A2, A3](implicit asTriple: (Component) => (A1, A2, A3)): (Buffer[A1], Buffer[A2], Buffer[A3])
    Definition Classes
    IterableOps
  213. def update(n: Int, a: Component): Unit
    Definition Classes
    BufferWrapper → SeqOps
  214. def updated[B >: Component](index: Int, elem: B): Buffer[B]
    Definition Classes
    SeqOps
  215. def view: SeqView[Component]
    Definition Classes
    SeqOps → IterableOps
  216. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  217. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  218. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  219. def withFilter(p: (Component) => Boolean): WithFilter[Component, [_]Buffer[_]]
    Definition Classes
    IterableOps
  220. def zip[B](that: collection.IterableOnce[B]): Buffer[(Component, B)]
    Definition Classes
    IterableOps
  221. def zipAll[A1 >: Component, B](that: collection.Iterable[B], thisElem: A1, thatElem: B): Buffer[(A1, B)]
    Definition Classes
    IterableOps
  222. def zipWithIndex: Buffer[(Component, Int)]
    Definition Classes
    IterableOps → IterableOnceOps

Deprecated Value Members

  1. final def +=(elem1: Component, elem2: Component, elems: Component*): Content.this.type
    Definition Classes
    Growable
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use ++= aka addAll instead of varargs +=; infix operations with an operand of multiple args will be deprecated

  2. def -=(elem1: Component, elem2: Component, elems: Component*): Content.this.type
    Definition Classes
    Shrinkable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.3) Use --= aka subtractAll instead of varargs -=; infix operations with an operand of multiple args will be deprecated

  3. final def /:[B](z: B)(op: (B, Component) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  4. final def :\[B](z: B)(op: (Component, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  5. def aggregate[B](z: => B)(seqop: (B, Component) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  6. final def append(elems: Component*): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use appendAll instead

  7. def companion: IterableFactory[[_]Buffer[_]]
    Definition Classes
    IterableOps
    Annotations
    @deprecated @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @inline()
    Deprecated

    (Since version 2.13.0) Use iterableFactory instead

  8. final def copyToBuffer[B >: Component](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  9. def hasDefiniteSize: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)

  10. final def prefixLength(p: (Component) => Boolean): Int
    Definition Classes
    SeqOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use segmentLength instead of prefixLength

  11. final def prepend(elems: Component*): Content.this.type
    Definition Classes
    Buffer
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use prependAll instead

  12. final def repr: Buffer[Component]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside

  13. def reverseMap[B](f: (Component) => B): Buffer[B]
    Definition Classes
    SeqOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)

  14. def seq: Content.this.type
    Definition Classes
    Iterable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterable.seq always returns the iterable itself

  15. final def toIterator: collection.Iterator[Component]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  16. final def toStream: collection.immutable.Stream[Component]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

  17. final def toTraversable: collection.Traversable[Component]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toIterable instead

  18. final def transform(f: (Component) => Component): Content.this.type
    Definition Classes
    SeqOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use mapInPlace on an IndexedSeq instead

  19. final def union[B >: Component](that: collection.Seq[B]): Buffer[B]
    Definition Classes
    SeqOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use concat instead

  20. def view(from: Int, until: Int): View[Component]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)

Inherited from BufferWrapper[Component]

Inherited from Buffer[Component]

Inherited from Shrinkable[Component]

Inherited from Growable[Component]

Inherited from Clearable

Inherited from collection.mutable.Seq[Component]

Inherited from SeqOps[Component, [_]Buffer[_], Buffer[Component]]

Inherited from collection.mutable.Cloneable[Buffer[Component]]

Inherited from java.lang.Cloneable

Inherited from collection.Seq[Component]

Inherited from Equals

Inherited from SeqOps[Component, [_]Buffer[_], Buffer[Component]]

Inherited from PartialFunction[Int, Component]

Inherited from (Int) => Component

Inherited from collection.mutable.Iterable[Component]

Inherited from collection.Iterable[Component]

Inherited from IterableFactoryDefaults[Component, [x]Buffer[x]]

Inherited from IterableOps[Component, [_]Buffer[_], Buffer[Component]]

Inherited from IterableOnceOps[Component, [_]Buffer[_], Buffer[Component]]

Inherited from collection.IterableOnce[Component]

Inherited from AnyRef

Inherited from Any

Ungrouped