本文整理汇总了Java中com.google.gwt.user.cellview.client.CellTable.addColumn方法的典型用法代码示例。如果您正苦于以下问题:Java CellTable.addColumn方法的具体用法?Java CellTable.addColumn怎么用?Java CellTable.addColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.cellview.client.CellTable
的用法示例。
在下文中一共展示了CellTable.addColumn方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupAnalyzeResultDisplayPanel
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
private void setupAnalyzeResultDisplayPanel(CellTable<AnalyzerResultDTO> table,
final ListDataProvider<AnalyzerResultDTO> dataProvider) {
final ClickableTextCellRuleID clickableIDcell = new ClickableTextCellRuleID();
Column<AnalyzerResultDTO,String> ruleIDColumn = new Column<AnalyzerResultDTO,String>(clickableIDcell) {
@Override
public String getValue (AnalyzerResultDTO dr) {
if (dr.getRefRuleId() == null)
return "none";
else
return dr.getRefRuleId().toString();
}
};
table.addColumn(ruleIDColumn, "Ref Rule ID");
table.addColumnStyleName(2, "ar_number_column_style");
ruleIDColumn.setFieldUpdater(new FieldUpdater<AnalyzerResultDTO,String> () {
public void update(int index, AnalyzerResultDTO ar, String value) {
showRuleDetailDialog(ar);
}
});
}
示例2: addTableColumns
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
@Override
protected void addTableColumns(CellTable<Synonym> table) {
SynonymColumn synonymColumn = new SynonymColumn();
synonymColumn.setFieldUpdater(new FieldUpdater<Synonym, String>() {
@Override
public void update(int index, Synonym synonym, String value) {
ControlledVocabularyTerm term = synonym.getControlledVocabularyTerm();
if(term != null) {
linkedTermsView.show(term);
}
}
});
synonymColumn.setCellStyleNames("clickable-text");
table.addColumn(new OntologyColumn(), "Ontology/Codelist");
table.addColumn(new TermColumn(), "Term");
table.addColumn(synonymColumn, "Synonym");
table.addColumn(new TypeColumn(), "Type");
table.addColumn(new SourceColumn(), "Source");
table.addColumn(new UsageColumn(), "Usage");
}
示例3: setupTable
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
protected void setupTable(CellTable<Term> table) {
table.setWidth("100%");
table.addStyleName("gwt-CellTable");
table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
table.setSelectionModel(new NoSelectionModel<Term>(keyProvider));
table.addColumn(new OntologyColumn(), "Ontology");
table.addColumn(new TermColumn(), "Term");
}
示例4: addTableColumns
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
@Override
protected void addTableColumns(CellTable<Relationship> table) {
table.addColumn(new OntologyColumn(), "Ontology");
table.addColumn(new TermColumn(), "Term");
table.addColumn(new RelationshipColumn(), "Relationship");
table.addColumn(new RelatedTermColumn(), "Related Term");
}
示例5: addAliasColumn
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
protected void addAliasColumn(CellTable<SslKeyStoreEntry> cellTable, String columnHeaderName) {
Column<SslKeyStoreEntry, String> aliasColumn = new Column<SslKeyStoreEntry, String>(new TextCell()) {
@Override
public String getValue(SslKeyStoreEntry keyItem) {
return keyItem.getAlias();
}
};
aliasColumn.setSortable(true);
cellTable.addColumn(aliasColumn, columnHeaderName);
cellTable.setColumnWidth(aliasColumn, 50, Style.Unit.PCT);
}
示例6: addDeleteColumn
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
protected Column<SslKeyStoreEntry, String> addDeleteColumn(CellTable<SslKeyStoreEntry> cellTable, String columnHeaderName) {
Column<SslKeyStoreEntry, String> deleteKeyColumn = new Column<SslKeyStoreEntry, String>(new ButtonCell()) {
@Override
public String getValue(SslKeyStoreEntry object) {
return "Delete";
}
};
cellTable.addColumn(deleteKeyColumn, columnHeaderName);
cellTable.setColumnWidth(deleteKeyColumn, 30, Style.Unit.PX);
return deleteKeyColumn;
}
示例7: addTableColumns
import com.google.gwt.user.cellview.client.CellTable; //导入方法依赖的package包/类
@Override
protected void addTableColumns(CellTable<Term> table) {
table.addColumn(new OntologyColumn(), "Ontology");
table.addColumn(new TermColumn(), "Term");
}