Examples of HorizontalSplitPanel


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

        // Populate the root level of the explorer tree
        resourceTree.populate();
    }

    private Widget createExplorerPanel() {
    HorizontalSplitPanel explorerPanel = new HorizontalSplitPanel();
    explorerPanel.setSize("100%", "100%");
    explorerPanel.setSplitPosition("20%");


    DisclosurePanel propertiesPanel = new DisclosurePanel(constants.propertiesDescripton(),true);
    propertiesPanel.add(resourceGrid.getPropertyGrid());
    propertiesPanel.setStyleName("application-DisclosurePanel");

    DisclosurePanel nodeChildrenPanel = new DisclosurePanel(constants.subResourcesDescription(),true);
    nodeChildrenPanel.add(resourceGrid.getResourceChildrenGrid());
    nodeChildrenPanel.setStyleName("application-DisclosurePanel");

    propertiesPanel.setAnimationEnabled(true);
    nodeChildrenPanel.setAnimationEnabled(true);


      FlexTable layout = new FlexTable();
      layout.setCellSpacing(6);
      layout.setWidget(0, 0, propertiesPanel);
      layout.setWidget(1, 0, nodeChildrenPanel);


    explorerPanel.setRightWidget(layout);
    explorerPanel.setLeftWidget(resourceTree);

    return explorerPanel;
  }
View Full Code Here

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

  public BodyPart() {
    vContent = new VerticalSplitPanel();
    vContent.setWidth("100%");
    vContent.setHeight("100%");
    vContent.setSplitPosition("100%");
    hContent = new HorizontalSplitPanel();
    hContent.setWidth("100%");
    hContent.setHeight("100%");
    hContent.setSplitPosition("100%");
    vContent.setTopWidget(hContent);
    initWidget(vContent);
View Full Code Here

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

        init();
    }

    private void init()
    {
        body = new HorizontalSplitPanel();
        setWidget(body);
        body.setSize("100%", "100%");

        body.setSplitPosition("25%");
View Full Code Here

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

    mainPanel.add(statusBarPane, DockPanel.SOUTH);
    mainPanel.setCellHeight(statusBarPane, "25px");
    mainPanel.setCellHorizontalAlignment(statusBarPane, DockPanel.ALIGN_CENTER);
    mainPanel.setCellVerticalAlignment(statusBarPane, DockPanel.ALIGN_MIDDLE);
       
    HorizontalSplitPanel horizontalSplitPanel = new HorizontalSplitPanel();
    horizontalSplitPanel.setSplitPosition("150px");
    centerPane = new SimplePanel();
    centerPane.add(new Label("right panel"));
    horizontalSplitPanel.setRightWidget(centerPane);
    menuPanel = new MenuPanel(serviceRegistry, this);
   
    horizontalSplitPanel.setLeftWidget(menuPanel);
    mainPanel.add(horizontalSplitPanel, DockPanel.CENTER);
     
    screen1 = new Screen1(clientState, serviceRegistry);
    screen2 = new Screen2(clientState, serviceRegistry);
    initWidget(mainPanel);
View Full Code Here

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

          super.onBrowserEvent(event);
      }
    };
    spParent.setWidget(sp);
    sp.sinkEvents(Event.ONMOUSEDOWN);*/
    horizontalSplitPanel = new HorizontalSplitPanel();
    initWidget(horizontalSplitPanel);
   
    //sp.add(horizontalSplitPanel);
  }
View Full Code Here

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

   */
  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a Horizontal Split Panel
    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
    hSplit.ensureDebugId("cwHorizontalSplitPanel");
    hSplit.setSize("500px", "350px");
    hSplit.setSplitPosition("30%");

    // Add some content
    String randomText = constants.cwHorizontalSplitPanelText();
    for (int i = 0; i < 2; i++) {
      randomText += randomText;
    }
    hSplit.setRightWidget(new HTML(randomText));
    hSplit.setLeftWidget(new HTML(randomText));

    // Wrap the split panel in a decorator panel
    DecoratorPanel decPanel = new DecoratorPanel();
    decPanel.setWidget(hSplit);

