Package nextapp.echo2.app

Examples of nextapp.echo2.app.Window


    /**
     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        setStyleSheet(Styles.DEFAULT_STYLE_SHEET);
        mainWindow = new Window();
        mainWindow.setTitle("NextApp Echo2 Test Application");
        mainWindow.setContent(new WelcomePane());
       
        ContainerContext cc = (ContainerContext) getContextProperty(ContainerContext.CONTEXT_PROPERTY_NAME);
        if (!LIVE_DEMO_SERVER) {
View Full Code Here


    /**
     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        setStyleSheet(Styles.DEFAULT_STYLE_SHEET);
        Window window = new Window();
        window.setTitle(Messages.getString("Application.Title.Window"));
        window.setContent(new LoginScreen());
        return window;
    }
View Full Code Here

    public Window init() {
        if (InteractiveApp.LIVE_DEMO_SERVER) {
            throw new RuntimeException("Authentication test disabled on live demo server.");
        }
       
        Window mainWindow = new Window();
        mainWindow.setTitle("NextApp Echo2 Authentication Test Application");
       
        ContentPane content = new ContentPane();
        mainWindow.setContent(content);
       
        Column mainColumn = new Column();
        mainColumn.setBorder(new Border(new Extent(4), Color.BLUE, Border.STYLE_OUTSET));
        mainColumn.setInsets(new Insets(40));
        mainColumn.setCellSpacing(new Extent(20));
View Full Code Here

    public Window init() {
        if (InteractiveApp.LIVE_DEMO_SERVER) {
            throw new RuntimeException("Serialization test disabled on live demo server.");
        }
       
        mainWindow = new Window();
        mainWindow.setTitle("NextApp Echo2 Serialization Test Application");
       
        ContentPane content = new ContentPane();
        mainWindow.setContent(content);
       
View Full Code Here

   
    /**
     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        window = new Window();
        content = window.getContent();
        label = new Label("Hello, world!");
        content.add(label);
        return window;
    }
View Full Code Here

   
    /**
     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        window = new Window();
        window.setTitle("Echo2 Guess-A-Number");
        startNewGame();
        return window;
    }
View Full Code Here

        UpdateManager updateManager = ci.getUpdateManager();
        ServerUpdateManager serverUpdateManager = updateManager.getServerUpdateManager();
        ServerComponentUpdate[] componentUpdates = updateManager.getServerUpdateManager().getComponentUpdates();
       
        if (serverUpdateManager.isFullRefreshRequired()) {
            Window window = rc.getContainerInstance().getApplicationInstance().getDefaultWindow();
            ServerComponentUpdate fullRefreshUpdate = componentUpdates[0];
           
            // Dispose of removed descendants.
            Component[] removedDescendants = fullRefreshUpdate.getRemovedDescendants();
            disposeComponents(rc, fullRefreshUpdate, removedDescendants);
           
            // Perform full refresh.
            RootSynchronizePeer rootSyncPeer
                    = (RootSynchronizePeer) SynchronizePeerFactory.getPeerForComponent(window.getClass());
            rootSyncPeer.renderRefresh(rc, fullRefreshUpdate, window);
           
            setRootLayoutDirection(rc);
        } else {
            // Remove any updates whose updates are descendants of components which have not been rendered to the
View Full Code Here

            }
           
            ApplicationInstance applicationInstance = rc.getContainerInstance().getApplicationInstance();
            ApplicationInstance.setActive(applicationInstance);

            Window window = applicationInstance.getDefaultWindow();
           
            ServerComponentUpdate componentUpdate = new ServerComponentUpdate(window);
            ComponentSynchronizePeer syncPeer = SynchronizePeerFactory.getPeerForComponent(window.getClass());
            ((WindowPeer) syncPeer).renderRefresh(rc, componentUpdate, window);
           
            setAsynchronousMonitorInterval(rc);
            setFocus(rc, true);
            setModalContextRootId(rc);
View Full Code Here

            /**
             * @see nextapp.echo2.webcontainer.PartialUpdateParticipant#renderProperty(
             *      nextapp.echo2.webcontainer.RenderContext, nextapp.echo2.app.update.ServerComponentUpdate)
             */
            public void renderProperty(RenderContext rc, ServerComponentUpdate update) {
                Window window = (Window) update.getParent();
                String title = (String) window.getRenderProperty(Window.PROPERTY_TITLE);
                WindowUpdate.renderSetWindowTitle(rc.getServerMessage(), title);
            }
        });
    }
View Full Code Here

    /**
     * @see nextapp.echo2.webcontainer.RootSynchronizePeer#renderRefresh(nextapp.echo2.webcontainer.RenderContext,
     *      nextapp.echo2.app.update.ServerComponentUpdate, nextapp.echo2.app.Component)
     */
    public void renderRefresh(RenderContext rc, ServerComponentUpdate update, Component component) {
        Window window = (Window) component;
       
        String title = (String) window.getRenderProperty(Window.PROPERTY_TITLE);
        if (title != null) {
            WindowUpdate.renderSetWindowTitle(rc.getServerMessage(), title);
        }
       
        DomUpdate.renderElementRemoveChildren(rc.getServerMessage(), WindowHtmlService.ROOT_ID);
        Component[] addedChildren = window.getVisibleComponents();
        for (int i = 0; i < addedChildren.length; ++i) {
            ComponentSynchronizePeer childSyncPeer = SynchronizePeerFactory.getPeerForComponent(addedChildren[i].getClass());
            childSyncPeer.renderAdd(rc, update, WindowHtmlService.ROOT_ID, addedChildren[i]);
        }
    }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Window

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.