本文整理汇总了Java中com.smartgwt.client.widgets.layout.VLayout类的典型用法代码示例。如果您正苦于以下问题:Java VLayout类的具体用法?Java VLayout怎么用?Java VLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VLayout类属于com.smartgwt.client.widgets.layout包,在下文中一共展示了VLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
});
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}