View Full Code Here

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

     * @Override public void onClick(ClickEvent event) {
     * greetingService.loadGreeting(messageAsyncCallback); } });
     */

    // -------------------main split panel-----------------------
    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
    hSplit.ensureDebugId("cwHorizontalSplitPanel");

    hSplit.setSize("1000px", "700px");
    hSplit.setSplitPosition("20%");
    hSplit.setRightWidget(vSplit);
    hSplit.setLeftWidget(stackPanel);

    // Wrap the split panel in a decorator panel
    DecoratorPanel decPanel = new DecoratorPanel();
    decPanel.setWidget(hSplit);

View Full Code Here

Examples of com.vaadin.ui.HorizontalSplitPanel

    SideBar sideBar;

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        getPage().setTitle("Vaadin4Spring Side Bar Sample");
        final HorizontalSplitPanel rootLayout = new HorizontalSplitPanel();
        rootLayout.setStyleName(Reindeer.SPLITPANEL_SMALL);
        rootLayout.setSizeFull();
        setContent(rootLayout);

        final Navigator navigator = new Navigator(this, new ViewDisplay() {
            @Override
            public void showView(View view) {
                System.out.println("Showing view " + view);
                rootLayout.setSecondComponent((com.vaadin.ui.Component) view);
            }
        });
        navigator.setErrorView(new ErrorView());
        navigator.addProvider(viewProvider);
        setNavigator(navigator);

        rootLayout.setFirstComponent(sideBar);
        rootLayout.setSplitPosition(150, Unit.PIXELS);
    }
View Full Code Here

Examples of com.vaadin.ui.HorizontalSplitPanel

public class SafariRenderingBugWhiteSpace extends TestBase {

    @Override
    protected void setup() {

        final HorizontalSplitPanel split = new HorizontalSplitPanel();

        final Table table = new Table();
        table.addContainerProperty("name", String.class, "");
        table.addContainerProperty("value", String.class, "");

        table.addItem(new Object[] { "test1", "val1" }, "test1");
        table.addItem(new Object[] { "test2", "val2" }, "test2");
        table.addItem(new Object[] { "test3", "val3" }, "test3");
        table.addItem(new Object[] { "test4", "val4" }, "test4");
        table.addItem(new Object[] { "test5", "val5" }, "test5");
        table.addItem(new Object[] { "test6", "val6" }, "test6");
        table.addItem(new Object[] { "test7", "val7" }, "test7");
        table.addItem(new Object[] { "test8", "val8" }, "test8");
        table.addItem(new Object[] { "test9", "val9" }, "test9");
        table.setSelectable(true);
        table.setImmediate(true);
        table.setSizeFull();
        table.addListener(new ValueChangeListener() {

            @Override
            public void valueChange(ValueChangeEvent event) {
                if (table.getValue() == null) {
                    split.setSplitPosition(100, Sizeable.UNITS_PERCENTAGE);
                } else {
                    split.setSplitPosition(20, Sizeable.UNITS_PERCENTAGE);
                }
            }
        });

        split.setFirstComponent(table);
        split.setSplitPosition(100, Sizeable.UNITS_PERCENTAGE);
        VerticalLayout pl = new VerticalLayout();
        pl.setMargin(true);
        Panel editor = new Panel("Editor", pl);
        editor.setSizeFull();
        split.setSecondComponent(editor);
        getLayout().setSizeFull();
        getLayout().addComponent(split);
    }
View Full Code Here

Examples of com.vaadin.ui.HorizontalSplitPanel

    @Override
    public void init() {
        setMainWindow(new LegacyWindow("Ticket2062"));
        getMainWindow().setSizeFull();

        HorizontalSplitPanel p = new HorizontalSplitPanel();
        p.setSizeFull();
        getMainWindow().setContent(p);

        TextField tf1 = new TextField("Tab 1");
        tf1.setValue("Field 1");
        tf1.setSizeFull();
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.