Class hmiAdder

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----hmiViewer
                                           |
                                           +----hmiAdder

public class hmiAdder
extends hmiViewer
implements MouseListener
Extends hmiViewer so that widgets in this viewer can be copied into another viewer in the same AppletContext. The other viewer must be of type hmiDesigner.
You costomize the hmiAdder toolbox this way:
Example for this


Constructor Index

 o hmiAdder()

Method Index

 o callTrend()
Do nothing.
 o mouseClicked(MouseEvent)
This is the real task of this class: User clicks a widget, we add what was hit by the click to a fellow named viewer.
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)

Constructors

 o hmiAdder
 public hmiAdder()

Methods

 o callTrend
 public void callTrend()
Do nothing. We never call a trend script.

Overrides:
callTrend in class hmiViewer
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
This is the real task of this class: User clicks a widget, we add what was hit by the click to a fellow named viewer. We rely on that he is of type hmiD(esigner). To do so, we ask for the hit thingies class name, make another such thing, copy it's values and then add it to viewers element list. We suppose that the thingies new created clone himself knows best what to do with it's string parameters. So we use it's setMore, and it will act as if mother hmiViewer had given birth to it.

Overrides:
mouseClicked in class hmiViewer
 o mousePressed
 public void mousePressed(MouseEvent evt)
Overrides:
mousePressed in class hmiViewer
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
Overrides:
mouseReleased in class hmiViewer
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
Overrides:
mouseEntered in class hmiViewer
 o mouseExited
 public void mouseExited(MouseEvent evt)
Overrides:
mouseExited in class hmiViewer