Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DockLayoutPanel$DockAnimateCommand


        this(presenter, reference, true);
    }

    public Widget asWidget() {

        DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX);

        VerticalPanel panel = new VerticalPanel();
        panel.setStyleName("window-content");

        final Form<PropertyRecord> form = new Form<PropertyRecord>(PropertyRecord.class);

        TextBoxItem nameItem = new TextBoxItem("key", "Name");
        TextBoxItem valueItem = new TextBoxItem("value", "Value");
        CheckBoxItem bootItem = new CheckBoxItem("bootTime", "Boot-Time");

        if(Console.MODULES.getBootstrapContext().isStandalone() || !includeBootTime)
            form.setFields(nameItem, valueItem);
        else
            form.setFields(nameItem, valueItem, bootItem);

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                         // save
                        PropertyRecord property = form.getUpdatedEntity();
                        presenter.onCreateProperty(reference, property);
                    }
                },
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        // cancel
                        presenter.closePropertyDialoge();
                    }
                }
        );

        panel.add(form.asWidget());

        wrapper.addSouth(options, 35);
        wrapper.add(panel);
        return wrapper;
    }
View Full Code Here


        this.presenter = presenter;
        this.reference = reference;
    }

    public Widget asWidget() {
        DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX);

        VerticalPanel panel = new VerticalPanel();
        panel.setStyleName("fill-layout-width");

        final Form<PropertyRecord> form = new Form<PropertyRecord>(PropertyRecord.class);

        final TextBoxItem nameItem = new TextBoxItem("key", Console.CONSTANTS.common_label_name());
        final TextAreaItem valueItem = new TextAreaItem("value", Console.CONSTANTS.common_label_value());

        form.setFields(nameItem, valueItem);

        DialogueOptions options = new DialogueOptions(
            new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    // save

                    // Not using form.getUpdatedEntity() here as this goes through a JSON
                    // serialization phase which causes issues with multi-line values
                    PropertyRecord property = factory.property().as();
                    property.setKey(nameItem.getValue());
                    property.setValue(valueItem.getValue());

                    presenter.onCreateProperty(reference, property);
                    presenter.closePropertyDialoge();
                }
            },
            new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    // cancel
                    presenter.closePropertyDialoge();
                }
            }
        );

        panel.add(form.asWidget());

        wrapper.addSouth(options, 35);
        wrapper.add(panel);
        return wrapper;
    }
View Full Code Here

        headerPanel.setStyleName("header-panel");

        footerPanel = new LayoutPanel();
        footerPanel.setStyleName("footer-panel");

        panel = new DockLayoutPanel(Style.Unit.PX);
        panel.getElement().setAttribute("id", "container");

        panel.addNorth(headerPanel, 64);
        panel.addSouth(footerPanel, 30);
        panel.add(mainContentPanel);
View Full Code Here

        }

        //init JS hooks
        this.setHooks(this);

        mainLayout = new DockLayoutPanel(Unit.EM);

        final ScrollPanel mainPanel = new ScrollPanel();

        mainLayout.add(mainPanel);
View Full Code Here

    /**
     * Create the main panel.
     *
     */
    private void setupMainPanel(BookmarkInfo bi) {
        mainPanel = new DockLayoutPanel( Unit.EM );

        if ( bi.isShowChrome() ) {
            mainPanel.addNorth( titlePanel,
                                4 );
        }
View Full Code Here

        }

    }

    private void addAdminPanel() {
        DockLayoutPanel adminDockLayoutPanel = new DockLayoutPanel( Unit.EM );
        AdministrationTree deploymentTreeItem = new AdministrationTree();
        ScrollPanel adminTreeItemPanel = new ScrollPanel( deploymentTreeItem );

        adminDockLayoutPanel.add( adminTreeItemPanel );

        add( adminDockLayoutPanel,
             deploymentTreeItem.getHeaderHTML(),
             2 );
    }
View Full Code Here

             deploymentTreeItem.getHeaderHTML(),
             2 );
    }

    private void addDeploymentPanel() {
        DockLayoutPanel deploymentDockLayoutPanel = new DockLayoutPanel( Unit.EM );
        DeploymentTree deploymentTreeItem = new DeploymentTree();
        ScrollPanel deploymentTreeItemPanel = new ScrollPanel( deploymentTreeItem );

        if ( CapabilitiesManager.getInstance().shouldShow( Capabilities.SHOW_CREATE_NEW_ASSET ) ) {
            deploymentDockLayoutPanel.addNorth( DeploymentNewMenu.getMenu( deploymentTreeItem ),
                                                2 );
        }

        deploymentDockLayoutPanel.add( deploymentTreeItemPanel );

        add( deploymentDockLayoutPanel,
             deploymentTreeItem.getHeaderHTML(),
             2 );
    }
View Full Code Here

             deploymentTreeItem.getHeaderHTML(),
             2 );
    }

    private void addQAPanel() {
        DockLayoutPanel qaDockLayoutPanel = new DockLayoutPanel( Unit.EM );
        QATree qaTreeItem = new QATree();
        ScrollPanel qaTreeItemPanel = new ScrollPanel( qaTreeItem );

        qaDockLayoutPanel.add( qaTreeItemPanel );

        add( qaDockLayoutPanel,
             qaTreeItem.getHeaderHTML(),
             2 );
    }
View Full Code Here

             qaTreeItem.getHeaderHTML(),
             2 );
    }

    private void addPackagesPanel() {
        DockLayoutPanel packageDockLayoutPanel = new DockLayoutPanel( Unit.EM );
        final PackagesTree packagesTreeItem = new PackagesTree();
        ScrollPanel packagesTreeItemPanel = new ScrollPanel( packagesTreeItem );

        if ( CapabilitiesManager.getInstance().shouldShow( Capabilities.SHOW_CREATE_NEW_ASSET ) ) {
            packageDockLayoutPanel.addNorth( PackagesNewMenu.getMenu( packagesTreeItem ),
                                             2 );
        }
        packageDockLayoutPanel.add( packagesTreeItemPanel );

        add( packageDockLayoutPanel,
             packagesTreeItem.getHeaderHTML(),
             2 );
View Full Code Here

            }
        } );
    }

    private void addCategoriesPanel() {
        DockLayoutPanel browseDockLayoutPanel = new DockLayoutPanel( Unit.EM );
        BrowseTree categoriesTreeItem = new BrowseTree();
        ScrollPanel categoriesTreeItemPanel = new ScrollPanel( categoriesTreeItem );

        if ( CapabilitiesManager.getInstance().shouldShow( Capabilities.SHOW_CREATE_NEW_ASSET ) ) {
            browseDockLayoutPanel.addNorth( RulesNewMenu.getMenu( categoriesTreeItem ),
                                            2 );
        }
        browseDockLayoutPanel.add( categoriesTreeItemPanel );

        add( browseDockLayoutPanel,
             categoriesTreeItem.getHeaderHTML(),
             2 );
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DockLayoutPanel$DockAnimateCommand

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.