Java/GWT/HorizontalSplitPanel — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 06:35, 1 июня 2010
Use Horizontal Split Panel
package com.jexp.gwt.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
public class GWTClient implements EntryPoint{
public void onModuleLoad() {
HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
hSplit.setLeftWidget(new HTML("..."));
hSplit.setRightWidget(new HTML(
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... "));
hSplit.setSize("100%", "450px");
RootPanel.get().add(hSplit);
}
}