Example usage for com.google.gwt.user.client.ui HorizontalSplitPanel add

List of usage examples for com.google.gwt.user.client.ui HorizontalSplitPanel add

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HorizontalSplitPanel add.

Prototype

@Override
public void add(Widget w) 

Source Link

Document

Adds a widget to a pane in the HorizontalSplitPanel.

Usage

From source file:edu.caltech.ipac.firefly.ui.panels.LinksPanel.java

public LinksPanel() {
    HorizontalSplitPanel mainPanel = new HorizontalSplitPanel();
    initWidget(mainPanel);/*from  w  ww .  j  ava  2s .  c  o m*/
    //lst.setStyleName("link-list");
    lst.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent ev) {
            selectLink(lst.getLastClicked());
        }

    });

    //linkPanel.add(lst);
    deckPanel.setStyleName("content-panel");

    //mainPanel.add(linkPanel);
    mainPanel.add(lst);
    mainPanel.setSplitPosition("25%");
    mainPanel.add(deckPanel);
    //        mainPanel.setStyleName("links-panel");
}