Package com.google.gwt.sample.expenses.shared

Examples of com.google.gwt.sample.expenses.shared.ReportProxy


    // Switch to the pending view.
    setNotesEditState(false, true, pendingNotes);

    // Submit the delta.
    ReportRequest editRequest = expensesRequestFactory.reportRequest();
    ReportProxy editableReport = editRequest.edit(report);
    editableReport.setNotes(pendingNotes);
    editRequest.persist().using(editableReport).fire(new Receiver<Void>() {
      @Override
      public void onSuccess(Void ignore) {
      }
    });
View Full Code Here


  public void onAdd() {
  }

  @SuppressWarnings("deprecation")
  public void onCustom() {
    ReportProxy editableReport = request.edit(report);
    editableReport.setPurpose(purposeText.getText());
    editableReport.setNotes(notesText.getText());
    editableReport.setDepartment(departmentList.getValue(departmentList.getSelectedIndex()));

    // TODO(jgw): Use non-deprecated date methods for this.
    Date date = new Date(dateYear.getSelectedIndex() + 100,
        dateMonth.getSelectedIndex(), dateDay.getSelectedIndex() + 1);
    editableReport.setCreated(date);

    // TODO: wait throbber
    request.fire(new Receiver<Void>() {
      @Override
      public void onSuccess(Void ignore) {
View Full Code Here

TOP

Related Classes of com.google.gwt.sample.expenses.shared.ReportProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.