当前位置: 首页>>代码示例>>Java>>正文


Java ClickableTextCell类代码示例

本文整理汇总了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);
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:26,代码来源:ApplicationReferencesList.java

示例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);
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:SortableHeader.java

示例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;
}
 
开发者ID:inepex,项目名称:ineform,代码行数:8,代码来源:SortableHeader.java

示例4: SynonymColumn

import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public SynonymColumn() {
	super(new ClickableTextCell());
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:4,代码来源:TermSynonymsView.java

示例5: NameColumn

import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public NameColumn() {
	super(new ClickableTextCell());
	setSortable(true);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:CrossRefPopup.java

示例6: SynonymColumn

import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public SynonymColumn() {
	super(new ClickableTextCell());
	setSortable(true);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:ApproveRejectSynonymComposite.java

示例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;
   }
 
开发者ID:symulakr,项目名称:generators-example,代码行数:7,代码来源:Customer.java

示例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;
   }
 
开发者ID:symulakr,项目名称:generators-example,代码行数:7,代码来源:Customer.java

示例9: WeekDayColumn

import com.google.gwt.cell.client.ClickableTextCell; //导入依赖的package包/类
public WeekDayColumn(WeekDay day) {
  super(new ClickableTextCell());
  this.day = day;
}
 
开发者ID:Peergos,项目名称:Peergos,代码行数:5,代码来源:TimeSlotListWidget.java


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