mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
Extract WebTable.createComponent method (#808)
This commit is contained in:
parent
dd9d151d59
commit
f59bc52919
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user