Package org.springframework.richclient.application

Examples of org.springframework.richclient.application.PageListener


    @Override
    public ApplicationPage createApplicationPage(ApplicationWindow window, PageDescriptor descriptor) {
        MyDoggyApplicationPage page = new MyDoggyApplicationPage(window, descriptor);

        window.addPageListener(new PageListener() {

            @Override
            public void pageOpened(ApplicationPage page) {
                // normally this should be called on application start
                MyDoggyApplicationPage myDoggyApplicationPage = (MyDoggyApplicationPage) page;
View Full Code Here


        VLDockingApplicationPage page = new VLDockingApplicationPage(window, descriptor);
        if (reusePages) {
            cachePage(page);
        }

        window.addPageListener(new PageListener() {
            public void pageOpened(ApplicationPage page) {
                // nothing to do here
            }

            public void pageClosed(ApplicationPage page) {
View Full Code Here

* @author Andy DePue
*/
public class DefaultApplicationWindowTests extends SpringRichTestCase {

    public void testRegressionFailureToRemovePageListener() {
        PageListener pageListener = (PageListener)EasyMock.createNiceMock(PageListener.class);
        EasyMock.replay(pageListener);
        DefaultApplicationWindow daw = new DefaultApplicationWindow();
        daw.addPageListener(pageListener);

        try {
View Full Code Here

     * org.springframework.richclient.application.PageDescriptor)
     */
    public ApplicationPage createApplicationPage(ApplicationWindow window, PageDescriptor descriptor) {
        MyDoggyApplicationPage page = new MyDoggyApplicationPage(window, descriptor);

        window.addPageListener(new PageListener() {

            public void pageOpened(ApplicationPage page) {
                // normally this should be called on application start
                MyDoggyApplicationPage myDoggyApplicationPage = (MyDoggyApplicationPage) page;
                // determine wether we can load from file or
View Full Code Here

TOP

Related Classes of org.springframework.richclient.application.PageListener

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.