diff options
Diffstat (limited to 'src/swing/scala/swing/Action.scala')
-rw-r--r-- | src/swing/scala/swing/Action.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/swing/scala/swing/Action.scala b/src/swing/scala/swing/Action.scala index e259ba748a..46dc470558 100644 --- a/src/swing/scala/swing/Action.scala +++ b/src/swing/scala/swing/Action.scala @@ -1,10 +1,22 @@ package scala.swing import javax.swing.{KeyStroke, Icon} +import java.awt.event.ActionListener object Action { case object NoAction extends Action("") { def apply() {} } + object Trigger { + abstract trait Wrapper extends Component with Action.Trigger { + self: Component { + def peer: javax.swing.JComponent { + def addActionListener(a: ActionListener) + def removeActionListener(a: ActionListener) + } + } => + } + } + /** * Anything that triggers an action. */ |