本文整理汇总了Java中com.google.gwt.cell.client.ClickableTextCell类的典型用法代码示例。如果您正苦于以下问题:Java ClickableTextCell类的具体用法?Java ClickableTextCell怎么用?Java ClickableTextCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClickableTextCell类属于com.google.gwt.cell.client包,在下文中一共展示了ClickableTextCell类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createColumns
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
@Override
protected void createColumns(DefaultCellTable<Reference> table, ListDataProvider<Reference> dataProvider) {
Column<Reference, String> nameColumn = new Column<Reference, String>(new ClickableTextCell()) {
@Override
public String getValue(Reference reference) {
return reference.localName();
}
};
nameColumn.setFieldUpdater(new FieldUpdater<Reference, String>() {
@Override
public void update(int index, Reference object, String value) {
_presenter.onNavigateToReference(object, _application);
}
});
nameColumn.setSortable(true);
ColumnSortEvent.ListHandler<Reference> sortHandler = new ColumnSortEvent.ListHandler<Reference>(
dataProvider.getList());
sortHandler.setComparator(nameColumn, createColumnCommparator(nameColumn));
table.addColumn(nameColumn, Singleton.MESSAGES.label_name());
table.addColumnSortHandler(sortHandler);
table.getColumnSortList().push(nameColumn);
}
示例2: SortableHeader
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public SortableHeader(SortableHeaderGroup sortableHeaderGroup,
String text,
Column<T, C> column) {
super(new ClickableTextCell());
this.sortableHeaderGroup = sortableHeaderGroup;
this.text = text;
this.column = column;
setUpdater(new ValueUpdater<String>() {
public void update(String s) {
SortableHeader.this.sortableHeaderGroup.headerClicked(SortableHeader.this);
}
});
}
示例3: SortableHeader
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
SortableHeader(String text) {
super(new ClickableTextCell());
if (template == null) {
template = GWT.create(Template.class);
}
this.text = text;
}
示例4: SynonymColumn
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public SynonymColumn() {
super(new ClickableTextCell());
}
示例5: NameColumn
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public NameColumn() {
super(new ClickableTextCell());
setSortable(true);
}
示例6: SynonymColumn
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public SynonymColumn() {
super(new ClickableTextCell());
setSortable(true);
}
示例7: getFirstName
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
@Column(header = "First Name", cellType = ClickableTextCell.class)
// @ColumnActions(position = 0, fieldUpdater = FieldUpdaterImpl.class)
public String getFirstName()
{
return firstName;
}
示例8: getLastName
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
@Column(header = "Last Name", cellType = ClickableTextCell.class)
// @ColumnActions(position = 1)
public String getLastName()
{
return lastName;
}
示例9: WeekDayColumn
import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public WeekDayColumn(WeekDay day) {
super(new ClickableTextCell());
this.day = day;
}