TourPhotoLinkView.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:mytourbook 作者:
/**
     * column: tour end date
     */
    private void defineColumn_Time_TourEndDate() {

        final ColumnDefinition colDef = TableColumnFactory.TIME_TOUR_END_DATE.createColumn(_columnManager, _pc);
//      colDef.setCanModifyVisibility(false);
//      colDef.setIsDefaultColumn();
        colDef.setLabelProvider(new CellLabelProvider() {
            @Override
            public void update(final ViewerCell cell) {

                final TourPhotoLink link = (TourPhotoLink) cell.getElement();
                final long historyTime = link.historyEndTime;

                cell.setText(historyTime == Long.MIN_VALUE //
                        ? TimeTools.getZonedDateTime(link.tourEndTime).format(TimeTools.Formatter_Date_S)
                        : TimeTools.getZonedDateTime(historyTime).format(TimeTools.Formatter_Date_S));

                setBgColor(cell, link);
            }
        });
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号