Class cellRef

java.lang.Object
   |
   +----cellRef

public class cellRef
extends Object
A class that provides a fixed or variable value for HMI elements.


Variable Index

 o coord
The variable name:
a spreadsheet coordinate for VISUAL
whatever the CI needs for other communication interfaces
 o isNum
means this is a fixed number.
 o isText
means this is a fixed text, NOT a variable name.
 o owner
The widget this variable belongs to.
 o value
the numerical value.

Constructor Index

 o cellRef(String, cellRefHolder, boolean)
Constructs the cellRef from a String.

Method Index

 o getCont()
retrieve textual contents, either from owner's table or by converting a number to text:
 o getInt()
Retrieve numeric value as integer.
 o getNum()
Retrieve numeric value as double.

Variables

 o isNum
 public boolean isNum
means this is a fixed number.

 o isText
 public boolean isText
means this is a fixed text, NOT a variable name.

 o value
 public double value
the numerical value.

 o coord
 public String coord
The variable name:
a spreadsheet coordinate for VISUAL
whatever the CI needs for other communication interfaces

 o owner
 cellRefHolder owner
The widget this variable belongs to.

Constructors

 o cellRef
 public cellRef(String t,
                cellRefHolder owner,
                boolean isText)
Constructs the cellRef from a String. If the string can be converted to a number, then it IS a number, else it depends on the hmiElement. It can tell "this is fixed text". Else it's a cell coordinate. The rules are:
1. Create it with a string that can be converted to a number and it will be number from then.
2. Create it with a string that cannot be converted to a number and it will put it's String (usually a cell coordinate) as a key into owner's hashtable in the hope that owner's hmiCommunicationInterface will provide a number for the string .
3. Create it with a string that can or cannot be converted to a number and set isText to true. That means you promise to retrieve it's contents in textual context only. This is for thingies that want to store a text. Thus it provides a uniform interface to hmiDesigner. (There is a cellRef for each parameter, even if it is a fixed String).

Methods

 o getInt
 public int getInt()
Retrieve numeric value as integer.

 o getNum
 public double getNum()
Retrieve numeric value as double.

 o getCont
 public String getCont()
retrieve textual contents, either from owner's table or by converting a number to text: