Class hmiInput

java.lang.Object
   |
   +----hmiElement
           |
           +----hmiInput

class hmiInput
extends hmiElement
Widget class that provides an input line.
Demo widgetParameters


Variable Index

 o canAccept
 o cx
 o decimals
 o digits
 o isFocused
 o L
I think this can allways be US.
 o nf
A NumberFormat thet will format values.
 o s

Constructor Index

 o hmiInput()

Method Index

 o action(MouseEvent)
This performs actions.
 o background(Graphics)
The background changes color on state input in progress or not.
 o getval()
getval transfers the updated values into the specific variables:
 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.
 o usesKey(KeyEvent)
If we have the focus, we can use numerical and CR key.
 o validate()
Checks input against bounds.

Variables

 o isFocused
 boolean isFocused
 o canAccept
 boolean canAccept
 o s
 String s
 o digits
 int digits
 o decimals
 int decimals
 o cx
 int cx
 o L
 static Locale L
I think this can allways be US. People are used to se points as decimal separator on computers.

 o nf
 static NumberFormat nf
A NumberFormat thet will format values.

Constructors

 o hmiInput
 hmiInput()

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 getval
 public void getval()
getval transfers the updated values into the specific variables:

Overrides:
getval in class hmiElement
 o background
 public void background(Graphics g)
The background changes color on state input in progress or not.

Overrides:
background 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 hmiElement
 o validate
 public void validate()
Checks input against bounds.

 o usesKey
 public boolean usesKey(KeyEvent e)
If we have the focus, we can use numerical and CR key.

Overrides:
usesKey in class hmiElement
 o action
 public void action(MouseEvent e)
This performs actions.

Overrides:
action in class hmiElement