当前位置: 首页>>代码示例>>Java>>正文


Java SimpleLayoutPanel类代码示例

本文整理汇总了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() {});
}
 
开发者ID:google,项目名称:gwtmockito,代码行数:25,代码来源:GwtMockitoWidgetBaseClassesTest.java

示例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);
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:DefaultIdeInitializationStrategy.java

示例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;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:11,代码来源:WorkbenchLayoutImpl.java

示例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();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:WorkbenchLayoutImplTest.java

示例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();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:WorkbenchLayoutImplTest.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page06View.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page02View.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:NavigationView.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page05View.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:14,代码来源:ShellView.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:HeaderView.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page04View.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page01View.java

示例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);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:13,代码来源:Page03View.java

示例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 );
}
 
开发者ID:ltearno,项目名称:hexa.tools,代码行数:9,代码来源:FullHeightLayoutPanel.java


注:本文中的com.google.gwt.user.client.ui.SimpleLayoutPanel类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。