Package com.google.gwt.sample.expenses.client.place

Examples of com.google.gwt.sample.expenses.client.place.ReportListPlace$Tokenizer


    expenseTree.setListener(new ExpenseTree.Listener() {

      public void onSelection(String department, EntityProxyId<EmployeeProxy> employee) {
        lastEmployee = employee;
        lastDepartment = department;
        placeController.goTo(new ReportListPlace(employee, department));
      }
    });

    // Listen for requests from the ExpenseList.
    expenseList.setListener(new ExpenseReportList.Listener() {
      public void onReportSelected(ReportProxy report) {
        placeController.goTo(new ReportPlace( //
            new ReportListPlace(lastEmployee, lastDepartment), //
            report.stableId() //
        ));
      }
    });
View Full Code Here


      }
    });
  }

  public ReportListPlace getReportListPlace() {
    ReportListPlace listPlace = place.getListPlace();
    return listPlace == null ? ReportListPlace.ALL : listPlace;
  }
View Full Code Here

  public void onStop() {
  }

  public void start(AcceptsOneWidget panel, EventBus eventBus) {
    final ReportListPlace listPlace = place.getListPlace();

    if (listPlace.getEmployeeId() == null) {
      expensesRequestFactory.find(place.getReportId()).fire(
          new Receiver<ReportProxy>() {
            @Override
            public void onSuccess(ReportProxy response) {
              setReportRecord(response, listPlace.getDepartment(), null);
            }
          });
    } else {
      new EmployeeReportFetcher().Run(listPlace.getEmployeeId(),
          place.getReportId(),
          new Receiver<ExpenseReportDetails.EmployeeReportFetcher>() {
            @Override
            public void onSuccess(EmployeeReportFetcher response) {
              setReportRecord(response.fetchedReport,
                  listPlace.getDepartment(), response.fetchedEmployee);
            }
          });
    }

    EntityProxyChange.registerForProxyType(eventBus, ExpenseProxy.class,
View Full Code Here

  private static String INCORRECT_MANIFEST_LOCATION = "testData/manifestTest/incorrect"; //$NON-NLS-1$

  private ManifestParseTree parse(InputStream inputStream) throws IOException, TokenizerException, ParserException {
    Preprocessor preprocessor = new ManifestPreprocessor();
    List<InputLine> contents = preprocessor.process(inputStream);
    Tokenizer tokenizer = new ManifestTokenizer(contents);

    Parser parser = new ManifestParser();
    return parser.parse(tokenizer);
  }
View Full Code Here

  }

  private ManifestParseTree parse(InputStream inputStream) throws IOException, TokenizerException, ParserException {
    Preprocessor preprocessor = new ManifestPreprocessor();
    List<InputLine> contents = preprocessor.process(inputStream);
    Tokenizer tokenizer = new ManifestTokenizer(contents);

    Parser parser = new ManifestParser();
    return parser.parse(tokenizer);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.sample.expenses.client.place.ReportListPlace$Tokenizer

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.