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


Java VLayout.setLayoutAlign方法代码示例

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


在下文中一共展示了VLayout.setLayoutAlign方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildUi

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public void buildUi() {
	setGetPane();
	setPostPane();
	// createToolstrip();
	toolStrip = new NetworkToolbar(this);

	VLayout vertical = new VLayout();
	vertical.setWidth100();
	vertical.setHeight100();
	vertical.addMember(toolStrip);
	createNetworkPane();

	VLayout verticalGrid = new VLayout();

	verticalGrid.setLayoutAlign(Alignment.CENTER);
	verticalGrid.setAlign(Alignment.CENTER);
	verticalGrid.setDefaultLayoutAlign(Alignment.CENTER);

	verticalGrid.setWidth100();
	verticalGrid.setHeight("*");
	verticalGrid.addMember(networkLayout);

	vertical.addMember(verticalGrid);
	RootPanel.get("network").add(vertical);

}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:NetworkPage.java

示例2: loadPage

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public void loadPage() {
//		createToolstrip();
		toolStrip = new ToolBar(false);

		
		VLayout vertical = new VLayout();
		vertical.setWidth100();
		vertical.setHeight100();
		vertical.addMember(toolStrip);
		createButtons();
		
		VLayout verticalGrid = new VLayout();
		
		verticalGrid.setLayoutAlign(Alignment.CENTER);
		verticalGrid.setAlign(Alignment.CENTER);  
		verticalGrid.setDefaultLayoutAlign(Alignment.CENTER); // As promised!  

		verticalGrid.setWidth100();
		verticalGrid.setHeight("*");
//		verticalGrid.setBorder("1px solid gray");
		verticalGrid.addMember(tileGrid);
		
		vertical.addMember(verticalGrid);
		RootPanel.get("portal").add(vertical);

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:PortalPage.java

示例3: LogoOnlyView

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public LogoOnlyView() {
	VLayout banner = new VLayout();
	banner.setLayoutAlign(Alignment.CENTER);
	banner.setLayoutAlign(VerticalAlignment.CENTER);

	Img logoImg = new Img(logo);
	logoImg.setWidth(logoWidth);
	logoImg.setHeight(logoHeight);
	logoImg.setLayoutAlign(Alignment.CENTER);
	logoImg.setLayoutAlign(VerticalAlignment.CENTER);
	banner.addMember(logoImg);

	setShowShadow(true);
	setShadowDepth(WidgetLayout.loadingScreenShadowDepth);
	setLayoutAlign(Alignment.CENTER);
	setLayoutAlign(VerticalAlignment.CENTER);
	setWidth(logoWidth);
	setHeight(logoHeight);
	setAlign(Alignment.CENTER);
	addMember(banner);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:22,代码来源:LoadingScreen.java

示例4: loadPage

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public void loadPage() {
//		createToolstrip();
//		SC.say("Welcome", "Dear ARLearn author,<br><br> " +
//				"Welcome to the new ARLearn set of tools. Some of the new features include:"+
//				"<ol><li>	Collaborative authoring of games. Share your games with contacts." +
//				"<li>	License public games with a creative commons license." +
//				"<li>	Login with facebook, linkedin or google.</ol>" +
//				"<br> As you will see, most of the functionality is already implemented in this new environment... but in a slightly different manner<br>" +
//				"<br><br> Logging with google will automatically migrate your games and will render them unavailable in the <a href=\"Authoring.html\">old environment</a>. Logging in with Facebook or LinkedIn will not affect your old games and runs."+
//				"<br><br>If things are not clear, don't hesitate to contact me via <a href=\"skype:stefaanternier2?call\">Skype</a> or contact me via email: [email protected] ");
		toolStrip = new ToolBar(false);

		
		VLayout vertical = new VLayout();
		vertical.setWidth100();
		vertical.setHeight100();
		vertical.addMember(toolStrip);
		createButtons();
		
		VLayout verticalGrid = new VLayout();
		
		verticalGrid.setLayoutAlign(Alignment.CENTER);
		verticalGrid.setAlign(Alignment.CENTER);  
		verticalGrid.setDefaultLayoutAlign(Alignment.CENTER);

		verticalGrid.setWidth100();
		verticalGrid.setHeight("*");
//		verticalGrid.setBorder("1px solid gray");
		verticalGrid.addMember(tileGrid);
		
		vertical.addMember(verticalGrid);
		RootPanel.get("oauth_new").add(vertical);
		
		if (Window.Location.getParameter("type") != null)
			Window.Location.replace("/index.html");

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:38,代码来源:OauthPage.java

示例5: loadPage

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public void loadPage() {
        RunParticipateDataSource.getInstance().loadDataFromWeb();

//		createToolstrip();
//        toolStrip = new ToolBar();


        VLayout vertical = new VLayout();
        vertical.setWidth100();
        vertical.setHeight100();
//        vertical.addMember(toolStrip);
        createRunsDataSource();

        VLayout verticalGrid = new VLayout();

        verticalGrid.setLayoutAlign(Alignment.CENTER);
        verticalGrid.setAlign(Alignment.CENTER);
        verticalGrid.setDefaultLayoutAlign(Alignment.CENTER);

        verticalGrid.setWidth100();
        verticalGrid.setHeight("*");
        verticalGrid.addMember(masterList);

        vertical.addMember(verticalGrid);
        RootPanel.get("resultDisplayRunsParticipate").add(vertical);

    }
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:28,代码来源:ResultDisplayRunsParticipate.java

示例6: buildUi

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public void buildUi() {
		RunDataSource.getInstance().loadDataFromWeb();

//		createToolstrip();
//		toolStrip = new ToolBar();
        toolStrip = new ResultsDisplayToolbar();

		
		VLayout vertical = new VLayout();
		vertical.setWidth100();
		vertical.setHeight100();
		vertical.addMember(toolStrip);
		createRunsDataSource();
		
		VLayout verticalGrid = new VLayout();

		verticalGrid.setLayoutAlign(Alignment.CENTER);
		verticalGrid.setAlign(Alignment.CENTER);
		verticalGrid.setDefaultLayoutAlign(Alignment.CENTER);

		verticalGrid.setWidth100();
		verticalGrid.setHeight("*");
		verticalGrid.addMember(masterList);
		
		vertical.addMember(verticalGrid);
		RootPanel.get("resultDisplayRuns").add(vertical);

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:29,代码来源:ResultDisplayRuns.java

示例7: createWindow

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
private Window createWindow() {
	VLayout layout = new VLayout(5);
	layout.setLayoutAlign(Alignment.CENTER);
	layout.setAlign(Alignment.CENTER);
	layout.setWidth100();
	Label label = new Label(messages.searchControllerSearchingMessage());
	label.setWidth100();
	label.setHeight(30);
	label.setAlign(Alignment.CENTER);
	layout.addMember(label);

	HTMLPane img = new HTMLPane();
	img.setLayoutAlign(Alignment.CENTER);
	img.setAlign(Alignment.CENTER);
	img.setWidth(20);
	img.setHeight(20);
	img.setOverflow(Overflow.HIDDEN);
	img.setContents("<img src=\"" + Geomajas.getIsomorphicDir()
			+ "/geomajas/ajax-loader.gif\" width=\"18\" height=\"18\" />");
	layout.addMember(img);
	Window w = new DockableWindow();
	w.setTitle(messages.searchControllerSearchingTitle());
	w.setAlign(Alignment.CENTER);
	w.setPadding(5);
	w.setHeight(100);
	w.setWidth(300);
	w.addItem(layout);
	w.setShowMinimizeButton(false);
	w.setShowCloseButton(false);
	w.setKeepInParentRect(true);
	w.setAutoCenter(true);
	return w;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:34,代码来源:SearchController.java

示例8: DefaultView

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
/**
 * Construct a default UI with the specified title.
 * 
 * @param applicationTitle title to display
 */
public DefaultView(String applicationTitle) {
	VLayout banner = new VLayout();
	banner.setLayoutAlign(Alignment.CENTER);
	banner.setLayoutAlign(VerticalAlignment.CENTER);

	LayoutSpacer spacerTop = new LayoutSpacer();
	spacerTop.setHeight(WidgetLayout.loadingScreenTopSpacerHeight);
	banner.addMember(spacerTop);

	Img logoImg = new Img(logo);
	logoImg.setWidth(logoWidth);
	logoImg.setHeight(logoHeight);
	logoImg.setLayoutAlign(Alignment.CENTER);
	logoImg.setLayoutAlign(VerticalAlignment.CENTER);
	banner.addMember(logoImg);

	Label titleLabel = new Label(applicationTitle);
	titleLabel.setWidth(logoWidth);
	titleLabel.setHeight(WidgetLayout.loadingScreenTitleHeight);
	titleLabel.setLayoutAlign(Alignment.CENTER);
	titleLabel.setAlign(Alignment.CENTER);
	banner.addMember(titleLabel);

	LayoutSpacer spacer = new LayoutSpacer();
	banner.addMember(spacer);

	VLayout progressLayout = new VLayout();
	progressLayout.setBackgroundColor(WidgetLayout.loadingScreenProgressBackgroundColor);
	progressLayout.setOpacity(WidgetLayout.loadingScreenProgressOpacity);
	progressLayout.setHeight(WidgetLayout.loadingScreenProgressHeight);
	progressLayout.setPadding(WidgetLayout.loadingScreenProgressPadding);

	label = new Label(I18nProvider.getGlobal().loadScreenDownLoadText());
	label.setLayoutAlign(Alignment.CENTER);
	label.setWidth100();
	label.setHeight(WidgetLayout.loadingScreenProgressLabelHeight);
	label.setStyleName("loadingScreenLabel");
	label.setOpacity(100);
	progressLayout.addMember(label);

	progressBar = new Progressbar();
	progressBar.setHeight(WidgetLayout.loadingScreenProgressBarHeight);
	progressBar.setWidth100();
	progressBar.setVertical(false);
	progressBar.setLayoutAlign(Alignment.CENTER);
	progressBar.setLayoutAlign(VerticalAlignment.CENTER);
	progressBar.setOpacity(100);
	progressLayout.addMember(progressBar);
	banner.addMember(progressLayout);

	setBackgroundColor(WidgetLayout.loadingScreenBackgroundColor);
	setShowEdges(true);
	setShowShadow(true);
	setShadowDepth(WidgetLayout.loadingScreenShadowDepth);
	setLayoutAlign(Alignment.CENTER);
	setLayoutAlign(VerticalAlignment.CENTER);
	setWidth(WidgetLayout.loadingScreenWidth);
	setHeight(WidgetLayout.loadingScreenHeight);
	if (!(WidgetLayout.loadingScreenBackgroundImage == null)) {
		setBackgroundImage(WidgetLayout.loadingScreenBackgroundImage);
	}
	setEdgeOpacity(WidgetLayout.loadingScreenEdgeOpacity);
	setAlign(Alignment.CENTER);
	addMember(banner);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:71,代码来源:LoadingScreen.java


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