Examples of ApplicationWindow


Examples of org.springframework.richclient.application.ApplicationWindow

            }
        }
    }

    protected JFrame resolveParentFrame() {
        ApplicationWindow activeWindow = Application.isLoaded() ? Application.instance().getActiveWindow() : null;
        return (activeWindow == null) ? null : activeWindow.getControl();
    }
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

                    .getService(MessageSourceAccessor.class))
                    .getMessage("applicationDialog.defaultException", defaultMessage);
        }

        Message message = new DefaultMessage(exceptionMessage, Severity.ERROR);
        ApplicationWindow activeWindow = Application.instance().getActiveWindow();
        JFrame parentFrame = (activeWindow == null) ? null : activeWindow.getControl();
        JOptionPane.showMessageDialog(parentFrame, message.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
    }
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

     *
     * @return The control component of the application window, never null.
     */
    protected JFrame getParentWindowControl() {
        // allow subclasses to derive where the application window comes from
        final ApplicationWindow applicationWindow = getApplicationWindow();
        if (applicationWindow == null) {
            return Application.instance().getActiveWindow().getControl();
        }
        return applicationWindow.getControl();
    }
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

public class DefaultApplicationPageFactoryTests extends SpringRichTestCase {

  public void testCreate() {
    DefaultApplicationPageFactory factory = new DefaultApplicationPageFactory();
   
    ApplicationWindow window = (ApplicationWindow) EasyMock.createMock(ApplicationWindow.class);
    SingleViewPageDescriptor descriptor= new SingleViewPageDescriptor(new DefaultViewDescriptor());
   
    DefaultApplicationPage page = (DefaultApplicationPage) factory.createApplicationPage(window, descriptor);
    assertNotNull("page cannot be null", page);
    assertEquals(window, page.getWindow());
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

    return selectionManager;
  }

  @NotNull
  public WindowSelectionManager getActiveWindowSelectionManager() {
    ApplicationWindow activeWindow = Application.instance().getActiveWindow();
    return getWindowSelectionManager( activeWindow );
  }
View Full Code Here
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.