IDEMPIERE-5291 - Process Parameter Panel - Hidden Parameters Should N… (#1331)

* IDEMPIERE-5291 - Process Parameter Panel - Hidden Parameters Should Not Take Empty Space

* IDEMPIERE-5291 - working with List of Row

* IDEMPIERE-5291 - working with new List of Row
This commit is contained in:
PeterTakacs300 2022-05-19 05:28:55 +02:00 committed by GitHub
parent 7af88c8c99
commit 74a4d8db1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -145,6 +145,7 @@ public class ProcessParameterPanel extends Panel implements
private ArrayList<GridField> m_mFields = new ArrayList<GridField>();
private ArrayList<GridField> m_mFields2 = new ArrayList<GridField>();
private ArrayList<Space> m_separators = new ArrayList<Space>();
private ArrayList<Row> m_Rows = new ArrayList<Row>();
//
private Grid centerPanel = null;
private Map<String, List<Row>> fieldGroupContents = new HashMap<String, List<Row>>();
@ -331,6 +332,7 @@ public class ProcessParameterPanel extends Panel implements
row.setGroup(currentGroup);
rows.appendChild(row);
m_Rows.add(row);
if (rowList != null)
rowList.add(row);
if (log.isLoggable(Level.INFO)) log.info(listVO.get(i).ColumnName + listVO.get(i).SeqNo);
@ -420,7 +422,6 @@ public class ProcessParameterPanel extends Panel implements
if (label.getDecorator() != null)
div.appendChild(label.getDecorator());
row.appendChild(div);
//
if (voF.isRange) {
Div box = new Div();
@ -937,6 +938,9 @@ public class ProcessParameterPanel extends Panel implements
if (mField.isDisplayed(true)) {
if (!editor.isVisible()) {
editor.setVisible(true);
m_Rows.get(i).setVisible(true);
m_Rows.get(i).setAttribute(Group.GROUP_ROW_VISIBLE_KEY, "true");
if (mField.getVO().isRange) {
m_separators.get(i).setVisible(true);
m_wEditors2.get(i).setVisible(true);
@ -951,6 +955,9 @@ public class ProcessParameterPanel extends Panel implements
}
} else if (editor.isVisible()) {
editor.setVisible(false);
m_Rows.get(i).setVisible(false);
m_Rows.get(i).setAttribute(Group.GROUP_ROW_VISIBLE_KEY, "false");
if (mField.getVO().isRange) {
m_separators.get(i).setVisible(false);
m_wEditors2.get(i).setVisible(false);