本文整理汇总了Java中com.smartgwt.client.widgets.layout.VLayout.setShowResizeBar方法的典型用法代码示例。如果您正苦于以下问题:Java VLayout.setShowResizeBar方法的具体用法?Java VLayout.setShowResizeBar怎么用?Java VLayout.setShowResizeBar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.smartgwt.client.widgets.layout.VLayout
的用法示例。
在下文中一共展示了VLayout.setShowResizeBar方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMainLayout
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
private Canvas createMainLayout() {
VLayout forms = new VLayout();
forms.setOverflow(Overflow.AUTO);
forms.addMember(createForm());
forms.addMember(createParameterList());
forms.setShowResizeBar(true);
forms.setResizeBarTarget("next");
VLayout main = new VLayout();
main.addMember(createTaskToolbar());
main.addMember(forms);
main.addMember(createMaterialList());
return main;
}
示例2: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
// Build a map, and set a PanController:
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
final MapWidget map = new MapWidget("mapLegend", "gwtExample");
map.setController(new PanController(map));
mapLayout.addMember(map);
//LayerList panel:
VLayout layerListLayout = new VLayout(10);
layerListLayout.setHeight(120);
layerListLayout.setShowEdges(true);
// Build the LayerList:
final LayerListPresenter layersManagementPresenter = new LayerListPresenterImpl(map);
layersManagementPresenter.setDragDropEnabled(true);
layersManagementPresenter.getWidget().setWidth100();
layersManagementPresenter.getWidget().setHeight100();
layerListLayout.addMember(layersManagementPresenter.getWidget());
layerListLayout.setShowResizeBar(true);
// Add both to the main layout:
mainLayout.addMember(layerListLayout);
mainLayout.addMember(mapLayout);
return mainLayout;
}
示例3: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editMultiPointLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditMultiPoint", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableMultiCities"));
}
});
// Create a toolbar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例4: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editPolygonLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditPolygon", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditablePolygon"));
}
});
// Create a tool-bar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例5: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editLineLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditMultiLine", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("editableRoadtrl020LayerML"));
}
});
// Create a tool-bar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例6: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editLineLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditLine", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableRoadtrl020"));
}
});
// Create a toolbar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例7: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editPolygonLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditMultiPolygon", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableMultiPolygon"));
}
});
// Create a tool-bar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例8: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editPointLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditPoint", "gwtExample");
map.getMapModel().runWhenInitialized(new Runnable() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void run() {
map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableAirports"));
}
});
// Create a toolbar for this map:
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
// Add an explanation to the page that explains how editing is done:
HLayout infoLayout = new HLayout();
infoLayout.setHeight("35%");
infoLayout.setShowEdges(true);
infoLayout.addMember(new EditingManual());
layout.addMember(mapLayout);
layout.addMember(infoLayout);
return layout;
}
示例9: DigitalObjectChildrenEditor
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public DigitalObjectChildrenEditor(ClientMessages i18n, PlaceController places, OptionalEditor preview) {
this.i18n = i18n;
this.places = places;
this.preview = preview;
this.actionSource = new ActionSource(this);
this.goDownAction = DigitalObjectNavigateAction.child(i18n, places);
relationDataSource = RelationDataSource.getInstance();
childrenListGrid = initChildrenListGrid();
this.selectionCache = SelectionCache.selector(childrenListGrid);
VLayout childrenLayout = new VLayout();
childrenLayout.setMembers(childrenListGrid);
childrenLayout.setWidth("40%");
childrenLayout.setShowResizeBar(true);
SimpleEventBus eventBus = new SimpleEventBus();
childPlaces = new PlaceController(eventBus);
childEditor = new DigitalObjectEditor(i18n, childPlaces, true);
ActivityManager activityManager = new ActivityManager(
new ChildActivities(childEditor), eventBus);
VLayout editorsLayout = new VLayout();
VLayout editorsOuterLayout = new VLayout();
// editorsLayout.setBorder("1px solid grey");
editorsLayout.addStyleName("defaultBorder");
editorsOuterLayout.setLayoutLeftMargin(4);
editorsOuterLayout.setMembers(editorsLayout);
activityManager.setDisplay(new ChildEditorDisplay(editorsLayout));
widget = new HLayout();
widget.setMembers(childrenLayout, editorsOuterLayout);
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 (digitalObject != null && childrenListGrid.isVisible() && childrenListGrid.isDrawn()) {
String changedPid = event.getPid();
if (changedPid != null) {
Record changedRecord = childrenListGrid.getDataAsRecordList()
.find(RelationDataSource.FIELD_PID, changedPid);
if (changedRecord == null) {
// moved object(s)
// ListGrid does not remove selection of removed/moved rows
// and it does not fire selection change
// issue 246: clear selection of moved row
childrenListGrid.deselectAllRecords();
DigitalObjectCopyMetadataAction.resetSelection();
showCopySelection(new Record[0]);
return ;
}
}
final ListGridRecord[] selection = childrenListGrid.getSelectedRecords();
relationDataSource.updateCaches(digitalObject.getPid(), new BooleanCallback() {
@Override
public void execute(Boolean value) {
// refresh the copy selection as updated records are missing the copy attribute
showCopySelection(DigitalObjectCopyMetadataAction.getSelection());
// refresh the list selection
selectChildren(selection);
}
});
}
}
});
}
示例10: ImportBatchItemEditor
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public ImportBatchItemEditor(ClientMessages i18n) {
this.i18n = i18n;
this.setHeight100();
this.setWidth100();
this.actionSource = new ActionSource(this);
VLayout layout = new VLayout();
layout.setShowResizeBar(true);
layout.setResizeBarTarget("next");
batchItemGrid = createItemList();
layout.addMember(batchItemGrid);
// child editors
SimpleEventBus eventBus = new SimpleEventBus();
childPlaces = new PlaceController(eventBus);
childEditor = new DigitalObjectEditor(i18n, childPlaces, true);
childDisplay = initDigitalObjectEditor(childEditor, eventBus);
layout.addMember(childDisplay);
HLayout editorThumbLayout = new HLayout();
editorThumbLayout.setHeight100();
editorThumbLayout.addMember(layout);
thumbViewer = createThumbViewer();
editorThumbLayout.addMember(thumbViewer);
this.selectionCache = new SelectionCache<>(
Optional.empty(),
r -> batchItemGrid.getRecordIndex(r));
VLayout editorThumbToolbarLayout = new VLayout();
editorThumbToolbarLayout.setShowResizeBar(true);
editorThumbToolbarLayout.setResizeBarTarget("next");
createActions();
ToolStrip editorToolStrip = createEditorToolBar(actionSource);
editorThumbToolbarLayout.addMember(editorToolStrip);
editorThumbToolbarLayout.addMember(editorThumbLayout);
addMember(editorThumbToolbarLayout);
digitalObjectPreview = new MediaEditor(i18n);
digitalObjectPreview.addBackgroundColorListeners(thumbViewer);
digitalObjectPreview.setShowRefreshButton(true);
ToolStrip previewToolbar = Actions.createToolStrip();
previewToolbar.setMembers(digitalObjectPreview.getToolbarItems());
VLayout previewLayout = new VLayout();
previewLayout.setMembers(previewToolbar, digitalObjectPreview.getUI());
previewLayout.setWidth("40%");
previewLayout.setHeight100();
// previewLayout.setShowResizeBar(true);
// previewLayout.setResizeFrom("L");
addMember(previewLayout);
createEditorContextMenu(batchItemGrid.getContextMenu(), this);
createEditorContextMenu(thumbViewer.getContextMenu(), this);
}
示例11: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
// Switch off lazy loading, we want to get everything at once
GwtCommandDispatcher.getInstance().setUseLazyLoading(false);
// Create a map with the African countries and make it invisible:
final MapWidget map = new MapWidget("mapFeatureListGrid", "gwtExample");
map.setVisible(false);
layout.addMember(map);
map.init();
// Create a layout with a FeatureListGrid in it:
final FeatureListGrid grid = new FeatureListGrid(map.getMapModel());
grid.setShowEdges(true);
// Create a search widget that displays it's results in the FeatureListGrid:
final FeatureSearch search = new FeatureSearch(map.getMapModel(), true);
search.addSearchHandler(new DefaultSearchHandler(grid) {
public void afterSearch() {
}
});
// Set the maximum number of features to retrieve.
search.setMaximumResultSize(50);
VLayout searchLayout = new VLayout();
searchLayout.setHeight("30%");
searchLayout.setShowEdges(true);
searchLayout.addMember(search);
searchLayout.setShowResizeBar(true);
// Add the search and the grid to the layout:
layout.addMember(searchLayout);
layout.addMember(grid);
return layout;
}
示例12: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
final VLayout layout = new VLayout();
layout.setMembersMargin(10);
layout.setWidth100();
layout.setHeight100();
// Map with ID beansMap is defined in the XML configuration. (contains any type of attribute)
final MapWidget map = new MapWidget("mapBeansAssociation", "gwtExample");
map.setVisible(false);
layout.addMember(map);
map.init();
// Create a layout with a FeatureListGrid in it:
final FeatureListGrid grid = new FeatureListGrid(map.getMapModel());
grid.setShowEdges(true);
// Create a search widget that displays it's results in the FeatureListGrid:
final FeatureSearch search = new FeatureSearch(map.getMapModel(), true);
search.addSearchHandler(new DefaultSearchHandler(grid) {
public void afterSearch() {
}
});
// Create a layout for the search, and add a title in it:
VLayout searchLayout = new VLayout();
searchLayout.setHeight("40%");
searchLayout.setShowEdges(true);
searchLayout.setMembersMargin(10);
ToolStrip title = new ToolStrip();
title.setWidth100();
Label titleLabel = new Label(MESSAGES.search2InnerTitle());
titleLabel.setWidth100();
title.addSpacer(10);
title.addMember(titleLabel);
searchLayout.addMember(title);
searchLayout.addMember(search);
searchLayout.setShowResizeBar(true);
// Add the search and the grid to the layout:
layout.addMember(searchLayout);
layout.addMember(grid);
return layout;
}
示例13: getViewPanel
import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
public Canvas getViewPanel() {
VLayout mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
// Build a map, and set a PanController:
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
mapWidget = new MapWidget("mapOsm", "gwtExample");
mapWidget.setController(new PanController(mapWidget));
mapLayout.addMember(mapWidget);
VLayout addWmsLayerLayout = new VLayout(10);
addWmsLayerLayout.setHeight(80);
addWmsLayerLayout.setShowEdges(true);
addWmsLayerLayout.addMember(new HTMLFlow(MESSAGES.wmsTxt()));
final TextItem txtURL = new TextItem("layer_url", MESSAGES.layerUrl());
txtURL.setValue("http://apps.geomajas.org/geoserver/wms");
txtURL.setWidth(250);
final TextItem txtLayer = new TextItem("layer_name", MESSAGES.layerName());
txtLayer.setValue("demo_world:simplified_country_borders");
DynamicForm dynamicForm = new DynamicForm();
dynamicForm.setFields(txtURL, txtLayer);
addWmsLayerLayout.addMember(dynamicForm);
HLayout buttonLayout = new HLayout(5);
buttonLayout.setPadding(10);
IButton addLayerButton = new IButton(MESSAGES.addLayer());
addLayerButton.setWidth(150);
addLayerButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
mapWidget.getMapModel().addLayer(createSampleWmsLayerInfo(txtLayer.getValueAsString(),
txtURL.getValueAsString()));
}
});
buttonLayout.addMember(addLayerButton);
addWmsLayerLayout.addMember(buttonLayout);
addWmsLayerLayout.setShowResizeBar(true);
// Add both to the main layout:
mainLayout.addMember(addWmsLayerLayout);
mainLayout.addMember(mapLayout);
return mainLayout;
}