summaryrefslogtreecommitdiff
path: root/src/swing/scala/swing/event/AdjustingEvent.scala
blob: 3867f9ed79f19ae6f0dcd60fe8bac65789d61fbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2007-2009, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$


package scala.swing
package event

/** <p>
 *    An event that indicates some editing operation that can be still in
 *    progress.<br/>
 *    Example: dragging a slider creates a number of <code>AdjustmentEvents</code>
 *    with <code>adjusting == true</code> until the user finally releases the
 *    mouse button.
 *  </p>
 */
trait AdjustingEvent extends ComponentEvent {
  def adjusting: Boolean
  def committed: Boolean = !adjusting
}