示例#1
0
 public Command clone(
     Object theParentObject, Object[] theParams, uiFrame theFrame, CommandListener theListener) {
   try {
     SubtractCommand retVal = (SubtractCommand) super.clone();
     retVal.init(theListener, subtractMethod, theParentObject, theParams, addMethod);
     return retVal;
   } catch (Exception e) {
     e.printStackTrace();
     return null;
   }
 }
示例#2
0
 public Command clone(
     Object theParentObject, Object[] theParams, uiFrame theFrame, CommandListener theListener) {
   try {
     SetCommand retVal = (SetCommand) clone();
     // SetCommand retVal = (SetCommand) clone();
     retVal.init(theListener, writeMethod, theParentObject, theParams, readMethod);
     return retVal;
   } catch (Exception e) {
     e.printStackTrace();
     return null;
   }
 }