本文整理汇总了Java中com.smartgwt.client.widgets.layout.VLayout类的典型用法代码示例。如果您正苦于以下问题:Java VLayout类的具体用法?Java VLayout怎么用?Java VLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VLayout类属于com.smartgwt.client.widgets.layout包,在下文中一共展示了VLayout类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: installControlPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
private void installControlPanel(String sectionId, Widget widget) {
// This section is not in this accordion
if(accordion.getSection(sectionId) == null)
return;
Canvas[] items = accordion.getSection(sectionId).getItems();
VLayout container = (VLayout)items[0];
for(Canvas member : container.getMembers()) {
container.removeMember(member);
}
if(widget != null)
container.addMember(widget);
}
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:18,代码来源:AccordionPresenter.java
示例2: DisMaDesc
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public DisMaDesc(MarkerManagement markerManagement,
AMarker parentMarker, String htmlDescription) {
super(parentMarker, htmlDescription, "2px solid Grey");
VLayout reactivateVL = new VLayout();
reactivateVL.setWidth100();
reactivateVL.addMember(new ClickableLabel("Reaktivieren", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
DisMaDesc.this.parentMarker.changeState(MarkerState.ACTIVE);
}
}));
this.addMember(reactivateVL);
}
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:17,代码来源:DisMaDesc.java
示例3: buildOutputPane
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
protected VLayout buildOutputPane() {
this.label = new Label();
this.label.setWidth100();
this.label.setAlign(Alignment.CENTER);
this.label.hide();
this.text = new HTMLPane();
this.text.setHeight100();
this.text.setWidth100();
this.text.setShowEdges(true);
this.text.hide();
VLayout textLayout = new VLayout();
textLayout.addMember(this.label);
textLayout.addMember(this.text);
textLayout.setWidth100();
return textLayout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:20,代码来源:AbstractOutputDisplayView.java
示例4: buildContent
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
protected Layout buildContent() {
VLayout layout = new VLayout();
this.buildGrid();
this.loadingLabel = new Label("fetching " + this.itemName + "...");
this.loadingLabel.setIcon("loading.gif");
this.loadingLabel.setWidth100();
this.loadingLabel.setHeight100();
this.loadingLabel.setAlign(Alignment.CENTER);
this.loadingLabel.hide();
this.errorLabel = new Label("");
this.errorLabel.setWidth100();
this.errorLabel.setAlign(Alignment.CENTER);
this.errorLabel.hide();
layout.addMember(this.itemsGrid);
layout.addMember(this.loadingLabel);
layout.addMember(this.errorLabel);
return layout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:23,代码来源:AbstractGridItemsView.java
示例5: build
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public Layout build() {
VLayout itemsViewLayout = new VLayout();
if (this.hasToolBar) {
Layout navTools = this.buildToolbar();
itemsViewLayout.addMember(navTools);
}
Layout content = this.buildContent();
itemsViewLayout.addMember(content);
Layout paginationBar = this.buildPagination();
itemsViewLayout.addMember(paginationBar);
return itemsViewLayout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:17,代码来源:AbstractGridItemsView.java
示例6: tryLogin
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
private void tryLogin(final String session, final VLayout loadingMessage) {
this.scheduler.getSchedulerStatus(session, new AsyncCallback<String>() {
public void onSuccess(String result) {
if (loadingMessage != null) {
loadingMessage.destroy();
}
login(session, Settings.get().getSetting(LOGIN_SETTING));
LogModel.getInstance().logMessage("Rebound session " + session);
}
public void onFailure(Throwable caught) {
if (loadingMessage != null) {
loadingMessage.destroy();
}
Settings.get().clearSetting(SESSION_SETTING);
SchedulerController.this.loginView = new LoginPage(SchedulerController.this, null);
tryToLoginIfLoggedInRm();
}
});
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:21,代码来源:SchedulerController.java
示例7: setRoot
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的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);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:18,代码来源:VisualizationViewHtml.java
示例8: SourceOverview
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public SourceOverview(RMController controller, String url, String nsname, AsyncCallback<String> extraCallback) {
nsInfo = new MBeanSourceDetailedView(extraCallback,
controller,
url,
MonitoringSourceView.MBEAN_NAME_PREFIX + "-" + nsname,
Arrays.asList("Hosts", "VMs"));
nsInfo.reload();
VLayout nsInfoRow = new VLayout();
Label nsLabel = new Label("<nobr style='font-weight:bold;'>Overview<nobr>");
nsLabel.setHeight(50);
nsInfoRow.addMember(nsLabel);
nsInfoRow.addMember(nsInfo);
nsInfoRow.setWidth("50%");
nsInfoRow.setHeight("120px");
addMember(nsInfoRow);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:22,代码来源:SourceOverview.java
示例9: ExportResultWidget
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public ExportResultWidget() {
i18n = GWT.create(ClientMessages.class);
VLayout vLayout = new VLayout();
vLayout.setWidth100();
vLayout.setHeight100();
grid = new ListGrid();
grid.setSelectionType(SelectionStyle.SINGLE);
grid.setFixedRecordHeights(false);
grid.setWrapCells(true);
ListGridField pidField = new ListGridField(ExportResourceApi.RESULT_ERROR_PID,
i18n.ExportResultWidget_PID_Title());
ListGridField errorField = new ListGridField(ExportResourceApi.RESULT_ERROR_MESSAGE,
i18n.ExportResultWidget_Message_Title());
grid.setFields(pidField, errorField);
grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() {
@Override
public void onSelectionUpdated(SelectionUpdatedEvent event) {
logForm.editSelectedData(grid);
}
});
logForm = createLogForm();
vLayout.setMembers(grid, logForm);
this.widget = vLayout;
}
开发者ID:proarc,项目名称:proarc,代码行数:27,代码来源:DesaExportAction.java
示例10: ImportBatchChooser
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public ImportBatchChooser(ClientMessages i18n) {
this.i18n = i18n;
this.actionSource = new ActionSource(this);
setWidth100();
setHeight100();
lGridBatches = initBatchesListGrid();
lGridBatches.setDataSource(ImportBatchDataSource.getInstance());
lGridBatches.setShowResizeBar(true);
lGridBatches.setResizeBarTarget("next");
ToolStrip toolbar = createToolbar();
logForm = createLogForm();
VLayout innerLayout = new VLayout();
innerLayout.setMargin(4);
innerLayout.addMember(lGridBatches);
innerLayout.addMember(logForm);
setMembers(toolbar, innerLayout);
}
开发者ID:proarc,项目名称:proarc,代码行数:24,代码来源:ImportBatchChooser.java
示例11: BatchEditor
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public BatchEditor(ClientMessages i18n) {
widget = new VLayout();
form = new DynamicForm();
form.setBrowserSpellCheck(false);
TextItem owner = new TextItem(DigitalObjectAdministrationDataSource.FIELD_OWNER);
owner.setCanEdit(Boolean.FALSE);
SelectItem device = new SelectItem(DigitalObjectAdministrationDataSource.FIELD_DEVICE,
i18n.ImportSourceChooser_OptionScanner_Title());
DeviceDataSource.setOptionDataSource(device);
device.setWidth(250);
device.setAllowEmptyValue(true);
device.setEmptyDisplayValue(ClientUtils.format("<i><%s></i>",
i18n.DigitalObjectEditor_AdministrationEditor_NoDeviceSelection_Title()));
form.setItems(device);
widget.setMembers(form);
}
开发者ID:proarc,项目名称:proarc,代码行数:20,代码来源:DigitalObjectAdministrationEditor.java
示例12: createWindow
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
private Window createWindow(DynamicForm form) {
VLayout container = new VLayout();
container.setMembers(form, createButtons());
container.setMargin(15);
Window window = new Window();
window.setAutoCenter(true);
window.setAutoSize(true);
window.setIsModal(true);
window.addItem(container);
window.setTitle(i18nSgwt.dialog_LoginTitle());
window.setShowCloseButton(false);
window.setShowMinimizeButton(false);
window.setKeepInParentRect(true);
window.setShowModalMask(true);
window.setCanDragReposition(false);
return window;
}
开发者ID:proarc,项目名称:proarc,代码行数:18,代码来源:LoginWindow.java
示例13: initDigitalObjectEditor
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
private Canvas initDigitalObjectEditor(DigitalObjectEditor childEditor, SimpleEventBus eventBus) {
childEditor.setImportView(true);
RelationDataSource relationDataSource = RelationDataSource.getInstance();
relationDataSource.addRelationChangeHandler(new RelationChangeHandler() {
@Override
public void onRelationChange(RelationChangeEvent event) {
// issue 262: isVisible seems to be always true and isAttached is always null.
// Add test isDrawn that seems to change for dettached widgets.
if (batchItemGrid.isVisible() && batchItemGrid.isDrawn()) {
updateCache();
}
}
});
ActivityManager activityManager = new ActivityManager(
new ChildActivities(childEditor), eventBus);
VLayout editorsLayout = new VLayout();
editorsLayout.addStyleName("defaultBorder");
activityManager.setDisplay(new ChildEditorDisplay(editorsLayout));
return editorsLayout;
}
开发者ID:proarc,项目名称:proarc,代码行数:23,代码来源:ImportBatchItemEditor.java
示例14: DigitalObjectPreview
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public DigitalObjectPreview(ClientMessages i18n) {
this.i18n = i18n;
zoomValues = new ValuesManager();
zoomValues.setValue(FIELD_ZOOM, Zoom.FIT_PANEL);
VLayout imgContainer = new VLayout();
imgContainer.setAlign(Alignment.CENTER);
windowContainer = new VLayout();
windowContainer.setAlign(Alignment.CENTER);
windowContainer.setWidth100();
windowContainer.setHeight100();
imageWindow = createFullImageWindow(windowContainer);
previewLayout = new VLayout();
previewLayout.setBackgroundColor(BACKGROUND_COLOR);
previewLayout.addMember(imgContainer);
previewLoadTask = new ImageLoadTask(imgContainer,
new Zoom(zoomValues.getValueAsString(FIELD_ZOOM)), false, i18n);
}
开发者ID:proarc,项目名称:proarc,代码行数:20,代码来源:DigitalObjectPreview.java
示例15: DigitalObjectSearchView
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
public DigitalObjectSearchView(ClientMessages i18n) {
this.i18n = i18n;
this.i18nSmartGwt = ClientUtils.createSmartGwtMessages();
foundGrid = createList();
selectionCache = SelectionCache.selector(foundGrid);
filters = createFilter();
VLayout vLayout = new VLayout();
vLayout.addMember(filters);
toolbar = createToolbar();
vLayout.addMember(toolbar);
vLayout.addMember(foundGrid);
rootWidget = vLayout;
}
开发者ID:proarc,项目名称:proarc,代码行数:17,代码来源:DigitalObjectSearchView.java
示例16: showWindow
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
/**
* Starts the editor.
* @param consumer a callback that consumes the edited values as a record
* @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DATE_FROM_PARAM
* @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DATE_TO_PARAM
* @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DAYS_INCLUDED_PARAM
* @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_PARTNUMBER_FROM_PARAM
*/
public void showWindow(Consumer<Record> consumer) {
Objects.nonNull(consumer);
this.consumer = consumer;
if (dialog == null) {
dialog = new Dialog(i18n.DigitalObjectEditor_ChildrenEditor_AddAction_Title());
VLayout container = dialog.getDialogContentContainer();
container.setMembers(getWidget());
dialog.addOkButton((event) -> {
onSave();
});
dialog.addCancelButton(() -> {
dialog.hide();
});
}
dialog.show();
form.clearValues();
form.focus();
}
开发者ID:proarc,项目名称:proarc,代码行数:27,代码来源:NewIssueEditor.java
示例17: onDraw
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
@Override
protected void onDraw() {
super.onDraw();
VLayout windowContainer = new VLayout();
windowContainer.setWidth100();
windowContainer.setMargin(10);
if (question != null) {
LayoutSpacer gap = new LayoutSpacer();
gap.setHeight(30);
windowContainer.addMember(question);
windowContainer.addMember(gap);
}
windowContainer.addMember(getDialogContentContainer());
windowContainer.addMember(getDialogButtonsContainer());
addItem(windowContainer);
}
开发者ID:proarc,项目名称:proarc,代码行数:17,代码来源:Dialog.java
示例18: 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
示例19: 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
示例20: setUpDetails
import com.smartgwt.client.widgets.layout.VLayout; //导入依赖的package包/类
private VLayout setUpDetails() {
VLayout lRight = new VLayout();
lRight.setStyleName("layoutRight");
// lRight.setPadding(20);
setUpInformationArea();
lRight.addMember(informationArea);
setUpGeneralItems();
lRight.addMember(generalItems);
// setUpButtons();
// lRight.addMember(buttons);
return lRight;
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:17,代码来源:ListSearch.java
注:本文中的com.smartgwt.client.widgets.layout.VLayout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论