Extract WebTable.createComponent method (#808)

This commit is contained in:
Ilya Kuchmin 2018-05-07 18:05:38 +04:00 committed by Yuriy Artamonov
parent dd9d151d59
commit f59bc52919

View File

@ -36,7 +36,12 @@ import java.util.*;
public class WebTable<E extends Entity> extends WebAbstractTable<CubaTable, E> {
public WebTable() {
component = new CubaTable() {
component = createTableComponent();
initComponent(component);
}
protected CubaTable createTableComponent() {
return new CubaTable() {
@Override
public Resource getItemIcon(Object itemId) {
return WebTable.this.getItemIcon(itemId);
@ -49,7 +54,6 @@ public class WebTable<E extends Entity> extends WebAbstractTable<CubaTable, E> {
return b;
}
};
initComponent(component);
}
@Override