Explorar el Código

Add TreeGrid#getHierarchyColumn

tags/8.1.0.alpha8
Aleksi Hietanen hace 7 años
padre
commit
b153ba2f8b
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      server/src/main/java/com/vaadin/ui/TreeGrid.java

+ 10
- 0
server/src/main/java/com/vaadin/ui/TreeGrid.java Ver fichero

@@ -252,6 +252,16 @@ public class TreeGrid<T> extends Grid<T>
super.setDataProvider(dataProvider);
}

/**
* Get the currently set hierarchy column.
*
* @return the currently set hierarchy column, or {@code null} if no column
* has been explicitly set
*/
public Column<T, ?> getHierarchyColumn() {
return getColumn(getState(false).hierarchyColumnId);
}

/**
* Set the column that displays the hierarchy of this grid's data. By
* default the hierarchy will be displayed in the first column.

Cargando…
Cancelar
Guardar