Пример #1
0
  /** Send a value to the remove Meem */
  public void valueChanged(Value v) {

    Serializable value = null;
    if (v instanceof NumberValue) {
      value = new Float(v.floatValue());
    } else { // if (p instanceof FloatPosition) {
      value = new String(v.toString());
    }
    send("valueChanged", new Serializable[] {value});
  }
Пример #2
0
 public void valueChanged(Value value) {
   String str = value.toString();
   if (onString.equals(str)) {
     binaryOutput.valueChanged(true);
     binaryStateConduit.valueChanged(true);
   } else if (offString.equals(str)) {
     binaryOutput.valueChanged(false);
     binaryStateConduit.valueChanged(false);
   } else {
     // ignore
   }
 }