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


Java CellPanel类代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.CellPanel的典型用法代码示例。如果您正苦于以下问题:Java CellPanel类的具体用法?Java CellPanel怎么用?Java CellPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CellPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了CellPanel类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addChecksum

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
private void addChecksum(UIObject panel) {
	QHidden qafeChecksum = new QHidden();
	DOM.setElementAttribute(qafeChecksum.getElement(), "fn", DataContainerGVO.QAFE_CHECKSUM);
	if (panel instanceof FlexTable) {
		FlexTable flexTable = (FlexTable)panel;
		int rowCount = flexTable.getRowCount();
		flexTable.setWidget(rowCount, 0, qafeChecksum);
	} else if (panel instanceof AbsolutePanel) {
		AbsolutePanel absolutePanel = (AbsolutePanel)panel;
		absolutePanel.add(qafeChecksum, 0, 0);
	} else if (panel instanceof DockPanel) {
		DockPanel dockPanel = (DockPanel)panel;
		//dockPanel.add(qafeChecksum);
	} else if (panel instanceof CellPanel) {
		CellPanel cellPanel = (CellPanel)panel;
		cellPanel.add(qafeChecksum);
	}
}
 
开发者ID:qafedev,项目名称:qafe-platform,代码行数:19,代码来源:PanelRenderer.java

示例2: testPanels

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的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

示例3: createCheckboxes

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
private void createCheckboxes(CellPanel checkboxPanel) {
  for (CompilationParam.ParamGroup group : CompilationParam.ParamGroup.values()) {
    SafeHtmlBuilder builder = new SafeHtmlBuilder();
    builder.appendHtmlConstant("<b>");
    builder.appendEscaped(group.name);
    builder.appendHtmlConstant("</b>");

    checkboxPanel.add(new HTML(builder.toSafeHtml()));
    for (final CompilationParam param : CompilationParam.getGroupedSortedValues().get(group)) {
      CheckBox cb = new CheckBox(param.toString());
      if (param.getJavaInfo() != null) {
        cb.setTitle("Java API equivalent: " + param.getJavaInfo());
      }
      cb.setValue(param.getDefaultValue());
      param.apply(options, param.getDefaultValue());
      cb.addClickHandler(
          new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
              boolean checked = ((CheckBox) event.getSource()).getValue();
              param.apply(options, checked);
              doCompile();
            }
          });
      checkboxPanel.add(cb);
    }
  }
}
 
开发者ID:google,项目名称:closure-compiler,代码行数:29,代码来源:DebuggerGwtMain.java

示例4: getMainPanel

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
protected CellPanel getMainPanel() {
	return(new HorizontalPanel());
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:4,代码来源:ViewCIScreen.java

示例5: getMainPanel

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
protected CellPanel getMainPanel() {
	return(new VerticalPanel());
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:4,代码来源:NewCIScreen.java

示例6: getMainPanel

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
protected CellPanel getMainPanel() {
	vPanel = new VerticalPanel();
	return(vPanel);
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:5,代码来源:AddTemplateScreen.java

示例7: getClassesToStub

import com.google.gwt.user.client.ui.CellPanel; //导入依赖的package包/类
/**
 * Returns a collection of classes whose non-abstract methods should always be replaced with
 * no-ops. By default, this list includes {@link Composite}, {@link DOM} {@link UIObject},
 * {@link Widget}, {@link Image}, and most subclasses of {@link Panel}. It will also include any
 * classes specified via the {@link WithClassesToStub} annotation on the test class. This makes
 * it much safer to test code that uses or extends these types.
 * <p>
 * This list can be customized via {@link WithClassesToStub} or by defining a new test runner
 * extending {@link GwtMockitoTestRunner} and overriding this method. This allows users to
 * explicitly stub out particular classes that are causing problems in tests. If you override this
 * method, you will probably want to retain the classes that are stubbed here by doing something
 * like this:
 *
 * <pre>
 * &#064;Override
 * protected Collection&lt;Class&lt;?&gt;&gt; getClassesToStub() {
 *   Collection&lt;Class&lt;?&gt;&gt; classes = super.getClassesToStub();
 *   classes.add(MyBaseWidget.class);
 *   return classes;
 * }
 * </pre>
 *
 * @return a collection of classes whose methods should be stubbed with no-ops while running tests
 */
protected Collection<Class<?>> getClassesToStub() {
  Collection<Class<?>> classes = new LinkedList<Class<?>>();
  classes.add(Composite.class);
  classes.add(DOM.class);
  classes.add(UIObject.class);
  classes.add(Widget.class);

  classes.add(DataGrid.class);
  classes.add(HTMLTable.class);
  classes.add(Image.class);

  classes.add(AbsolutePanel.class);
  classes.add(CellList.class);
  classes.add(CellPanel.class);
  classes.add(CellTable.class);
  classes.add(ComplexPanel.class);
  classes.add(DeckLayoutPanel.class);
  classes.add(DeckPanel.class);
  classes.add(DecoratorPanel.class);
  classes.add(DockLayoutPanel.class);
  classes.add(DockPanel.class);
  classes.add(FlowPanel.class);
  classes.add(FocusPanel.class);
  classes.add(HorizontalPanel.class);
  classes.add(HTMLPanel.class);
  classes.add(LayoutPanel.class);
  classes.add(Panel.class);
  classes.add(PopupPanel.class);
  classes.add(RenderablePanel.class);
  classes.add(ResizeLayoutPanel.class);
  classes.add(SimpleLayoutPanel.class);
  classes.add(SimplePanel.class);
  classes.add(SplitLayoutPanel.class);
  classes.add(StackPanel.class);
  classes.add(VerticalPanel.class);
  classes.add(ValueListBox.class);

  WithClassesToStub annotation = unitTestClass.getAnnotation(WithClassesToStub.class);
  if (annotation != null) {
    classes.addAll(Arrays.asList(annotation.value()));
  }

  return classes;
}
 
开发者ID:google,项目名称:gwtmockito,代码行数:69,代码来源:GwtMockitoTestRunner.java


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