本文整理了Java中com.vaadin.v7.ui.Table.paintContent()
方法的一些代码示例,展示了Table.paintContent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.paintContent()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:paintContent
暂无
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
public void paintContent(PaintTarget target) throws PaintException {
if (beforePaintListener != null) {
beforePaintListener.run();
}
super.paintContent(target);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
@Override
public void paintContent(PaintTarget target) throws PaintException {
if (focusedRowId != null) {
target.addAttribute("focusedRow", itemIdMapper.key(focusedRowId));
focusedRowId = null;
} else if (clearFocusedRowPending) {
// Must still inform the client that the focusParent request has
// been processed
target.addAttribute("clearFocusPending", true);
clearFocusedRowPending = false;
}
target.addAttribute("animate", animationsEnabled);
if (hierarchyColumnId != null) {
Object[] visibleColumns2 = getVisibleColumns();
for (int i = 0; i < visibleColumns2.length; i++) {
Object object = visibleColumns2[i];
if (hierarchyColumnId.equals(object)) {
target.addAttribute(
TreeTableConstants.ATTRIBUTE_HIERARCHY_COLUMN_INDEX,
i);
break;
}
}
}
super.paintContent(target);
toggledItemId = null;
}
代码示例来源:origin: tepi/FilteringTable
@Override
public void paintContent(PaintTarget target) throws PaintException {
super.paintContent(target);
/* Add filter components to UIDL */
target.startTag(FilterTableConnector.TAG_FILTERS);
target.addAttribute(FilterTableConnector.ATTRIBUTE_FILTERS_VISIBLE, filtersVisible);
target.addAttribute(FilterTableConnector.ATTRIBUTE_FORCE_RENDER, reRenderFilterFields);
reRenderFilterFields = false;
for (Object key : getColumnIdToFilterMap().keySet()) {
/* Make sure parent is set properly */
if (columnIdToFilterMap.get(key) != null && columnIdToFilterMap.get(key).getParent() == null) {
continue;
}
/* Paint the filter field */
target.startTag(FilterTableConnector.TAG_FILTER_COMPONENT + _columnIdMap.key(key));
target.addAttribute(FilterTableConnector.ATTRIBUTE_COLUMN_ID, _columnIdMap.key(key));
Component c = getColumnIdToFilterMap().get(key);
LegacyPaint.paint(c, target);
target.endTag(FilterTableConnector.TAG_FILTER_COMPONENT + _columnIdMap.key(key));
}
Map<String, String> headerStylenames = getColumnHeaderStylenamesForPaint();
if (headerStylenames != null) {
target.addAttribute(FilterTableConnector.ATTRIBUTE_COLUMN_HEADER_STYLE_NAMES, headerStylenames);
}
target.endTag(FilterTableConnector.TAG_FILTERS);
}
内容来源于网络,如有侵权,请联系作者删除!