本文整理汇总了Java中com.google.gwt.cell.client.TextInputCell类的典型用法代码示例。如果您正苦于以下问题:Java TextInputCell类的具体用法?Java TextInputCell怎么用?Java TextInputCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextInputCell类属于com.google.gwt.cell.client包,在下文中一共展示了TextInputCell类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: TextBoxTableColumn
import com.google.gwt.cell.client.TextInputCell; //导入依赖的package包/类
public TextBoxTableColumn(String key) {
super(new TextInputCell());
this.key = key;
this.setFieldUpdater(new FieldUpdater<AssistedObject, String>() {
@Override
public void update(int index, AssistedObject ao, String value) {
List<String> ids = SharedUtil.listFromDotSeparated(TextBoxTableColumn.this.key);
handlerFactory
.createHandler(ao)
.getRelatedKVOMultiLevel(ids)
.setUnchecked(ids.get(ids.size() - 1), value);
}
});
}
开发者ID:inepex,项目名称:ineform,代码行数:17,代码来源:AbstractIneTable.java
示例2: initFormatterExpressionColumn
import com.google.gwt.cell.client.TextInputCell; //导入依赖的package包/类
private void initFormatterExpressionColumn() {
formatterExpressionColumn = new Column<MappingDto, String>(new TextInputCell()) {
@Override
public String getValue(MappingDto mapping) {
return mapping.getFormatterDefinition();
}
};
formatterExpressionColumn.setFieldUpdater(new FieldUpdater<MappingDto, String>() {
@Override
public void update(int index, MappingDto mapping, String value) {
mapping.setFormatterDefinition(value);
}
});
mappings.addColumn(formatterExpressionColumn, LABELS.formatterColumnHeader());
}
开发者ID:wte4j,项目名称:wte4j,代码行数:17,代码来源:MappingPanel.java
示例3: ContextualInfoTable
import com.google.gwt.cell.client.TextInputCell; //导入依赖的package包/类
public ContextualInfoTable() {
//Generate UI table
elements = new ArrayList<>();
removeElements = new ArrayList<>();
table = new CellTable<>(15, (Resources) GWT.create(TableResources.class));
idC = new Column<Pair<String, String>, String>(new TextCell()) {
@Override
public String getValue(Pair<String, String> arg0) {
return arg0.getLeft();
}
};
valueC = new Column<Pair<String, String>, String>(new TextInputCell()) {
@Override
public String getValue(Pair<String, String> object) {
return object.getRight();
}
};
valueC.setFieldUpdater(new FieldUpdater<Pair<String, String>, String>() {
@Override
public void update(int index, Pair<String, String> object,
String value) {
Pair<String, String> p = new Pair<String,String>(object.getLeft(), value);
dataProvider.getList().set(index, p);
}
});
deleteItem = new Button("Delete");
deleteItem.setStyleName("button");
deleteItem.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
removeField();
}
});
final SelectionModel<Pair<String, String>> selectionModel = new SingleSelectionModel<Pair<String, String>>();
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent arg0) {
List<Pair<String, String>> l = dataProvider.getList();
for (int i = 0; i < l.size(); ++i) {
if (selectionModel.isSelected(l.get(i))) {
selectedItem = i;
tablePanel.remove(deleteItem);
tablePanel.add(deleteItem);
}
}
}
});
table.addColumn(idC, "ID");
table.addColumn(valueC, "Value");
pager = new SimplePager();
pager.setDisplay( table );
table.setWidth("100%");
}
开发者ID:RISCOSS,项目名称:riscoss-corporate,代码行数:62,代码来源:ContextualInfoTable.java
注:本文中的com.google.gwt.cell.client.TextInputCell类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论