Examples of ContentPane


Examples of nextapp.echo2.app.ContentPane

        ButtonColumn controlsColumn = new ButtonColumn();
        controlsColumn.setCellSpacing(new Extent(5));
        controlsColumn.setStyleName("TestControlsColumn");
        add(controlsColumn);
       
        ContentPane contentPane = new ContentPane();
        add(contentPane);
       
        final Column contentColumn = new Column();
        contentPane.add(contentColumn);
       
        WindowTestControls windowTestControls;
        windowTestControls = new WindowTestControls("Root Level", InteractiveApp.getApp().getDefaultWindow().getContent());
        controlsColumn.add(windowTestControls);
        windowTestControls = new WindowTestControls("Embedded", contentPane);
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        ButtonColumn column = new ButtonColumn();
        windowPane.add(column);

        column.addButton("Add Modal Window", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ContentPane contentPane = (ContentPane) windowPane.getParent();
                WindowPane newWindowPane = createModalWindow("YetAnotherModal");
                newWindowPane.setModal(true);
                contentPane.add(newWindowPane);
            }
        });
       
        return windowPane;
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

                    w1.setWidth(new Extent(650));
                    w1.setHeight(new Extent(450));
                    w1.setTitle("Just A Window");
                    targetContentPane.add(w1);
                   
                    ContentPane c1 = new ContentPane();
                    final Button b1 = new Button("Click me:");
                    b1.setStyleName("Default");
                    b1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            b1.setText(b1.getText() + "!");
                        }
                    });
                    c1.add(b1);

                    w1.add(c1);
                   
                    WindowPane w2 = new WindowPane();
                    w2.setStyleName("Default");
                    final Button b2 = new Button("Click me:");
                    b2.setStyleName("Default");
                    b2.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            b2.setText(b2.getText() + "!");
                        }
                    });
                    w2.add(b2);
                   
                    w2.setTitle("But this one is modal.");
                    w2.setModal(true);
                   
                    c1.add(w2);
                }
            });
            addButton("Add Constrained Size Window", new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    WindowPane windowPane = createSimpleWindow("Constrained");
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

    /**
     * Tests changing content of window.
     */
    public void testChangeContent() {
        Window window = new Window();
        window.setContent(new ContentPane());
        ContentPane content = new ContentPane();
        window.setContent(content);
        assertEquals(content, window.getContent());
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

     * <code>Window</code>, tests for failure.
     */
    public void testOverload() {
        Window window = new Window();
        window.removeAll();
        window.add(new ContentPane());
        boolean exceptionThrown = false;
        try {
            window.add(new ContentPane());
        } catch (IllegalChildException ex) {
            exceptionThrown = true;
        }
        assertTrue(exceptionThrown);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

     */
    public Window init() {
        Window window = new Window();
        window.setTitle("Hello, world!");
       
        ContentPane contentPane = new ContentPane();
        window.setContent(contentPane);
       
        contentPane.add(new Label("Hello, world!"));
       
        return window;
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

   
    /**
     * Ensure WindowPane can be legally added to a ContentPane.
     */
    public void testValidParent() {
        ContentPane contentPane = new ContentPane();
        WindowPane windowPane = new WindowPane();
        contentPane.add(windowPane);
    }
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        }
       
        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));
        content.add(mainColumn);
       
        ContainerContext containerContext = (ContainerContext) getContextProperty(ContainerContext.CONTEXT_PROPERTY_NAME);
       
        Principal principal = containerContext.getUserPrincipal();
        mainColumn.add(new Label("getUserPrincipal(): " + (principal == null ? "null" : principal.getName())));
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

            }
        });
        controlRow.add(button);
       
        SplitPaneLayoutData splitPaneLayoutData;
        logPane = new ContentPane();
        logPane.setFont(new Font(Font.MONOSPACE, Font.PLAIN, new Extent(10)));
        logPane.setForeground(Color.GREEN);
        splitPaneLayoutData = new SplitPaneLayoutData();
        splitPaneLayoutData.setBackground(Color.BLACK);
        logPane.setLayoutData(splitPaneLayoutData);
View Full Code Here

Examples of nextapp.echo2.app.ContentPane

        }
       
        mainWindow = new Window();
        mainWindow.setTitle("NextApp Echo2 Serialization 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));
        content.add(mainColumn);
       
        Column serializeColumn = new Column();
        mainColumn.add(serializeColumn);
       
        Button button;
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.