• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ListStore类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sencha.gxt.data.shared.ListStore的典型用法代码示例。如果您正苦于以下问题:Java ListStore类的具体用法?Java ListStore怎么用?Java ListStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ListStore类属于com.sencha.gxt.data.shared包,在下文中一共展示了ListStore类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initLayerCombo1

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private ComboBox<VectorLayerInfo> initLayerCombo1() {
					
	VectorLayerProperties properties = GWT
			.create(VectorLayerProperties.class);

	layerStore1 = new ListStore<VectorLayerInfo>(properties.key());

	layerCombo1 = new ComboBox<VectorLayerInfo>(layerStore1,
			properties.name());
	layerCombo1.setEmptyText((UIMessages.INSTANCE.sbLayerComboEmptyText()));
	layerCombo1.setTypeAhead(true);
	layerCombo1.setTriggerAction(TriggerAction.ALL);
	layerCombo1.setForceSelection(true);
	layerCombo1.setEditable(false);
	layerCombo1.enableEvents();
	layerCombo1.setWidth(width);

	layerCombo1.addSelectionHandler(new SelectionHandler<VectorLayerInfo>() {
		@Override
		public void onSelection(SelectionEvent<VectorLayerInfo> event) {
			layerCombo1.setValue(event.getSelectedItem(), true);
		}
	});

	return layerCombo1;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:27,代码来源:CopyElementDialog.java


示例2: createGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private Grid<LayerDef> createGrid(ListStore<LayerDef> dataStore,
		LayerDefProperties properties) {
	
	RowExpander<LayerDef> rowExpander = createRowExpander();
	ColumnModel<LayerDef> columnModel = createColumnList(properties, rowExpander);
	Grid<LayerDef> grid = new Grid<LayerDef>(dataStore, columnModel);				
	grid.setBorders(true);
	grid.getView().setForceFit(true);				
	grid.getView().setAutoExpandColumn(columnModel.getColumn(2));
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);
	grid.setBorders(true);
	grid.setColumnReordering(true);
	rowExpander.initPlugin(grid);	
	
	return grid;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:18,代码来源:LayerCatalogDialog.java


示例3: GeoprocessComboBox

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public GeoprocessComboBox(Collection<Geoprocess> spatialOperations) {
	super(new ListStore<Geoprocess>(
			((GeoprocessProperties)GWT.create(GeoprocessProperties.class)).key()),
			((GeoprocessProperties)GWT.create(GeoprocessProperties.class)).name());
	initialize();
	getStore().addAll(spatialOperations);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:8,代码来源:GeoprocessComboBox.java


示例4: createGridPanel

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private HorizontalPanel createGridPanel() {
	HorizontalPanel hPanel = new HorizontalPanel();
	hPanel.setSize("510px", "320px");
	
	vehicleStore = new ListStore<VehicleJSO>(vehicleProps.key());
	vehiculeGrid = createGrid(vehicleStore, vehicleProps);
	
	vehiculeGrid.getSelectionModel().addSelectionChangedHandler(
			new SelectionChangedHandler<VehicleJSO>() {
				@Override
				public void onSelectionChanged(
						SelectionChangedEvent<VehicleJSO> event) {
					List<VehicleJSO> selected = event.getSelection();						
					vehicleToolBar.setVehicles(selected);						
				}
			});

	VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
	gridContainer.setWidth(500);
	gridContainer.setHeight(320);
	gridContainer.add(vehiculeGrid, new VerticalLayoutData(1, 1));				
	hPanel.add(gridContainer);
	hPanel.add(vehicleToolBar);
	return hPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:26,代码来源:VehicleDialog.java


示例5: VertexStyleComboBox

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public VertexStyleComboBox(String width) {
	super(new ListStore<VertexStyleDef>(
			((VertexStyleDefProperties)GWT.create(VertexStyleDefProperties.class)).key()),
			((VertexStyleDefProperties)GWT.create(VertexStyleDefProperties.class)).name(),
			new AbstractSafeHtmlRenderer<VertexStyleDef>() {
				final VertexStyleComboTemplates comboBoxTemplates = GWT
						.create(VertexStyleComboTemplates.class);

				public SafeHtml render(VertexStyleDef item) {
					return comboBoxTemplates.vertexStyle(item.getImage()
							.getSafeUri(), item.getName());
				}
			});
	
	setWidth(width);
	setTypeAhead(true);
	setEmptyText(UIMessages.INSTANCE.sbLayerComboEmptyText());
	setTriggerAction(TriggerAction.ALL);
	setForceSelection(true);
	setEditable(false);
	enableEvents();
	
	getStore().addAll(VertexStyles.getAll());
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:25,代码来源:VertexStyleComboBox.java


示例6: FeatureGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public FeatureGrid(int width, int height) {
	super(new ListStore<VectorFeature>(
			new ModelKeyProvider<VectorFeature>() {
				@Override
				public String getKey(VectorFeature item) {
					return item.getFeatureId();
				}
			}),

	new ColumnModel<VectorFeature>(
			new ArrayList<ColumnConfig<VectorFeature, ?>>())

	);

	this.setBorders(true);
	this.setAllowTextSelection(true);
	this.getView().setStripeRows(true);
	this.getView().setColumnLines(true);
	this.setColumnReordering(true);
	this.setLoadMask(true);

	this.setWidth(width);
	this.setHeight(height);

	this.setEnableCellRender(false);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:27,代码来源:FeatureGrid.java


示例7: FeatureGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public FeatureGrid(int width, int height) {
	super(
			new ListStore<VectorFeature>(
					new ModelKeyProvider<VectorFeature> () {
						@Override
						public String getKey(VectorFeature item) {						
							return item.getFeatureId();
						}					
					}),
			
			new ColumnModel<VectorFeature>(
					new ArrayList<ColumnConfig<VectorFeature, ?>>())
			);
			
	this.setBorders(true);
	this.setAllowTextSelection(true);
	this.getView().setStripeRows(true);
	this.getView().setColumnLines(true);		
	this.setColumnReordering(true);					
	this.setLoadMask(true);
	
	this.setWidth(width);
	this.setHeight(height);	
	
	this.setEnableCellRender(false);
}
 
开发者ID:geowe,项目名称:geowe-core,代码行数:27,代码来源:FeatureGrid.java


示例8: createAndAddGridPortlet

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private void createAndAddGridPortlet() {
  store = new ListStore<>(properties.key());
  ColumnConfig<TabItemValue, String> idColumn = new ColumnConfig<>(properties.id(),
                                                                   1200,
                                                                   "ID");
  List<ColumnConfig<TabItemValue, ?>> columns = new ArrayList<>();
  columns.add(idColumn);
  ColumnModel<TabItemValue> cm = new ColumnModel<>(columns);
  grid = new Grid<>(store,
                    cm);
  grid.getView()
      .setAutoExpandColumn(idColumn);
  grid.getView()
      .setForceFit(true);
  grid.getView()
      .setStripeRows(true);
  grid.getView()
      .setColumnLines(true);
  grid.setHeight(512);
  Portlet portlet01 = new Portlet();
  portlet01.setHeading("Open Tabs");
  portlet01.add(grid);
  portal.add(portlet01,
             0);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:26,代码来源:ContentView.java


示例9: createDraggableGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private Grid<LayerDef> createDraggableGrid(ListStore<LayerDef> dataStore,
		LayerDefProperties properties) {
	
	Grid<LayerDef> grid = createGrid(dataStore, properties);		
	new GridDragSource<LayerDef>(grid).setGroup("layers");
	
	GridDropTarget<LayerDef> dropTarget = new GridDropTarget<LayerDef>(grid);
	dropTarget.setFeedback(Feedback.INSERT);
	dropTarget.setGroup("layers");
	
	return grid;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:13,代码来源:LayerCatalogDialog.java


示例10: updateCombo

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private void updateCombo(ComboBox<VectorLayerInfo> combo,
		ListStore<VectorLayerInfo> store,
		List<VectorLayerInfo> updatedLayers) {
	store.clear();
	store.addAll(updatedLayers);
	combo.redraw();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:8,代码来源:GeoprocessDialog.java


示例11: initializeAttributeLabelCombo

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private void initializeAttributeLabelCombo(String width) {
	ListStore<FeatureAttributeDef> attributeLabelStore = new ListStore<FeatureAttributeDef>(
			new ModelKeyProvider<FeatureAttributeDef>() {
				@Override
				public String getKey(FeatureAttributeDef item) {
					return (item == null) ? null : item.getName();
				}

			});

	attributeCombo = new ComboBox<FeatureAttributeDef>(attributeLabelStore,
			new LabelProvider<FeatureAttributeDef>() {
				@Override
				public String getLabel(FeatureAttributeDef item) {
					return (item == null) ? null : item.getName();
				}
			});

	attributeCombo.setWidth(width);
	attributeCombo.setTypeAhead(true);
	attributeCombo.setEmptyText(UIMessages.INSTANCE
			.asdAttributeComboEmptyText());
	attributeCombo.setTriggerAction(TriggerAction.ALL);
	attributeCombo.setForceSelection(true);
	attributeCombo.setEditable(false);
	attributeCombo.enableEvents();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:28,代码来源:AttributeSearchDialog.java


示例12: initialize

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public void initialize(GridEditing<FeatureAttributeBean> gridEditing,
		ListStore<FeatureAttributeBean> featureAttributes) {
	this.gridEditing = gridEditing;
	this.featureAttributes = featureAttributes;
	setHeaderVisible(false);
	addStyleName(ThemeStyles.get().style().borderBottom());
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.setSpacing(5);
	horizontalGroup.add(getEditButton());
	horizontalGroup.add(getClearButton());
	horizontalGroup.add(getWKTButton());
	horizontalGroup.add(getExportCSVButton());
	setWidget(horizontalGroup);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:15,代码来源:FeatureInfoToolBar.java


示例13: initializeStatusGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private void initializeStatusGrid() {
	// Creacion del Grid Base
	StatusItemProperties props = GWT.create(StatusItemProperties.class);
	statusStore = new ListStore<StatusItem>(props.key());
	statusStore.setAutoCommit(true);

	ColumnConfig<StatusItem, String> nameCol = new ColumnConfig<StatusItem, String>(
			props.name(), 75, UIMessages.INSTANCE.fedColumnNameText());

	ColumnConfig<StatusItem, String> valueCol = new ColumnConfig<StatusItem, String>(
			props.value(), 150,
			UIMessages.INSTANCE.fedNewAttributeDefaultNameText());

	List<ColumnConfig<StatusItem, ?>> columns = new ArrayList<ColumnConfig<StatusItem, ?>>();
	columns.add(nameCol);
	columns.add(valueCol);

	statusGrid = new Grid<StatusItem>(statusStore,
			new ColumnModel<StatusItem>(columns));
	statusGrid.setSelectionModel(new CellSelectionModel<StatusItem>());
	statusGrid.getColumnModel().getColumn(1).setHideable(false);
	statusGrid.setHideHeaders(true);
	statusGrid.setAllowTextSelection(true);
	statusGrid.getView().setStripeRows(true);
	statusGrid.getView().setColumnLines(true);
	statusGrid.setBorders(false);

	statusStore.add(new StatusItem(LON_LABEL, null));
	statusStore.add(new StatusItem(LAT_LABEL, null));
	statusStore.add(new StatusItem(SCALE_LABEL, null));
	statusStore.add(new StatusItem(CLICK_COORD_X, null));
	statusStore.add(new StatusItem(CLICK_COORD_Y, null));
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:34,代码来源:StatusPanelWidget.java


示例14: createGrid

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private Grid<VehicleJSO> createGrid(ListStore<VehicleJSO> dataStore,
		VehicleJSOProperties properties) {
	
	StringFilter<VehicleJSO> plateFilter = new StringFilter<VehicleJSO>(properties.plate());
	StringFilter<VehicleJSO> nameFilter = new StringFilter<VehicleJSO>(properties.name());
	GridFilters<VehicleJSO> filters = new GridFilters<VehicleJSO>();
	
	
	RowExpander<VehicleJSO> rowExpander = createRowExpander();
	ColumnModel<VehicleJSO> columnModel = createColumnList(properties, rowExpander);
	Grid<VehicleJSO> grid = new Grid<VehicleJSO>(dataStore, columnModel);		
	
	grid.setBorders(true);
	grid.getView().setForceFit(true);				
	grid.getView().setAutoExpandColumn(columnModel.getColumn(2));
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);
	grid.setBorders(true);
	grid.setColumnReordering(true);
	rowExpander.initPlugin(grid);	
	
	filters.initPlugin(grid);
	filters.setLocal(true);		 
	filters.addFilter(nameFilter);
	filters.addFilter(plateFilter);
	
	return grid;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:29,代码来源:VehicleDialog.java


示例15: VectorFormatComboBox

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public VectorFormatComboBox(String width,
		Collection<VectorFormat> vectorFormats) {
	super(new ListStore<VectorFormat>(
			((VectorFormatProperties)GWT.create(VectorFormatProperties.class)).key()),
			((VectorFormatProperties)GWT.create(VectorFormatProperties.class)).name());
	initialize(width);
	getStore().addAll(vectorFormats);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:9,代码来源:VectorFormatComboBox.java


示例16: createPanel

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private Widget createPanel() {
	final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
	vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	final GitHubRepositoryAttributeBeanProperties props = GWT
			.create(GitHubRepositoryAttributeBeanProperties.class);
	repositoryStore = new ListStore<GitHubRepositoryAttributeBean>(props.key());

	final ColumnConfig<GitHubRepositoryAttributeBean, Integer> idCol = new ColumnConfig<GitHubRepositoryAttributeBean, Integer>(
			props.attributeId(), 190, "Id");		
	final ColumnConfig<GitHubRepositoryAttributeBean, String> nameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeName(), 190, UIMessages.INSTANCE.gitHubColumNameRepo());
	final ColumnConfig<GitHubRepositoryAttributeBean, String> descriptionCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.description(), 200, UIMessages.INSTANCE.gitHubColumDescriptionRepo());
	
	final ColumnConfig<GitHubRepositoryAttributeBean, String> fullNameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeFullName(), 200, "Full Name");

	final List<ColumnConfig<GitHubRepositoryAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubRepositoryAttributeBean, ?>>();
	//columns.add(idCol);
	columns.add(nameCol);
	columns.add(descriptionCol);		
	//columns.add(fullNameCol);

	final ColumnModel<GitHubRepositoryAttributeBean> columModel = new ColumnModel<GitHubRepositoryAttributeBean>(
			columns);

	grid = new Grid<GitHubRepositoryAttributeBean>(
			repositoryStore, columModel);
	//grid.setSelectionModel(new CellSelectionModel<GitHubRepositoryAttributeBean>());
	grid.getColumnModel().getColumn(0).setHideable(false);
	grid.setAllowTextSelection(true);
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);		
	grid.setBorders(false);
	setGridDragable(grid);
	
	vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(5, 0, 0, 0)));		

	return vPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:41,代码来源:GitHubRepositoryListDialog.java


示例17: getCommonStore

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
public ListStore<TableModel> getCommonStore() {
	if (commonStore == null) {
		commonStore = new ListStore<TableModel>(
				new ModelKeyProvider<TableModel>() {
					@Override
					public String getKey(TableModel item) {
						return item.getName();
					}
				});
	}

	return commonStore;
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:14,代码来源:TableManagerViewImpl.java


示例18: getStore

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private ListStore<PartitionModel> getStore() {
	if (store == null) {
		store = new ListStore<PartitionModel>(
				new ModelKeyProvider<PartitionModel>() {
					@Override
					public String getKey(PartitionModel item) {
						return item.getName();
					}
				});
	}
	return store;
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:13,代码来源:PartitionTab.java


示例19: getStore

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private ListStore<ModelPropertyModel> getStore() {
	if (this.store == null) {
		this.store = new ListStore<TableInfoTab.ModelPropertyModel>(
				new ModelKeyProvider<ModelPropertyModel>() {
					@Override
					public String getKey(ModelPropertyModel item) {
						return item.getName();
					}
				});
	}
	return this.store;
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:13,代码来源:TableInfoTab.java


示例20: getStore

import com.sencha.gxt.data.shared.ListStore; //导入依赖的package包/类
private ListStore<TableColumnModel> getStore() {
	if (store == null) {
		store = new ListStore<TableColumnModel>(
				new ModelKeyProvider<TableColumnModel>() {
					@Override
					public String getKey(TableColumnModel item) {
						return item.getName();
					}
				});
	}

	return store;
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:14,代码来源:ColumnInfoTab.java



注:本文中的com.sencha.gxt.data.shared.ListStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TraversalMetrics类代码示例发布时间:2022-05-23
下一篇:
Java FileInfo类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap