Scala Monitoring and Control System API
com.lafros.macs

trait ControlsGui

[source: com/lafros/macs/ControlsGui.scala]

trait ControlsGui
extends Gui with AnyRef
control-panel GUI, for controlling the corresponding device interactively. Implementations should also implement ResultHandler if they wish to access the results of commands submitted, and ExceptionHandler, any exception thrown (after cmd has returned). A public constructor is required, optionally taking an argument corr'ding to the constants passed to the Di.Factory.createDi method invoked when deploying the device.
Author
Rob Dickens
Direct Known Subclasses:
AnyPd.ControlsGui

Type Summary
type Cmd
alias for ControlsGui.Cmd.
Value Summary
abstract val cmd : scala.PartialFunction
partial function returning a command to be submitted to the device; applied whenever a 'trigger' (see submitCmd) generates an event. Any exception thrown (before a command could be returned) will be caught and reported.
Values and Variables inherited from Gui
component (abstract)
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Object Summary
object submitCmd extends scala.PartialFunction[scala.swing.event.Event, Unit]
to be added to the reactions of all components which are to trigger command submission. All events originating from those components will then be processed by cmd, whose result will be submitted as the command.
Type Details
type Cmd
alias for ControlsGui.Cmd.

Value Details
abstract val cmd : scala.PartialFunction
partial function returning a command to be submitted to the device; applied whenever a 'trigger' (see submitCmd) generates an event. Any exception thrown (before a command could be returned) will be caught and reported.


Copyright 2009 Latterfrosken Software Development Limited