Package com.webobjects.directtoweb

Examples of com.webobjects.directtoweb.NextPageDelegate


     * page from it.
     *
     */
    protected WOComponent nextPageFromDelegate() {
        WOComponent result = null;
        NextPageDelegate delegate = nextPageDelegate();
        if (delegate != null) {
            if (!((delegate instanceof ERDBranchDelegate) && (branchName() == null))) {
                // AK CHECKME: we assume here, because nextPage() in
                // ERDBranchDelegate is final,
                // we can't do something reasonable when none of the branch
                // buttons was selected.
                // This allows us to throw a branch delegate at any page, even
                // when no branch was taken
                result = delegate.nextPage(this);
            }
        }
        return result;
    }
View Full Code Here


          signUp = (People) page.object();
          session().setSignUp(signUp);
        } else {
          page = (ERD2WInspectPage) editPageNamed("SignUpPeople", signUp);
        }
        page.setNextPageDelegate(new NextPageDelegate() {

      public WOComponent nextPage(WOComponent arg0) {
        if(page.objectWasSaved()) {
          session().finishSignUp();
        } else {
View Full Code Here

        qpi.setQueryMatchForKey(new NSArray(State.BUILD), ERXPrimaryKeyListQualifier.IsContainedInArraySelectorName, Bug.Key.STATE);
        Release release = Release.clazz.defaultRelease(ec);
        if(release != null) {
            qpi.setQueryMatchForKey(new NSArray(release), ERXPrimaryKeyListQualifier.IsContainedInArraySelectorName, Bug.Key.TARGET_RELEASE);
        }
        qpi.setNextPageDelegate(new NextPageDelegate() {
            public WOComponent nextPage(WOComponent sender2) {
                QueryPageInterface qpi2 = (QueryPageInterface) sender2;
                WOComponent bugList = sender2.pageWithName("GroupedBugsByRelease");
                //bugList.takeValueForKey(qpi2.queryDataSource().fetchObjects(), "bugsInBuild");
                return bugList;
View Full Code Here

TOP

Related Classes of com.webobjects.directtoweb.NextPageDelegate

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.