本文整理汇总了Java中com.sencha.gxt.data.shared.ModelKeyProvider类的典型用法代码示例。如果您正苦于以下问题:Java ModelKeyProvider类的具体用法?Java ModelKeyProvider怎么用?Java ModelKeyProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModelKeyProvider类属于com.sencha.gxt.data.shared包,在下文中一共展示了ModelKeyProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: FeatureGrid
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例2: FeatureGrid
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例3: initializeAttributeLabelCombo
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例4: getCommonStore
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例5: getStore
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例6: getStore
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例7: getStore
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的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
示例8: getListStore
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
private ListStore<Tuple<Integer, List<String>>> getListStore() {
if (store == null) {
store = new ListStore<Tuple<Integer, List<String>>>(
new ModelKeyProvider<Tuple<Integer, List<String>>>() {
@Override
public String getKey(Tuple<Integer, List<String>> data) {
return data.getX().toString();
}
});
}
return store;
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:13,代码来源:DataPreviewGrid.java
示例9: createModelKeyProvider
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
public static ModelKeyProvider<NavigationComponent> createModelKeyProvider() {
return new ModelKeyProvider<NavigationComponent>() {
public String getKey(NavigationComponent item) {
return item.getName();
}
};
}
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:9,代码来源:NavigationComponent.java
示例10: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("FeatureId")
ModelKeyProvider<VectorFeatureInfo> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:VectorFeatureProperties.java
示例11: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("name")
ModelKeyProvider<LayerDef> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:LayerDefProperties.java
示例12: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("id")
ModelKeyProvider<Geoprocess> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:GeoprocessProperties.java
示例13: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("attributeName")
ModelKeyProvider<FeatureAttributeBean> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:FeatureAttributeBeanProperties.java
示例14: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("id")
ModelKeyProvider<FeatureAttributeEditingDef> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:FeatureAttributeEditingDefProperties.java
示例15: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("name")
ModelKeyProvider<StatusItem> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:StatusPanelWidget.java
示例16: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("id")
ModelKeyProvider<VectorLayerInfo> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:VectorLayerProperties.java
示例17: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("plate")
ModelKeyProvider<VehicleJSO> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:VehicleJSOProperties.java
示例18: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("name")
ModelKeyProvider<VertexStyleDef> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:VertexStyleDefProperties.java
示例19: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("attributeName")
ModelKeyProvider<GitHubRepositoryAttributeBean> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:GitHubRepositoryAttributeBeanProperties.java
示例20: key
import com.sencha.gxt.data.shared.ModelKeyProvider; //导入依赖的package包/类
@Path("attributeName")
ModelKeyProvider<GitHubFileListAttributeBean> key();
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:GitHubFileListAttributeBeanProperties.java
注:本文中的com.sencha.gxt.data.shared.ModelKeyProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论