com.vaadin.v7.ui.Table.paintContent()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(309)

本文整理了Java中com.vaadin.v7.ui.Table.paintContent()方法的一些代码示例,展示了Table.paintContent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.paintContent()方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:paintContent

Table.paintContent介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

  1. @Override
  2. public void paintContent(PaintTarget target) throws PaintException {
  3. if (beforePaintListener != null) {
  4. beforePaintListener.run();
  5. }
  6. super.paintContent(target);
  7. }

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. @Override
  2. public void paintContent(PaintTarget target) throws PaintException {
  3. if (focusedRowId != null) {
  4. target.addAttribute("focusedRow", itemIdMapper.key(focusedRowId));
  5. focusedRowId = null;
  6. } else if (clearFocusedRowPending) {
  7. // Must still inform the client that the focusParent request has
  8. // been processed
  9. target.addAttribute("clearFocusPending", true);
  10. clearFocusedRowPending = false;
  11. }
  12. target.addAttribute("animate", animationsEnabled);
  13. if (hierarchyColumnId != null) {
  14. Object[] visibleColumns2 = getVisibleColumns();
  15. for (int i = 0; i < visibleColumns2.length; i++) {
  16. Object object = visibleColumns2[i];
  17. if (hierarchyColumnId.equals(object)) {
  18. target.addAttribute(
  19. TreeTableConstants.ATTRIBUTE_HIERARCHY_COLUMN_INDEX,
  20. i);
  21. break;
  22. }
  23. }
  24. }
  25. super.paintContent(target);
  26. toggledItemId = null;
  27. }

代码示例来源:origin: tepi/FilteringTable

  1. @Override
  2. public void paintContent(PaintTarget target) throws PaintException {
  3. super.paintContent(target);
  4. /* Add filter components to UIDL */
  5. target.startTag(FilterTableConnector.TAG_FILTERS);
  6. target.addAttribute(FilterTableConnector.ATTRIBUTE_FILTERS_VISIBLE, filtersVisible);
  7. target.addAttribute(FilterTableConnector.ATTRIBUTE_FORCE_RENDER, reRenderFilterFields);
  8. reRenderFilterFields = false;
  9. for (Object key : getColumnIdToFilterMap().keySet()) {
  10. /* Make sure parent is set properly */
  11. if (columnIdToFilterMap.get(key) != null && columnIdToFilterMap.get(key).getParent() == null) {
  12. continue;
  13. }
  14. /* Paint the filter field */
  15. target.startTag(FilterTableConnector.TAG_FILTER_COMPONENT + _columnIdMap.key(key));
  16. target.addAttribute(FilterTableConnector.ATTRIBUTE_COLUMN_ID, _columnIdMap.key(key));
  17. Component c = getColumnIdToFilterMap().get(key);
  18. LegacyPaint.paint(c, target);
  19. target.endTag(FilterTableConnector.TAG_FILTER_COMPONENT + _columnIdMap.key(key));
  20. }
  21. Map<String, String> headerStylenames = getColumnHeaderStylenamesForPaint();
  22. if (headerStylenames != null) {
  23. target.addAttribute(FilterTableConnector.ATTRIBUTE_COLUMN_HEADER_STYLE_NAMES, headerStylenames);
  24. }
  25. target.endTag(FilterTableConnector.TAG_FILTERS);
  26. }

相关文章

Table类方法