this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddNormalPositionAsSub);
*/
btnAddArticle = new JbsObjectToolPaneButton("addarticle.png",JbsL10N.getString("Transaction.addArticle"),false);
btnAddArticle.setToolTipText("Transaction.addArticleToolTip");
btnAddArticle.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addArticle();
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddArticle);
btnAddArticleSub = new JbsObjectToolPaneButton("addarticle.png",JbsL10N.getString("Transaction.addArticleAsSub"),true);
btnAddArticle.setToolTipText("Transaction.addArticleAsSubToolTip");
btnAddArticleSub.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addArticle(tblPositions.getSelectedNode());
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddArticleSub);
this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));
btnAddGroupPosition = new JbsObjectToolPaneButton("addgroup.png",JbsL10N.getString("Transaction.addGroupPosition"),false);
btnAddGroupPosition.setToolTipText("Transaction.AddGroupPositionToolTip");
btnAddGroupPosition.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addGroupPosition();
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddGroupPosition);
btnAddGroupPositionSub = new JbsObjectToolPaneButton("addgroup.png",JbsL10N.getString("Transaction.addGroupPositionAsSub"),true);
btnAddGroupPosition.setToolTipText("Transaction.addGroupPositionAsSubToolTip");
btnAddGroupPositionSub.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addGroupPosition(tblPositions.getSelectedNode());
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddGroupPositionSub);
this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));
btnAddDiscountPosition = new JbsObjectToolPaneButton("adddiscount.png",JbsL10N.getString("Transaction.addDiscountPosition"),false);
btnAddDiscountPosition.setToolTipText("Transaction.addDiscountPositionTooTip");
btnAddDiscountPosition.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addDiscountPosition();
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddDiscountPosition);
btnAddDiscountPositionSub = new JbsObjectToolPaneButton("adddiscount.png",JbsL10N.getString("Transaction.addDiscountPositionAsSub"),true);
btnAddDiscountPositionSub.setToolTipText("Transaction.addDiscountPositionAsSubToolTip");
btnAddDiscountPositionSub.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
addDiscountPosition(tblPositions.getSelectedNode());
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnAddDiscountPositionSub);
this.getToolPane().addSeparator(JbsL10N.getString("Transaction.positions"));
btnEditPosition = new JbsObjectToolPaneButton("edit.png",JbsL10N.getString("StdList.editCaption"),true);
btnEditPosition.setToolTipText(JbsL10N.getString("StdList.editTooltip"));
btnEditPosition.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
editPosition();
}
});
this.getToolPane().addControl(JbsL10N.getString("Transaction.positions"), btnEditPosition);
btnDeletePosition = new JbsObjectToolPaneButton("remove.png",JbsL10N.getString("StdList.deleteCaption"),true);
btnDeletePosition.setToolTipText(JbsL10N.getString("StdList.deleteTooltip"));
btnDeletePosition.addActionListener(new ActionListener() {
private static final long serialVersionUID = 1L;
public void actionPerformed(ActionEvent arg0) {
deletePosition();