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:
parent
594c7bb437
commit
5f2f6364da
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue