Class

io.youi.hypertext

Selection

Related Doc: package hypertext

Permalink

abstract class Selection[T] extends Container

Selection provides a rectangular selection feature for multi-selecting elements on the screen.

T

the type of elements to select

Linear Supertypes
Container, Component, HTMLContainer, AbstractContainer[Component], WidgetContainer, AbstractComponent, Widget, TaskSupport, Updates, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Selection
  2. Container
  3. Component
  4. HTMLContainer
  5. AbstractContainer
  6. WidgetContainer
  7. AbstractComponent
  8. Widget
  9. TaskSupport
  10. Updates
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Selection(root: Element, elements: ⇒ ListSet[T], autoStyle: Boolean = true, adjustX: ⇒ Double = document.body.scrollLeft, adjustY: ⇒ Double = document.body.scrollTop, includeChildTargets: Boolean = false)

    Permalink

    root

    the root element to attach events to

    elements

    function to get a list of all elements to check for selection

    autoStyle

    if true defines the default styling of the outline (defaults to true)

    adjustX

    offset adjustment to properly handle for horizontal scrolling

    adjustY

    offset adjustment to properly handle for vertical scrolling

Type Members

  1. type Child = Component

    Permalink
    Definition Classes
    AbstractContainer → WidgetContainer

Abstract Value Members

  1. abstract def boxFor(element: T): BoundingBox

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val actualHeight: Var[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractComponent
  5. val actualWidth: Var[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractComponent
  6. def addAfter(c: Component, previous: Option[Component]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerAbstractContainer
  7. def addListener(base: Element, deferToRoot: Boolean = true, includeChildTargets: Boolean = false): SelectionListener[T]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. lazy val backgroundColor: ColorProperties

    Permalink
    Definition Classes
    AbstractComponent
  10. def blur(): Unit

    Permalink
    Definition Classes
    Component
  11. lazy val border: ComponentBorders

    Permalink
    Definition Classes
    Component
  12. def changeHighlighting(highlighting: ListSet[T]): Unit

    Permalink
    Attributes
    protected
  13. lazy val childEntries: Var[Vector[Component]]

    Permalink
    Attributes
    protected[io.youi]
    Definition Classes
    AbstractContainer → WidgetContainer
  14. def children: Var[Vector[Component]]

    Permalink
    Definition Classes
    Container
  15. def click(): Unit

    Permalink
    Definition Classes
    Component
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. lazy val color: ColorProperties

    Permalink
    Definition Classes
    AbstractComponent
  18. def createInstance(task: Task): TaskInstance

    Permalink
    Definition Classes
    TaskSupport
  19. lazy val delta: Channel[Double]

    Permalink
    Definition Classes
    Updates
  20. def determineActualHeight: Double

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  21. def determineActualWidth: Double

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  22. val element: Element

    Permalink
    Definition Classes
    ContainerComponentHTMLContainer
  23. val enabled: Var[Boolean]

    Permalink
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. val event: HTMLEvents

    Permalink
    Definition Classes
    Component
  27. def every(delay: FiniteDuration, until: Option[FiniteDuration])(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def focus(): Unit

    Permalink
    Definition Classes
    Component
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. def highlightAdded(element: T): Unit

    Permalink
  33. def highlightRemoved(element: T, isSelected: Boolean): Unit

    Permalink
  34. val highlighted: Var[ListSet[T]]

    Permalink
  35. lazy val id: Var[String]

    Permalink
    Definition Classes
    AbstractComponent
  36. def init(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component → Widget
  37. val innerHeight: Var[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractComponent
  38. val innerWidth: Var[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractComponent
  39. def invalidate(): Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    Widget
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. def layout: Var[Layout]

    Permalink
    Definition Classes
    Container
  42. lazy val layoutManager: Var[Layout]

    Permalink
    Attributes
    protected
    Definition Classes
    WidgetContainer
  43. object margin

    Permalink
    Definition Classes
    AbstractComponent
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def nextFrame(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def once(delay: FiniteDuration)(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  49. lazy val opacity: Var[Double]

    Permalink
    Definition Classes
    AbstractComponent
  50. lazy val outline: Border

    Permalink
    Definition Classes
    Component
  51. lazy val overflow: ComponentOverflow

    Permalink
    Definition Classes
    Component
  52. object padding

    Permalink
    Definition Classes
    AbstractComponent
  53. lazy val parent: State[Option[AbstractComponent]]

    Permalink
    Definition Classes
    AbstractComponent
  54. lazy val parentWidget: Var[Option[WidgetContainer]]

    Permalink
    Attributes
    protected[io.youi]
    Definition Classes
    Widget
  55. object position extends WidgetPosition

    Permalink
    Definition Classes
    AbstractComponent → Widget
  56. def prop[T](get: ⇒ T, set: (T) ⇒ Unit, mayCauseResize: Boolean): Var[T]

    Permalink
    Attributes
    protected[io.youi.hypertext]
    Definition Classes
    Component
  57. def remove(c: Component): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerAbstractContainer
  58. def removeFromParent(): Boolean

    Permalink
    Definition Classes
    AbstractComponent
  59. val rootListener: SelectionListener[T]

    Permalink
  60. lazy val rotation: Var[Double]

    Permalink
    Definition Classes
    AbstractComponent
  61. object scale

    Permalink
    Definition Classes
    AbstractComponent
  62. object scrollbar

    Permalink
    Definition Classes
    AbstractComponent
  63. def select(x1: Double, y1: Double, x2: Double, y2: Double, elements: ListSet[T]): ListSet[T]

    Permalink
  64. def selectHighlighted(toggle: Boolean): Unit

    Permalink
    Attributes
    protected
  65. val selected: Var[ListSet[T]]

    Permalink
  66. def selectionAdded(element: T): Unit

    Permalink
  67. def selectionRemoved(element: T): Unit

    Permalink
  68. object size extends WidgetSize

    Permalink
    Definition Classes
    AbstractComponent → Widget
  69. def start(task: Task): TaskInstance

    Permalink
    Definition Classes
    TaskSupport
  70. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  71. val time: Var[Long]

    Permalink
  72. def toString(): String

    Permalink
    Definition Classes
    AbstractComponent → AnyRef → Any
  73. def update(delta: Double): Unit

    Permalink
    Definition Classes
    AbstractContainer → Updates
  74. def updateBackgroundColor(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  75. def updateColor(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  76. def updateHighlighting(x1: Double, y1: Double, x2: Double, y2: Double): Unit

    Permalink
    Attributes
    protected
  77. def updateSize(): Unit

    Permalink
    Definition Classes
    Component
  78. def updateTasks(): Boolean

    Permalink
    Definition Classes
    TaskSupport
  79. def updateTransform(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  80. lazy val visible: Var[Boolean]

    Permalink
    Definition Classes
    AbstractComponent
  81. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. val x1: Var[Double]

    Permalink
  85. val x2: Var[Double]

    Permalink
  86. val y1: Var[Double]

    Permalink
  87. val y2: Var[Double]

    Permalink

Inherited from Container

Inherited from Component

Inherited from HTMLContainer

Inherited from AbstractContainer[Component]

Inherited from WidgetContainer

Inherited from AbstractComponent

Inherited from Widget

Inherited from TaskSupport

Inherited from Updates

Inherited from AnyRef

Inherited from Any

Ungrouped