public void action(int eventType, MouseEvent e) { switch (eventType) { case GeDyn.eEvent_MB1Down: ((GeComponent) dyn.comp).colorInverse = 1; dyn.repaintNow = true; break; case GeDyn.eEvent_MB1Up: ((GeComponent) dyn.comp).colorInverse = 0; dyn.repaintNow = true; break; case GeDyn.eEvent_MB1Click: if ((dyn.actionType & GeDyn.mActionType_Confirm) != 0) break; if (dyn.instance == null) Jop.executeCommand(dyn.session, command); else Jop.executeCommand(dyn.session, RtUtilities.strReplace(command, "$object", dyn.instance)); break; } }
public void confirmYes() { PwrtStatus sts; switch (clickAction) { case Jop.BUTTON_ACTION_SET: sts = en.gdh.setObjectInfo(pwrAttribute, true); if (sts.evenSts()) System.out.println("setObjectInfoError " + sts); break; case Jop.BUTTON_ACTION_RESET: sts = en.gdh.setObjectInfo(pwrAttribute, false); if (sts.evenSts()) System.out.println("setObjectInfoError " + sts); break; case Jop.BUTTON_ACTION_TOGGLE: sts = en.gdh.toggleObjectInfo(pwrAttribute); if (sts.evenSts()) System.out.println("setObjectInfoError " + sts); break; case Jop.BUTTON_ACTION_COMMAND: if (command.compareTo("") != 0) Jop.executeCommand(session, command); break; } }