• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java HasKeyboardSelectionPolicy类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy的典型用法代码示例。如果您正苦于以下问题:Java HasKeyboardSelectionPolicy类的具体用法?Java HasKeyboardSelectionPolicy怎么用?Java HasKeyboardSelectionPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

HasKeyboardSelectionPolicy类属于com.google.gwt.user.cellview.client包,在下文中一共展示了HasKeyboardSelectionPolicy类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: EntityDataGrid

点赞 2

import com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy; //导入依赖的package包/类
/**
 * The default constructor.
 */
public EntityDataGrid() {
    dataProvider = new ListDataProvider<T>();
    dataProvider.addDataDisplay(this);
    setEmptyTableWidget(new Label("Empty"));

    // disable auto refresh
    setAutoHeaderRefreshDisabled(true);
    setAutoFooterRefreshDisabled(true);

    // add row hover handler
    this.addRowHoverHandler(new RowHoverEvent.Handler() {
        @Override
        public void onRowHover(RowHoverEvent event) {
            if (tableRowHoverHandler != null) {
                if (ConstantValues.EVENT_MOUSEOUT.equals((event.getBrowserEvent().getType()))) {
                    if (RowHoverEvent.HoveringScope.CELL_HOVER.equals(event.getHoveringScope())) {
                        tableRowHoverHandler.onRowOut();
                    }
                } else {
                    if (RowHoverEvent.HoveringScope.ROW_HOVER.equals(event.getHoveringScope())) {
                        tableRowHoverHandler.onRowOver(event.getHoveringRow());
                    }
                }
            }
        }
    });
    // disable selection mode
    this.setKeyboardSelectionPolicy(HasKeyboardSelectionPolicy.KeyboardSelectionPolicy.DISABLED);
    // create columns
    createColumns();
}
 

开发者ID:lorislab,
项目名称:smonitor,
代码行数:35,
代码来源:EntityDataGrid.java

示例2: init

点赞 2

import com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy; //导入依赖的package包/类
@PostConstruct
private void init() {
    issuesList.setKeyboardPagingPolicy( HasKeyboardPagingPolicy.KeyboardPagingPolicy.INCREASE_RANGE );
    issuesList.setKeyboardSelectionPolicy( HasKeyboardSelectionPolicy.KeyboardSelectionPolicy.BOUND_TO_SELECTION );
    issuesList.setSelectionModel( getSelectionModel() );
}
 

开发者ID:kiegroup,
项目名称:drools-wb,
代码行数:7,
代码来源:AnalysisReportScreenViewImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)