本文整理汇总了Java中com.smartgwt.client.widgets.layout.Layout.addMember方法的典型用法代码示例。如果您正苦于以下问题:Java Layout.addMember方法的具体用法?Java Layout.addMember怎么用?Java Layout.addMember使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.smartgwt.client.widgets.layout.Layout
的用法示例。
在下文中一共展示了Layout.addMember方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initVariablesActualForm
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Layout initVariablesActualForm() {
// actual form used to POST
variablesActualForm = new FormPanel();
variablesActualForm.setMethod(FormPanel.METHOD_POST);
variablesActualForm.setAction(URL_SUBMIT_XML);
hiddenPane = new VerticalPanel();
_fields = new Hidden[variables.size()];
int i = 0;
for (Entry<String, JobVariable> var : variables.entrySet()) {
_fields[i] = new Hidden("var_" + var.getKey());
hiddenPane.add(_fields[i]);
i++;
}
hiddenPane.add(new Hidden("job", job));
hiddenPane.add(new Hidden(SESSION_ID_PARAMETER_NAME, LoginModel.getInstance().getSessionId()));
hiddenPane.add(validate);
variablesActualForm.setWidget(hiddenPane);
Layout fpanelWra = new Layout();
fpanelWra.addMember(variablesActualForm);
return fpanelWra;
}
示例2: setRoot
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
public void setRoot(Layout layout) {
wrapper = new VLayout();
wrapper.setWidth100();
wrapper.setHeight100();
this.noJobSelectedMessage = new Label("No job selected.");
this.noJobSelectedMessage.setAlign(Alignment.CENTER);
this.noJobSelectedMessage.setWidth100();
wrapper.addMember(noJobSelectedMessage);
htmlPanel = new HTML();
htmlPanel.getElement().setId("html-view");
wrapper.addMember(htmlPanel);
layout.addMember(wrapper);
}
示例3: createValueIntervalLabel
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createValueIntervalLabel() {
Layout interval = new HLayout();
interval.setAutoWidth();
interval.setStyleName("n52_sensorweb_client_legendInfoRow");
this.firstValueInterval.setAutoWidth();
this.firstValueInterval.setWrap(false);
this.firstValueInterval.setStyleName("n52_sensorweb_client_legendlink");
this.lastValueInterval.setAutoWidth();
this.lastValueInterval.setWrap(false);
this.lastValueInterval.setStyleName("n52_sensorweb_client_legendlink");
Label separator = new Label(i18n.to());
separator.setAlign(Alignment.CENTER);
separator.setWidth(20);
interval.addMember(this.firstValueInterval);
interval.addMember(separator);
interval.addMember(this.lastValueInterval);
return interval;
}
示例4: getHomeLabel
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Layout getHomeLabel() {
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_logoBlock");
Img homeLabel = new Img("../img/client-logo.png", 289, 55);
homeLabel.setStyleName("n52_sensorweb_client_logo");
homeLabel.setCursor(Cursor.POINTER);
homeLabel.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
String url = "http://52north.org/communities/sensorweb/";
Window.open(url, "_blank", "");
}
});
layout.addMember(homeLabel);
return layout;
}
示例5: getLayout
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
protected Layout getLayout() {
/* widget that will be returned as the root layout */
Layout root = new Layout();
root.setWidth100();
root.addMember(label);
root.addMember(details);
return root;
}
示例6: onDraw
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
@Override
protected void onDraw() {
updateGui();
Layout outer = getOuter();
if (GuwLayout.DropDown.showDropDownImage) {
Img arrow = new Img("[ISOMORPHIC]/images/arrow_down.png", 9, 9);
arrow.setLayoutAlign(Alignment.CENTER);
outer.addMember(arrow);
}
addChild(outer);
}
示例7: createEditCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
@Override
public Canvas createEditCanvas() {
controller.clearSelectionData();
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_create_abo_template_overundershootcondition");
layout.addMember(alignVerticalCenter(createEntryConditionEditCanvas()));
layout.addMember(alignVerticalCenter(createExitConditionEditCanvas()));
return layout;
}
示例8: createSubscribeAndHelpContent
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createSubscribeAndHelpContent() {
Layout layout = new HLayout();
layout.addMember(createNewEventAbonnementCanvas());
layout.addMember(createContextWindowHelp());
layout.setOverflow(VISIBLE);
return layout;
}
示例9: createNewEventAbonnementCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createNewEventAbonnementCanvas() {
Layout subscriptionContent = new VLayout();
subscriptionContent.setStyleName("n52_sensorweb_client_create_abo_form_content");
subscriptionContent.addMember(createStationInfo());
subscriptionContent.addMember(createRuleTemplateSelectionCanvas());
subscriptionContent.addMember(new EventNameForm(controller));
subscriptionContent.addMember(createApplyCancelCanvas());
subscriptionContent.addMember(new TimeSeriesMetadataTable(controller));
return subscriptionContent;
}
示例10: createRuleTemplateSelectionCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createRuleTemplateSelectionCanvas() {
Layout selectionCanvas = new VLayout();
SelectSubscriptionForm selectionRadioForm = new SelectSubscriptionForm(controller);
SubscriptionTemplate template = selectionRadioForm.getDefaultSubscriptionTemplate();
Canvas ruleTemplateEditCanvas = createRuleTemplateEditorCanvas(template);
selectionCanvas.addMember(selectionRadioForm);
selectionCanvas.addMember(ruleTemplateEditCanvas);
return selectionCanvas;
}
示例11: createEditCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
@Override
public Canvas createEditCanvas() {
controller.clearSelectionData();
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_create_abo_template_sensorlosscondition");
layout.addMember(alignVerticalCenter(createEditConditionCanvas()));
return layout;
}
示例12: createSelectionMenuWindow
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createSelectionMenuWindow() {
Layout layout = new Layout();
layout.addMember(createExpandableSelectionGrid());
selectionMenu = new InteractionWindow(layout);
selectionMenu.setZIndex(1000000);
selectionMenu.setWidth(250);
selectionMenu.setHeight(290);
selectionMenu.setWindowTitle(i18n.dataprovider());
setSelectionMenuWindowPosition();
return selectionMenu;
}
示例13: generateHeader
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private void generateHeader(){
setStyleName("n52_sensorweb_client_headerContainer");
setBackgroundImage("../img/52n_bg.png");
setAutoHeight();
addMember(getHomeLabel());
Layout rightLayout = new VLayout();
Layout linkLayout = new HLayout();
linkLayout.setStyleName("n52_sensorweb_client_linkBlock");
linkLayout.setAlign(Alignment.RIGHT);
// linkLayout.addMember(getVersionInfo());
// linkLayout.addMember(getSeparator());
// temporary button for metadata reset
//linkLayout.addMember(getMetadatareset());
//linkLayout.addMember(getSeparator());
linkLayout.addMember(getPermalinkLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getHelpLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getAddBookmarkLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getImprintLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getCopyrightLink());
rightLayout.addMember(linkLayout);
if (ClientUtils.isSesEnabled()) {
rightLayout.addMember(createLoginInfo());
}
addMember(rightLayout);
}
示例14: Impressum
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
public Impressum() {
setTitle(IMPRESSUM_TITLE);
setWidth(500);
setHeight(500);
centerInPage();
setIsModal(true);
Layout layout = new VLayout();
HTMLPane htmlContentPane = new HTMLPane();
htmlContentPane.setContentsURL(CONTENT_PATH);
layout.addMember(htmlContentPane);
addItem(layout);
}