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

Examples of com.google.gwt.user.client.ui.TabPanel


    btnSave = new Button("Save");
    btnSave.addClickHandler(this);
    buttonsHorizontal.add(btnSave);

    TabPanel tabPanel = new TabPanel();
    tabPanel.setWidth("700px");
    VerticalPanel topVertical = new VerticalPanel();
    topVertical.add(personalHorizontal);
    topVertical.add(middleHorizontal);
    topVertical.add(buttonsHorizontal);
    topVertical.setCellHorizontalAlignment(buttonsHorizontal,
        HasHorizontalAlignment.ALIGN_RIGHT);
    topVertical.setHeight("160px");

    SearchResultFactory factory = new SearchResultFactory(
        Type.ForProfileWidget);
    factory.setMapUI(mapUI);
    mentortab = new SearchResponseWidget(5, factory);
    menteetab = new SearchResponseWidget(5, factory);

    tabPanel.add(topVertical, "Profile Details");
    tabPanel.add(mentortab, "Mentors");
    tabPanel.add(menteetab, "Mentees");

    tabPanel.selectTab(0);

    mainPanel.add(tabPanel);
    mainPanel.add(new HTML("<br>"));
    TabPanel map = new TabPanel();
    map.add(mapUI, "Map View");
    map.selectTab(0);
    mainPanel.add(map);

    initWidget(mainPanel);
  }
View Full Code Here


    hasResults = new SearchResponseWidget();
    needResults = new SearchResponseWidget();

    FlowPanel flowpanel;

    tabPanel = new TabPanel();

    flowpanel = new FlowPanel();
    flowpanel.add(allResults);
    tabPanel.add(flowpanel, "All");
View Full Code Here

  private void loadPage() {
    setPageHeader();
    rootPanel = RootPanel.get("calculatorCont");
    rootPanel.setSize("600px", "450px");

    tabPanel = new TabPanel();
    rootPanel.add(tabPanel);
    tabPanel.setSize("500px", "350px");
    tabPanel.setAnimationEnabled(true);

    tabPanel.addStyleName("table-center");
View Full Code Here

        vpanel.setStyleName("rhs-content-panel");

        vpanel.add(new ContentHeaderLabel(Console.CONSTANTS.subsys_ejb3_ejbServices()));
        vpanel.add(new ContentDescription(Console.CONSTANTS.subsys_ejb3_services_desc()));

        TabPanel bottomPanel = new TabPanel();
        bottomPanel.setStyleName("default-tabpanel");

        bottomPanel.add(timerServiceView.asWidget(), timerServiceView.getEntityDisplayName());
        bottomPanel.add(asyncServiceView.asWidget(), asyncServiceView.getEntityDisplayName());
        bottomPanel.add(remoteServiceView.asWidget(), remoteServiceView.getEntityDisplayName());
        bottomPanel.selectTab(0);

        vpanel.add(bottomPanel);


        return new ScrollPanel(vpanel);
View Full Code Here

        disableBtn.addClickHandler(disableHandler);
        topLevelTools.addToolButtonRight(disableBtn);

        // -----

        TabPanel bottomPanel = new TabPanel();
        bottomPanel.setStyleName("default-tabpanel");
        bottomPanel.add(details.asWidget(), "Attributes");
        details.getForm().bind(dataSourceTable);

        final FormToolStrip.FormCallback<XADataSource> xaCallback = new FormToolStrip.FormCallback<XADataSource>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                DataSource ds = getCurrentSelection();
                presenter.onSaveXADetails(ds.getName(), changeset);
            }

            @Override
            public void onDelete(XADataSource entity) {
                // n/a
            }
        };

        final FormToolStrip.FormCallback<DataSource> dsCallback = new FormToolStrip.FormCallback<DataSource>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                DataSource ds = getCurrentSelection();
                presenter.onSaveXADetails(ds.getName(), changeset);
            }

            @Override
            public void onDelete(DataSource entity) {
                // n/a
            }
        };

        connectionEditor = new XADataSourceConnection(presenter, xaCallback);
        connectionEditor.getForm().bind(dataSourceTable);
        bottomPanel.add(connectionEditor.asWidget(), "Connection");

        securityEditor = new DataSourceSecurityEditor(dsCallback);
        securityEditor.getForm().bind(dataSourceTable);
        bottomPanel.add(securityEditor.asWidget(), "Security");

        bottomPanel.add(propertyEditor.asWidget(), "Properties");

        poolConfig = new PoolConfigurationView(new PoolManagement() {
            @Override
            public void onSavePoolConfig(String parentName, Map<String, Object> changeset) {
                presenter.onSavePoolConfig(parentName, changeset, true);
            }

            @Override
            public void onResetPoolConfig(String parentName, PoolConfig entity) {
                presenter.onDeletePoolConfig(parentName, entity, true);
            }

            @Override
            public void onDoFlush(String editedName) {
                presenter.onDoFlush(true, editedName);
            }
        });
        bottomPanel.add(poolConfig.asWidget(), "Pool");
        poolConfig.getForm().bind(dataSourceTable);

        validationEditor = new DataSourceValidationEditor(dsCallback);
        validationEditor.getForm().bind(dataSourceTable);
        bottomPanel.add(validationEditor.asWidget(), "Validation");

        timeoutEditor = new DataSourceTimeoutEditor<XADataSource>(xaCallback, true);
        timeoutEditor.getForm().bind(dataSourceTable);
        bottomPanel.add(timeoutEditor.asWidget(), "Timeouts");

        bottomPanel.selectTab(0);
        vpanel.add(new ContentGroupLabel(Console.CONSTANTS.common_label_selection()));
        vpanel.add(bottomPanel);
        return layout;
    }
