IDEMPIERE-4840: ConfirmPanel with Checkbox (#732)

* IDEMPIERE-4840: ConfigPanel with Checkbox

* removed checkbox vertical alignment hack

* corrected javadoc

Co-authored-by: Andreas <sumerauer@kanzlei-wmv.de>
This commit is contained in:
Andreas Sumerauer 2021-06-23 05:50:02 +02:00 committed by GitHub
parent 594c7bb437
commit 5f2f6364da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -344,6 +344,15 @@ public final class ConfirmPanel extends Div
pnlBtnCenter.appendChild(cbb); pnlBtnCenter.appendChild(cbb);
} }
/**
* Add checkbox to center panel
* @param cb
*/
public void addComponentsCenter(Checkbox cb){
pnlBtnCenter.appendChild(cb);
}
/** /**
* return button of the specified id * return button of the specified id
* @param id button id * @param id button id
@ -529,8 +538,11 @@ public final class ConfirmPanel extends Div
// IDEMPIERE-1334 start // IDEMPIERE-1334 start
while (iter3.hasNext()) while (iter3.hasNext())
{ {
Button button = (Button)iter3.next(); Object element = iter3.next();
button.addEventListener(event, listener); if (element instanceof Button)
{
((Button)element).addEventListener(event, listener);
}
} }
// IDEMPIERE-1334 start // IDEMPIERE-1334 start
} }