本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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");
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}