Row mainRow = new Row();
mainRow.setAlignment(new Alignment(Alignment.LEFT, Alignment.DEFAULT));
mainRow.setInsets(new Insets(new JbsExtent(11), new JbsExtent(11)));
btnSelectAll = new JbsButton(JbsL10N.getString("Generic.selectAll"));
btnSelectAll.setAlignmentHorizontal(Alignment.CENTER);
//btnSelectAll.setWidth(new JbsExtent(80));
btnSelectAll.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
for (int i=0; i<getDunningWizard().getMaxDunningLevel(); i++) {
TblMInvoicesForDunning model = (TblMInvoicesForDunning)getDunningWizard().getInvoicePanels().get(i).getTblInvoices().getModel();
model.selectAll();
}
}
});
mainRow.add(btnSelectAll);
btnSelectNone = new JbsButton(JbsL10N.getString("Generic.selectNone"));
btnSelectNone.setAlignmentHorizontal(Alignment.CENTER);
//btnSelectNone.setWidth(new JbsExtent(80));
btnSelectNone.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
for (int i=0; i<getDunningWizard().getMaxDunningLevel(); i++) {
TblMInvoicesForDunning model = (TblMInvoicesForDunning)getDunningWizard().getInvoicePanels().get(i).getTblInvoices().getModel();
model.selectNone();
}
}
});
mainRow.add(btnSelectNone);
btnSwapSelection = new JbsButton(JbsL10N.getString("Generic.swapSelection"));
btnSwapSelection.setAlignmentHorizontal(Alignment.CENTER);
//btnSwapSelection.setWidth(new JbsExtent(80));
btnSwapSelection.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;