Package com.google.appengine.demos.taskengine.client.ControlBar

Examples of com.google.appengine.demos.taskengine.client.ControlBar.Controls


      TaskDetails.Resources resources) {
    TaskDetails.Css css = resources.taskDetailsCss();

    // Setup the controls that will be added to the top bar of the TaskDetails
    // page.
    Controls controls = new Controls(resources);
    controls.addControl(css.back(), new EventListener() {
      public void onBrowserEvent(Event event) {
        controller.goToTaskList();
      }
    });
View Full Code Here


  public static Controls createControls(final Controller controller,
      TaskList.Resources resources) {
    TaskList.Css css = resources.taskListCss();

    // Setup the controls that will be added to the top bar the TaskList screen
    Controls controls = new Controls(resources);
    controls.addControl(css.plus(), new EventListener() {

      public void onBrowserEvent(Event event) {
        controller.loadTask(null);
        controller.goToTaskDetails();
      }

    });

    controls.addControl(css.garbage(), new EventListener() {

      public void onBrowserEvent(Event event) {
        controller.deleteCompletedTasks();
      }
View Full Code Here

TOP

Related Classes of com.google.appengine.demos.taskengine.client.ControlBar.Controls

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.