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