Exemplo n.º 1
0
 public void updateValue() {
   if (inModalMode) return;
   if (vnmrIf == null) return;
   if (showVal != null) vnmrIf.asyncQueryShow(this, showVal);
   else if (setVal != null) vnmrIf.asyncQueryParam(this, setVal);
   if (caretQuery != null) vnmrIf.asyncQueryParamNamed("caret", this, caretQuery);
 }
Exemplo n.º 2
0
 private void sendCaretCmd() {
   if (caretCmd == null || caretCmd.length() == 0) return;
   String cmd = caretCmd;
   if (cmd.indexOf("$VALUE") >= 0) cmd = subString(caretCmd, "$VALUE", "" + caretValue);
   vnmrIf.sendVnmrCmd(this, cmd);
   if (debug) System.out.println("caretCmd: " + cmd);
 }
Exemplo n.º 3
0
 public void setShowValue(ParamIF pf) {
   int newActive = isActive;
   if (pf != null && pf.value != null) {
     String s = pf.value.trim();
     newActive = Integer.parseInt(s);
     if (newActive > 0) {
       setOpaque(inEditMode);
       if (bg != null) {
         setOpaque(true);
         setBackground(bgColor);
       }
     } else {
       setOpaque(true);
       if (newActive == 0) setBackground(Global.IDLECOLOR);
       else setBackground(Global.NPCOLOR);
     }
     if (newActive >= 0) {
       setEnabled(true);
       isEnabled = true;
       if (setVal != null) vnmrIf.asyncQueryParam(this, setVal, precision);
     } else {
       setEnabled(false);
       isEnabled = false;
     }
     setBorder(isEnabled);
   }
   if (newActive != isActive) {
     isActive = newActive;
     repaint();
   }
 }
Exemplo n.º 4
0
 public void sendTextCmd() {
   if (vnmrCmd == null || vnmrCmd.length() == 0) return;
   vnmrIf.sendVnmrCmd(this, vnmrCmd);
   if (debug) System.out.println("textCmd: " + vnmrCmd);
 }
Exemplo n.º 5
0
 public void sendVnmrCmd() {
   if (vnmrCmd == null || vnmrCmd.length() == 0) return;
   vnmrIf.sendVnmrCmd(this, vnmrCmd);
 }