Examples of TabLayoutPanel


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

        this.presenter = presenter;
    }

    @Override
    public Widget createWidget() {
        tabs = new TabLayoutPanel(40, Style.Unit.PX);
        tabs.setStyleName("default-tabpanel");

        String cspUrl = bootstrapContext.getProperty(ApplicationProperties.CSP_API);
        searchFrame = new Frame(cspUrl + "/search.html");
        searchFrame.getElement().setAttribute("style", "margin-top:10px");
View Full Code Here

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

public class TabLayoutPanelExample implements EntryPoint {

  public void onModuleLoad() {
    // Create a three-item tab panel, with the tab area 1.5em tall.
    TabLayoutPanel p = new TabLayoutPanel(1.5, Unit.EM);
    p.add(new HTML("this"), "[this]");
    p.add(new HTML("that"), "[that]");
    p.add(new HTML("the other"), "[the other]");

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
View Full Code Here

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

        //layout.setWidgetBottomHeight(formPanel, 0, Style.Unit.PX, 30, Style.Unit.PCT);


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

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");

        tabLayoutpanel.add(formPanel, "Instance Details");
        tabLayoutpanel.add(new HTML("This going to display heap, permgen, etc, "), "JVM Status");
        //tabLayoutpanel.add(new HTML("Baz"), "Other");

        tabLayoutpanel.selectTab(0);

        layout.add(tabLayoutpanel);
        layout.setWidgetBottomHeight(tabLayoutpanel, 0, Style.Unit.PX, 40, Style.Unit.PCT);

        return layout;
View Full Code Here

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

    @Override
    public Widget createWidget() {

        this.dataSourceEditor = new DataSourceEditor(presenter);

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");


        tabLayoutpanel.add(dataSourceEditor.asWidget(), "Data Sources");
        tabLayoutpanel.add(new HTML("Not implemented yet"), "XA Data Sources");

        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
View Full Code Here

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

public class PTTabLayoutPanel extends PTWidget<TabLayoutPanel> {

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        init(create, uiService, new TabLayoutPanel(2, Unit.EM));
    }
View Full Code Here

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

    @Override
    public void add(final PTInstruction add, final UIService uiService) {

        final Widget w = asWidget(add.getObjectID(), uiService);
        final TabLayoutPanel tabPanel = uiObject;

        final int beforeIndex = add.getInt(PROPERTY.BEFORE_INDEX);

        if (add.containsKey(PROPERTY.TAB_TEXT)) {
            tabPanel.insert(w, add.getString(PROPERTY.TAB_TEXT), beforeIndex);
        } else if (add.containsKey(PROPERTY.TAB_WIDGET)) {
            final PTWidget<?> ptWidget = (PTWidget<?>) uiService.getPTObject(add.getLong(PROPERTY.TAB_WIDGET));
            tabPanel.insert(w, ptWidget.cast(), beforeIndex);
        }
    }
View Full Code Here

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

    public SplitEditorPanel() {
        dockLayout = new SplitLayoutPanel(5);

        topLayout = new LayoutPanel();

        bottomLayout = new TabLayoutPanel(25, Style.Unit.PX);
        bottomLayout.addStyleName("default-tabpanel");

        dockLayout.addSouth(bottomLayout, 250);
        dockLayout.add(topLayout);
    }
View Full Code Here

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

    public Widget createWidget() {

        this.dataSourceEditor = new DataSourceEditor(presenter);
        this.xaDataSourceEditor = new XADataSourceEditor(presenter);

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(40, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");


        tabLayoutpanel.add(dataSourceEditor.asWidget(), Console.CONSTANTS.subsys_jca_dataSources());
        tabLayoutpanel.add(xaDataSourceEditor.asWidget(), Console.CONSTANTS.subsys_jca_dataSourcesXA());

        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
View Full Code Here

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

    }

    @Override
    public Widget createWidget() {

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(40, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");

        workmanagerEditor = new WorkmanagerEditor(presenter);
        boostrapEditor = new JcaBootstrapEditor(presenter);
        baseEditor = new JcaBaseEditor(presenter);

        tabLayoutpanel.add(baseEditor.asWidget(), "Common Config");
        tabLayoutpanel.add(boostrapEditor.asWidget(), "Bootstrap Contexts");
        tabLayoutpanel.add(workmanagerEditor.asWidget(), "Work Manager");

        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
View Full Code Here

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

        );
    }

    @Override
    public Widget createWidget() {
        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(40, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");

        tabLayoutpanel.add(createEmbeddableWidget(), getEntityDisplayName());
        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
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.