From f59bc52919b55f08bb3beed941ca05a7c4f8081d Mon Sep 17 00:00:00 2001 From: Ilya Kuchmin Date: Mon, 7 May 2018 18:05:38 +0400 Subject: [PATCH] Extract WebTable.createComponent method (#808) --- .../com/haulmont/cuba/web/gui/components/WebTable.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java index 13f29a797a..398f0c051f 100644 --- a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java +++ b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTable.java @@ -36,7 +36,12 @@ import java.util.*; public class WebTable extends WebAbstractTable { 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 extends WebAbstractTable { return b; } }; - initComponent(component); } @Override