示例#1
0
  /** Create a new secRole object. <br> */
  private void doNew() {

    /** !!! DO NOT BREAK THE TIERS !!! */
    // We don't create a new DomainObject() in the frontend.
    // We GET it from the backend.
    setRole(getSecurityService().getNewSecRole());

    doClear(); // clear all commponents
    doEdit(); // edit mode

    btnCtrl.setBtnStatus_New();

    // remember the old vars
    doStoreInitValues();
  }
示例#2
0
  /** Create a new orderPosition object. <br> */
  private void doNew() {

    /** !!! DO NOT BREAK THE TIERS !!! */
    // We don't create a new DomainObject() in the frontend.
    // We GET it from the backend.
    Orderposition anOrderposition = getOrderService().getNewOrderposition();
    setOrderposition(anOrderposition);
    anOrderposition.setOrder(order);

    doClear(); // clear all commponents
    doEdit(); // edit mode

    btnCtrl.setBtnStatus_New();

    // remember the old vars
    doStoreInitValues();
  }