本文整理汇总了Java中com.google.gwt.user.client.ui.SimpleLayoutPanel类的典型用法代码示例。如果您正苦于以下问题:Java SimpleLayoutPanel类的具体用法?Java SimpleLayoutPanel怎么用?Java SimpleLayoutPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleLayoutPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了SimpleLayoutPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testPanels
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
@Test
public void testPanels() throws Exception {
invokeAllAccessibleMethods(new AbsolutePanel() {});
invokeAllAccessibleMethods(new CellPanel() {});
invokeAllAccessibleMethods(new ComplexPanel() {});
invokeAllAccessibleMethods(new DeckLayoutPanel() {});
invokeAllAccessibleMethods(new DeckPanel() {});
invokeAllAccessibleMethods(new DecoratorPanel() {});
invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
invokeAllAccessibleMethods(new DockPanel() {});
invokeAllAccessibleMethods(new FlowPanel() {});
invokeAllAccessibleMethods(new FocusPanel() {});
invokeAllAccessibleMethods(new HorizontalPanel() {});
invokeAllAccessibleMethods(new HTMLPanel("") {});
invokeAllAccessibleMethods(new LayoutPanel() {});
invokeAllAccessibleMethods(new PopupPanel() {});
invokeAllAccessibleMethods(new RenderablePanel("") {});
invokeAllAccessibleMethods(new ResizeLayoutPanel() {});
invokeAllAccessibleMethods(new SimpleLayoutPanel() {});
invokeAllAccessibleMethods(new SimplePanel() {});
invokeAllAccessibleMethods(new SplitLayoutPanel() {});
invokeAllAccessibleMethods(new StackPanel() {});
invokeAllAccessibleMethods(new VerticalPanel() {});
}
示例2: showRootPresenter
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private void showRootPresenter() {
SimpleLayoutPanel mainPanel = new SimpleLayoutPanel();
RootLayoutPanel.get().add(mainPanel);
RootLayoutPanel.get().getElement().getStyle().setZIndex(0);
workspacePresenterProvider.get().go(mainPanel);
}
示例3: ExpandAnimation
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
public ExpandAnimation(
final Widget w,
final Map<Widget, OriginalStyleInfo> maximizedWidgetOriginalStyles,
final SimpleLayoutPanel perspectiveRootContainer,
final Command onCompleteCallback) {
super(w,
maximizedWidgetOriginalStyles,
onCompleteCallback);
this.perspectiveRootContainer = perspectiveRootContainer;
}
示例4: testExpandAnimation
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
@Test
public void testExpandAnimation() {
final WorkbenchLayoutImpl.ExpandAnimation expandAnimation = new WorkbenchLayoutImpl.ExpandAnimation(widget,
Maps.<Widget, WorkbenchLayoutImpl.OriginalStyleInfo>newHashMap(),
mock(SimpleLayoutPanel.class),
null);
expandAnimation.onComplete();
verify(((RequiresResize) widget)).onResize();
}
示例5: testExpandAnimationWithCallback
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
@Test
public void testExpandAnimationWithCallback() {
final Command callback = mock(Command.class);
final WorkbenchLayoutImpl.ExpandAnimation expandAnimation = new WorkbenchLayoutImpl.ExpandAnimation(widget,
Maps.<Widget, WorkbenchLayoutImpl.OriginalStyleInfo>newHashMap(),
mock(SimpleLayoutPanel.class),
callback);
expandAnimation.onComplete();
verify(((RequiresResize) widget)).onResize();
verify(callback).execute();
}
示例6: Page06View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page06View() {
style = GWT.<Page06Resources>create(Page06Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 06");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例7: Page02View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page02View() {
style = GWT.<Page02Resources>create(Page02Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 02");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例8: NavigationView
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private NavigationView() {
style = GWT.<NavigationResources>create(NavigationResources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Hyperlink Navigation - Test With NavigationConfirmation & History");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例9: Page05View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page05View() {
style = GWT.<Page05Resources>create(Page05Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 05");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例10: ShellView
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
public ShellView() {
shell = new DockLayoutPanel(Style.Unit.PX);
header = new SimpleLayoutPanel();
navigation = new SimpleLayoutPanel();
content = new SimpleLayoutPanel();
shell.addNorth(header, 75);
shell.addWest(navigation, 275);
shell.add(content);
initWidget(shell);
}
示例11: HeaderView
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private HeaderView() {
style = GWT.<HeaderResources>create(HeaderResources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Hyperlink Navigation - Test With NavigationConfirmation & History");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例12: Page04View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page04View() {
style = GWT.<Page04Resources>create(Page04Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 04");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例13: Page01View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page01View() {
style = GWT.<Page01Resources>create(Page01Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 01");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例14: Page03View
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
private Page03View() {
style = GWT.<Page03Resources>create(Page03Resources.class)
.css();
style.ensureInjected();
headerPanel = new SimpleLayoutPanel();
Label label = new Label("Page 03");
label.setStyleName(style.headline());
headerPanel.add(label);
initWidget(headerPanel);
}
示例15: FullHeightLayoutPanel
import com.google.gwt.user.client.ui.SimpleLayoutPanel; //导入依赖的package包/类
public FullHeightLayoutPanel()
{
SimpleLayoutPanel s = new SimpleLayoutPanel();
s.add( panel );
panel.setWidth( "100%" );
panel.setHeight( "100%" );
initWidget( s );
}