Package er.examples.movies

Source Code of er.examples.movies.NavigationMenu

//
// NavigationMenu.java: Class file for WO Component 'NavigationMenu'
// Project ERMovies
//
// Created by max on Mon Mar 03 2003
//
package er.examples.movies;

import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;
import com.webobjects.directtoweb.D2WPage;
import com.webobjects.foundation.NSKeyValueCoding;
import com.webobjects.foundation.NSTimestamp;

public class NavigationMenu extends WOComponent {

    public NavigationMenu(WOContext context) {
        super(context);
    }

    public NSKeyValueCoding navigationContext() {
        NSKeyValueCoding context = null;
        if (context().page() instanceof D2WPage) {
            context = ((D2WPage)context().page()).d2wContext();
        }
        return context;
    }

    public NSTimestamp now() { return new NSTimestamp(); }

}
TOP

Related Classes of er.examples.movies.NavigationMenu

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.