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; } }
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; } }