View Full Code Here

            }
        });

        // -----------------

        TabPanel bottomPanel = new TabPanel();
        bottomPanel.setStyleName("default-tabpanel");

        bottomPanel.add(details.asWidget(), "Attributes");

        // -----------------

        final FormToolStrip.FormCallback<DataSource> formCallback = new FormToolStrip.FormCallback<DataSource>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                DataSource ds = getCurrentSelection();
                presenter.onSaveDSDetails(ds.getName(), changeset);
            }

            @Override
            public void onDelete(DataSource entity) {
                // n/a
            }
        };

        connectionEditor = new DataSourceConnectionEditor(presenter, formCallback);
        connectionEditor.getForm().bind(dataSourceTable.getCellTable());
        bottomPanel.add(connectionEditor.asWidget(), "Connection");

        securityEditor = new DataSourceSecurityEditor(formCallback);
        securityEditor.getForm().bind(dataSourceTable.getCellTable());
        bottomPanel.add(securityEditor.asWidget(), "Security");

        // -----------------

        connectionProps = new ConnectionProperties(presenter);
        bottomPanel.add(connectionProps.asWidget(), "Properties");

        // -----------------

        poolConfig = new PoolConfigurationView(new PoolManagement() {
            @Override
            public void onSavePoolConfig(String parentName, Map<String, Object> changeset) {
                presenter.onSavePoolConfig(parentName, changeset, false);
            }

            @Override
            public void onResetPoolConfig(String parentName, PoolConfig entity) {
                presenter.onDeletePoolConfig(parentName, entity, false);
            }

            @Override
            public void onDoFlush(String editedName) {
                if(getCurrentSelection().isEnabled())
                    presenter.onDoFlush(false, editedName);
                else
                    Console.error(Console.CONSTANTS.subsys_jca_error_datasource_notenabled());
            }
        });


        bottomPanel.add(poolConfig.asWidget(), "Pool");
        poolConfig.getForm().bind(dataSourceTable.getCellTable());


        // ----

        validationEditor = new DataSourceValidationEditor(formCallback);
        validationEditor.getForm().bind(dataSourceTable.getCellTable());
        bottomPanel.add(validationEditor.asWidget(), "Validation");

        // ----

        timeoutEditor = new DataSourceTimeoutEditor<DataSource>(formCallback, false);
        timeoutEditor.getForm().bind(dataSourceTable.getCellTable());
        bottomPanel.add(timeoutEditor.asWidget(), "Timeouts");

        bottomPanel.selectTab(0);

        // -----------------

        vpanel.add(new ContentGroupLabel(Console.CONSTANTS.common_label_selection()));
View Full Code Here

        };
        recoveryForm = new TXModelForm(presenter, socketBinding, statusSocketBinding, recoveryListener);

        //panel.add(defaultForm.asWidget());

        TabPanel tabs = new TabPanel();
        tabs.setStyleName("default-tabpanel");
        tabs.getElement().setAttribute("style", "margin-top:15px;");

        tabs.add(defaultForm.asWidget(), "Common");
        tabs.add(processIDForm.asWidget(), "Process ID");
        tabs.add(recoveryForm.asWidget(), "Recovery");
        tabs.add(pathForm.asWidget(), "Path");

        tabs.selectTab(0);

        panel.add(tabs);

        return layout;
    }
View Full Code Here

            if(detailTools!=null) panel.add(detailTools);
            panel.add(detail.widget);
        }
        else if(details.size()>0)
        {
            TabPanel tabs = new TabPanel();
            tabs.getElement().setId("master_detail-detail");
            tabs.setStyleName("default-tabpanel");
            tabs.getElement().setAttribute("style", "margin-top:15px;");

            for(NamedWidget item : details)
            {

                item.widget.getElement().setAttribute("role", "application");
                tabs.add(item.widget, item.title);
            }

            panel.add(tabs);

            if(!details.isEmpty())
                tabs.selectTab(0);

        }

        return layout;
    }
View Full Code Here

            detail.widget.getElement().addClassName("fill-layout-width");
            detail.widget.getElement().setAttribute("role", "application");
        }
        else if(details.size()>0)
        {
            TabPanel tabs = new TabPanel();
            tabs.getElement().setId("master_detail-detail");
            tabs.setStyleName("default-tabpanel");
            tabs.getElement().setAttribute("style", "margin-top:15px;");

            for(NamedWidget item : details)
            {
                tabs.add(item.widget, item.title);
                item.widget.getElement().addClassName("fill-layout-width");
                item.widget.getElement().setAttribute("role", "application");
            }

            panel.add(tabs);

            if(!details.isEmpty())
                tabs.selectTab(0);

        }

        return layout;
    }
View Full Code Here

        groupEditor = new RoleAssignmentEditor(Principal.Type.GROUP, beanFactory, dispatcher);
        groupEditor.setPresenter(presenter);
        userEditor = new RoleAssignmentEditor(Principal.Type.USER, beanFactory, dispatcher);
        userEditor.setPresenter(presenter);

        editors = new TabPanel();
        editors.setStyleName("default-tabpanel");
        editors.add(groupEditor, Console.CONSTANTS.common_label_groups());
        editors.add(userEditor, Console.CONSTANTS.common_label_users());
        editors.selectTab(0);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.TabPanel

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.