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


Java DeckLayoutPanel.showWidget方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.DeckLayoutPanel.showWidget方法的典型用法代码示例。如果您正苦于以下问题:Java DeckLayoutPanel.showWidget方法的具体用法?Java DeckLayoutPanel.showWidget怎么用?Java DeckLayoutPanel.showWidget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.DeckLayoutPanel的用法示例。


在下文中一共展示了DeckLayoutPanel.showWidget方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
    }
 
开发者ID:lsst,项目名称:firefly,代码行数:27,代码来源:PopoutWidget.java

示例2: 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);
}
 
开发者ID:mecatran,项目名称:OpenTripPlanner-client-gwt,代码行数:40,代码来源:PlannerWidgetImpl.java

示例3: 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());
}
 
开发者ID:akjava,项目名称:gwthtml5apps,代码行数:48,代码来源:Html5DemoEntryPoint.java


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