• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java AbstractCellTable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: doSetColumnWidth

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
@Override
protected void doSetColumnWidth(int index, String aValue) {
	if (index >= 0 && index < getColumnCount()) {
		super.doSetColumnWidth(index, aValue);
		if (columnsPartners != null) {
			for (AbstractCellTable<T> partner : columnsPartners) {
				if (index >= 0 && index < partner.getColumnCount()) {
					Column<T, ?> col = partner.getColumn(index);
					if (aValue == null) {
						partner.clearColumnWidth(col);
					} else {
						partner.setColumnWidth(col, aValue);
					}
				}
			}
		}
		widthChanged();
	}
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:20,代码来源:GridSection.java


示例2: TraceSearchTableBuilder

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
/**
 * Construct a new table builder.
 *
 * @param cellTable the table this builder will build rows for
 */
public TraceSearchTableBuilder(AbstractCellTable<TraceInfo> cellTable,
                               Set<Long> expandedDetails) {
    super(cellTable);

    // Cache styles for faster access.
    AbstractCellTable.Style style = cellTable.getResources().style();
    evenRowStyle = style.evenRow();
    selectedRowStyle = " " + style.selectedRow();
    cellStyle = style.cell();
    evenCellStyle = " " + style.evenRowCell();
    firstColumnStyle = " " + style.firstColumn();
    lastColumnStyle = " " + style.lastColumn();
    selectedCellStyle = " " + style.selectedRowCell();
    extenderCellStyle = Resources.INSTANCE.zicoCssResources().methodDetailCell();

    this.colDetails = new IdentityColumn<TraceInfo>(new TraceDetailCell());
    this.expandedDetails = expandedDetails;
}
 
开发者ID:jitlogic,项目名称:zico,代码行数:24,代码来源:TraceSearchTableBuilder.java


示例3: TraceCallTableBuilder

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
/**
 * Construct a new table builder.
 *
 * @param cellTable the table this builder will build rows for
 */
public TraceCallTableBuilder(AbstractCellTable<TraceRecordInfo> cellTable,
                             Set<String> expandedDetails) {
    super(cellTable);

    // Cache styles for faster access.
    AbstractCellTable.Style style = cellTable.getResources().style();
    evenRowStyle = style.evenRow();
    selectedRowStyle = " " + style.selectedRow();
    cellStyle = style.cell();
    evenCellStyle = " " + style.evenRowCell();
    firstColumnStyle = " " + style.firstColumn();
    lastColumnStyle = " " + style.lastColumn();
    selectedCellStyle = " " + style.selectedRowCell();
    extenderCellStyle = Resources.INSTANCE.zicoCssResources().methodDetailCell();

    this.colDetails = new IdentityColumn<TraceRecordInfo>(new MethodDetailCell());
    this.expandedDetails = expandedDetails;
}
 
开发者ID:jitlogic,项目名称:zico,代码行数:24,代码来源:TraceCallTableBuilder.java


示例4: ResizableHeader

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public ResizableHeader(String title,
                       AbstractCellTable<T> cellTable,
                       Column<T, ?> column) {
    super(new HeaderCell());
    this.title = title;
    this.cellTable = cellTable;
    this.column = column;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:9,代码来源:ResizableHeader.java


示例5: ColumnResizeHelper

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public ColumnResizeHelper(AbstractCellTable<E> table,
                          Column<E, ?> col,
                          Element el) {
    this.el = el;
    this.table = table;
    this.col = col;
    handler = Event.addNativePreviewHandler(this);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:9,代码来源:ResizableHeader.java


示例6: DraggedColumn

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
protected DraggedColumn(Column<T, ?> aColumn, Header<?> aHeader, int aColumnIndex, AbstractCellTable<T> aTable, Element aCellElement, Element aTargetElement) {
	super();
	column = aColumn;
	columnIndex = aColumnIndex;
	header = aHeader;
	table = aTable;
	cellElement = aCellElement;
	targetElement = aTargetElement;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:10,代码来源:DraggedColumn.java


示例7: createTable

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
@Override
protected AbstractCellTable<AssistedObject> createTable() {
    return new CellTable<AssistedObject>(
        DEFAULT_PAGE_SIZE,
        ResourceHelper.cellTableResources(),
        KEY_PROVIDER) {

        @Override
        public void setRowData(int start, java.util.List<? extends AssistedObject> values) {
            super.setRowData(start, values);
            if (values.size() == 0) {
                if (pager != null)
                    pager.setVisible(false);
                if (topPager != null)
                    topPager.setVisible(false);
                getTableHeadElement().getStyle().setVisibility(Visibility.HIDDEN);
            } else {
                if (pager != null)
                    pager.setVisible(true);
                if (topPager != null)
                    topPager.setVisible(true);
                getTableHeadElement().getStyle().setVisibility(Visibility.VISIBLE);
            }
        }

    };
}
 
开发者ID:inepex,项目名称:ineform,代码行数:28,代码来源:IneTable.java


示例8: ResizableHeader

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public ResizableHeader(String title, AbstractCellTable<T> table, Column<T, ?> column,
                       String moveStyle, String resizeStyle, String moveToolTip, String resizeToolTip) {
    super(new HeaderCell());
    if (title == null || table == null || column == null)
        throw new NullPointerException();
    this.title = title;
    this.column = column;
    this.table = table;
    this.tableElement = table.getElement();
    this.moveStyle = moveStyle;
    this.resizeStyle = resizeStyle;
    this.moveToolTip = moveToolTip;
    this.resizeToolTip = resizeToolTip;
}
 
开发者ID:rkfg,项目名称:gwtutil,代码行数:15,代码来源:ResizableHeader.java


示例9: getTable

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public AbstractCellTable<T> getTable() {
	return table;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:DraggedColumn.java


示例10: getColumnsPartners

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public AbstractCellTable<T>[] getColumnsPartners() {
	return columnsPartners;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例11: setColumnsPartners

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public void setColumnsPartners(AbstractCellTable<T>[] aPartners) {
	columnsPartners = aPartners;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例12: getHeaderSource

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public AbstractCellTable<T> getHeaderSource() {
	return headerSource;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例13: setHeaderSource

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public void setHeaderSource(AbstractCellTable<T> aValue) {
	headerSource = aValue;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例14: getFooterSource

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public AbstractCellTable<T> getFooterSource() {
	return footerSource;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例15: setFooterSource

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public void setFooterSource(AbstractCellTable<T> aValue) {
	footerSource = aValue;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridSection.java


示例16: GridWidthPropagator

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public GridWidthPropagator(AbstractCellTable<T> aTable) {
    super();
    table = aTable;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:5,代码来源:GridWidthPropagator.java


示例17: getTable

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public AbstractCellTable<T> getTable() {
    return table;
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:GridWidthPropagator.java


示例18: NullHeaderOrFooterBuilder

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public NullHeaderOrFooterBuilder(AbstractCellTable<T> table, boolean isFooter) {
    super(table, isFooter);
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:NullHeaderOrFooterBuilder.java


示例19: ThemedHeaderOrFooterBuilder

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
public ThemedHeaderOrFooterBuilder(AbstractCellTable<T> table, boolean isFooter) {
	super(table, isFooter);
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:ThemedHeaderOrFooterBuilder.java


示例20: buildHeaderOrFooterImpl

import com.google.gwt.user.cellview.client.AbstractCellTable; //导入依赖的package包/类
@Override
protected boolean buildHeaderOrFooterImpl() {
	AbstractCellTable<T> table = getTable();
	boolean isFooter = isBuildingFooter();

	int columnCount = table.getColumnCount();
	if (columnCount > 0) {
		// Early exit if there aren't any headers or footers in the columns
		// to render.
		boolean hasHeadersOrFooters = false;
		for (int i = 0; i < columnCount; i++) {
			if (getHeader(i) != null) {
				hasHeadersOrFooters = true;
				break;
			}
		}
		if (hasHeadersOrFooters) {
			List<HeaderNode<T>> headersForest;
			if (headerNodes == null) {
				headersForest = new ArrayList<>();
				for (int curColumn = 0; curColumn < columnCount; curColumn++) {
					Header<?> headerOrFooter = getHeader(curColumn);
					HeaderNode<T> hn = new HeaderNode<T>();
					hn.setHeader((Header<String>) headerOrFooter);
					headersForest.add(hn);
				}
			} else {
				headersForest = headerNodes;
			}
			// Get information about the sorted columns.
			ColumnSortList sortList;
			if (sortListHolder != null) {
				sortList = sortListHolder.getSortList();
			} else {
				sortList = table.getColumnSortList();
			}
			Map<Column<T, ?>, ColumnSortList.ColumnSortInfo> sortedColumns = new HashMap<>();
			if (sortList != null) {
				for (int i = 0; i < sortList.size(); i++) {
					ColumnSortList.ColumnSortInfo sInfo = sortList.get(i);
					sortedColumns.put((Column<T, ?>) sInfo.getColumn(), sInfo);
				}
			}
			buildNodes(headersForest, sortedColumns);
			return true;
		} else {
			// No headers to render;
			return false;
		}
	} else {
		// Nothing to render;
		return false;
	}
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:55,代码来源:ThemedHeaderOrFooterBuilder.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Char2ObjectMap类代码示例发布时间:2022-05-22
下一篇:
Java NotificationPublishService类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap