From a217e121fe799860a1d677c44dfede66afd95af4 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 27 Nov 2022 09:19:26 +0100 Subject: [PATCH] IDEMPIERE-5491 Info Window - implement Select/DeSelect All buttons (FHCA-4016) (#1582) --- .../WEB-INF/src/metainfo/zk/lang-addon.xml | 4 +- .../org/adempiere/webui/info/InfoWindow.java | 9 +- .../org/adempiere/webui/panel/InfoPanel.java | 128 +++++++++++++++++- .../adempiere/webui/panel/StatusBarPanel.java | 19 ++- .../default/css/fragment/font-icons.css.dsp | 7 +- .../theme/default/images/DeSelectAll16.png | Bin 0 -> 852 bytes .../theme/default/images/DeSelectAll24.png | Bin 0 -> 1031 bytes 7 files changed, 143 insertions(+), 24 deletions(-) create mode 100644 org.adempiere.ui.zk/WEB-INF/src/web/theme/default/images/DeSelectAll16.png create mode 100644 org.adempiere.ui.zk/WEB-INF/src/web/theme/default/images/DeSelectAll24.png diff --git a/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml b/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml index f2f2106d3f..4ea1d38861 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml +++ b/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml @@ -47,7 +47,7 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI). - + @@ -57,6 +57,6 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI). - + diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java index ba90052eef..8077791b86 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java @@ -137,8 +137,11 @@ import org.zkoss.zul.impl.InputElement; * @contributor xolali IDEMPIERE-1045 Sub-Info Tabs (reviewed by red1) */ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventListener { - private static final long serialVersionUID = -5482739724937721227L; - + /** + * + */ + private static final long serialVersionUID = -2327249405074671115L; + private static final String ON_QUERY_AFTER_CHANGE = "onQueryAfterChange"; protected Grid parameterGrid; @@ -279,7 +282,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL initInfoProcess(); // when have a process, force multi select mode if (haveProcess) - p_multipleSelection = true; + setMultipleSelection(true); } if (!isAutoComplete) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index 3ab63b9f92..8d0a390d1c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -127,20 +127,22 @@ import org.zkoss.zul.ext.Sortable; */ public abstract class InfoPanel extends Window implements EventListener, WTableModelListener, Sortable, IHelpContext { + /** + * + */ + private static final long serialVersionUID = -6216075383041481835L; + protected static final String ON_USER_QUERY_ATTR = "ON_USER_QUERY"; protected static final String INFO_QUERY_TIME_OUT_ERROR = "InfoQueryTimeOutError"; protected static final String COLUMN_VISIBLE_ORIGINAL = "column.visible.original"; - /** - * - */ - private static final long serialVersionUID = 5502211337030815819L; private final static int DEFAULT_PAGE_SIZE = 100; private final static int DEFAULT_PAGE_PRELOAD = 4; protected List