Ejemplo n.º 1
0
 public void updateRowVisibility(Set<String> names) {
   if (names.equals(showNames)) return;
   this.showNames = names;
   int row = 0;
   while (row < table.getRowCount()) {
     Element rowEl = rowFormatter.getElement(row);
     String className = rowEl.getClassName().trim();
     rowFormatter.setVisible(row, className.isEmpty() || showNames.contains(className));
     row++;
   }
 }
Ejemplo n.º 2
0
 private void updateCellStyle(int row, ExtLevel level, boolean isTraceLine) {
   rowFormatter.getElement(row).getStyle().setColor(LogParser.getColor(level));
   rowFormatter.setStyleName(row, level == null ? "" : level.getName());
   rowFormatter.setVisible(row, level == null ? true : showNames.contains(level.getName()));
   cellFormatter.getElement(row, 0).getStyle().setPaddingLeft(isTraceLine ? 20 : 2, Unit.PX);
 }