Class hmiButSwitch

java.lang.Object
   |
   +----hmiElement
           |
           +----hmiPushButton
                   |
                   +----hmiButSwitch

class hmiButSwitch
extends hmiPushButton
Widget class that provides an on/off switch.
Demo widgetParameters


Constructor Index

 o hmiButSwitch()

Method Index

 o action(MouseEvent)
Anchestor pushButton has a quite special behaviour in action.
 o needCells()
Tell owner, how many cellRefs we will need.
Overwrite this method in classes that need more than the 16 standard parameters.
 o paintmore(Graphics)
Overwrite this to draw your widget's special appearence on the prepared background rectangle.
 o setMore(String, int)
Get any extra parameters.
Overwrite this method in classes that need more than the 16 standard parameters.

Constructors

 o hmiButSwitch
 hmiButSwitch()

Methods

 o needCells
 public int needCells()
Tell owner, how many cellRefs we will need.
Overwrite this method in classes that need more than the 16 standard parameters.

Overrides:
needCells in class hmiElement
 o setMore
 public void setMore(String s,
                     int n)
Get any extra parameters.
Overwrite this method in classes that need more than the 16 standard parameters.

Overrides:
setMore in class hmiElement
 o paintmore
 public void paintmore(Graphics g)
Overwrite this to draw your widget's special appearence on the prepared background rectangle.

Overrides:
paintmore in class hmiPushButton
 o action
 public void action(MouseEvent e)
Anchestor pushButton has a quite special behaviour in action. We go back to normalcy (putVal) here.

Overrides:
action in class hmiPushButton