Package pages

Source Code of pages.IndexPage

package pages;

import play.mvc.Result;
import funcy.Form;
import funcy.Page;

public class IndexPage extends Page {

  public IndexPage() {
    this(Page.get("/"));
  }

  public IndexPage(Result result) {
    super(result, "/");
  }

  public IndexPage save(String msg) {
    Form form = form(0);
    form.set("test", msg);
    return new IndexPage(form.submitName("Save"));
  }

  public IndexPage clickReload() {
    return new IndexPage(clickName("Reload"));
  }
}
TOP

Related Classes of pages.IndexPage

TOP
Copyright © 2018 www.massapi.com. 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.