// defAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
Action addAction=new AbstractAction(){
public void actionPerformed(ActionEvent e) {
new LayoutEditView(getContainer(), -1, "ADD");
}
};
addAction.putValue(Action.NAME, MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.NEWREPORT"),KeyEvent.VK_N));
addAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
Action editAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
new LayoutEditView(getContainer(),getCurrentLayout(), "EDIT");
}
};
editAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.EDITREPORT"),KeyEvent.VK_E));
editAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.EDIT_REPORT_IMAGE));
reportOpts.add(editAction);
Action rnAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
new LayoutRenameView(XTable.this,getCurrentLayout());
}
};
rnAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.RENAMEREPORT"),KeyEvent.VK_R));
rnAction.putValue(Action.SMALL_ICON,ImageManager.getImage(ImageManager.RENAME_REPORT_IMAGE));
reportOpts.add(rnAction);
Action copyAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
new LayoutEditView(getContainer(),getCurrentLayout(), "COPY");
}
};
copyAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.COPYREPORT"),KeyEvent.VK_C));
copyAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.COPY_REPORT_IMAGE));
reportOpts.add(copyAction);