本文整理汇总了Java中com.google.gwt.user.client.ui.DeckLayoutPanel类的典型用法代码示例。如果您正苦于以下问题:Java DeckLayoutPanel类的具体用法?Java DeckLayoutPanel怎么用?Java DeckLayoutPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeckLayoutPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了DeckLayoutPanel类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showOneView
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的package包/类
void showOneView(int showIdx) {
if (showIdx > _expandedList.size() - 1) showIdx = 0;
_popoutUI.reinit(ViewType.ONE, _expandRoot);
DeckLayoutPanel expandDeck = _popoutUI.getDeck();
updateExpandRoot(_expandPopout.getAvailableSize());
for (PopoutWidget popout : _expandedList) {
GwtUtil.DockLayout.setWidgetChildSize(popout._clickTitlePanel, 0);
popout._movablePanel.forceLayout();
popout._stagePanel.setWidget(null);
popout._movablePanel.setWidth("100%");
popout._movablePanel.setHeight("100%");
expandDeck.add(popout._movablePanel);
GwtUtil.setStyle(popout._movablePanel, "border", "none");
}
_expandRoot.forceLayout();
if (expandDeck.getWidgetCount() > 0) expandDeck.showWidget(showIdx);
onResize();
if (_expandedList.size() > 1) setViewType(ViewType.ONE);
_popoutUI.updateOneImageNavigationPanel();
AllPlots.getInstance().updateUISelectedLook();
}
示例2: testPanels
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的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() {});
}
示例3: PlannerWidgetImpl
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的package包/类
public PlannerWidgetImpl() {
rootPanel = new DeckLayoutPanel();
// Screen interaction widget
screenWidget = new SplitLayoutPanel() {
@Override
public void onResize() {
super.onResize();
if (plannerMapWidget != null)
plannerMapWidget.updateSize();
}
};
screenWidget.setSize("100%", "100%");
selectedItineraryWidget = null;
plannerMapWidget = new OpenLayersPlannerMapWidget();
plannerMapWidget.setMapListener(this);
plannerFormWidget = new PlannerFormWidget();
plannerFormWidget.setPlannerWidget(this);
itineraryStackWidget = new ItineraryStackWidget();
alertStackWidget = new AlertStackWidget();
// Firefox/Opera hack: no scroll panel...
boolean useScrollPanel = false;
leftPanelWidget = new LeftPanelWidget(plannerFormWidget,
itineraryStackWidget, alertStackWidget, useScrollPanel);
screenWidget.insert(leftPanelWidget, Direction.WEST, 300, null);
if (!useScrollPanel) {
leftPanelWidget.getElement().getParentElement().getStyle()
.setOverflow(Overflow.AUTO);
}
screenWidget.insert(plannerMapWidget.getAsWidget(), Direction.CENTER, 0,
null);
rootPanel.add(screenWidget);
rootPanel.showWidget(screenWidget);
rootPanel.setSize("100%", "100%");
initWidget(rootPanel);
}
示例4: onModuleLoad
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的package包/类
@Override
public void onModuleLoad() {
LogUtils.log(getAppName()+":version "+getAppVersion());
rootDeck = new DeckLayoutPanel();
RootLayoutPanel.get().add(rootDeck);
rootDeck.add(initializeWidget());
rootDeck.showWidget(0);
//create setting
DockLayoutPanel settingPanel=new DockLayoutPanel(Unit.PX);
HorizontalPanel settingTitles=new HorizontalPanel();
settingTitles.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
settingTitles.setSpacing(2);
settingTitles.add(new Label(getAppName()+" >> "+textConstants.Settings()));
DockLayoutPanel settingMain=new DockLayoutPanel(Unit.PX);
HorizontalPanel firstControlPanel=new HorizontalPanel();
firstControlPanel.setSpacing(2);
settingMain.addNorth(firstControlPanel,30);
Button closeBt=new Button(textConstants.close(),new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
onCloseSettingPanel();
rootDeck.showWidget(0);
}
});
closeBt.setWidth("200px");
firstControlPanel.add(closeBt);
settingPanel.addNorth(settingTitles,30);
settingPanel.add(settingMain);
Panel panel=createMainSettingPage();
panel.setWidth("100%");//need this?
panel.getElement().getStyle().setMargin(12, Unit.PX);
settingMain.add(panel);
rootDeck.add(settingPanel);//index 1 is setting
parseLinkCsv(getLinkContainer());
}
示例5: getClassesToStub
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的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>
* @Override
* protected Collection<Class<?>> getClassesToStub() {
* Collection<Class<?>> 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;
}
示例6: getDeck
import com.google.gwt.user.client.ui.DeckLayoutPanel; //导入依赖的package包/类
public DeckLayoutPanel getDeck() { return _expandDeck; }