/**
* Ribbon Application Menu settings
*/
protected void configureApplicationMenu() {
RibbonApplicationMenuEntryPrimary amEntryDashboard = new RibbonApplicationMenuEntryPrimary(
ViewHelpers.createResizableIcon(
new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "dashboard.png"))),
I18n.CUSTOMERS.getString("Action.Dashboard"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onOpenDashboard();
}
}, CommandButtonKind.ACTION_ONLY);
amEntryDashboard.setActionKeyTip("D");
RibbonApplicationMenuEntryPrimary amEntryCustomers = new RibbonApplicationMenuEntryPrimary(
ViewHelpers.createResizableIcon(
new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "customer.png"))),
I18n.CUSTOMERS.getString("Action.Customers"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onOpenCustomers();
}
}, CommandButtonKind.ACTION_ONLY);
amEntryCustomers.setActionKeyTip("C");
RibbonApplicationMenuEntryPrimary amEntryCategories = new RibbonApplicationMenuEntryPrimary(
ViewHelpers.createResizableIcon(
new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "category.png"))),
I18n.CUSTOMERS.getString("Action.Categories"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onOpenCategories();
}
}, CommandButtonKind.ACTION_ONLY);
amEntryCategories.setActionKeyTip("A");
RibbonApplicationMenuEntryPrimary amEntryCountries = new RibbonApplicationMenuEntryPrimary(
ViewHelpers.createResizableIcon(
new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "country.png"))),
I18n.CUSTOMERS.getString("Action.Countries"),
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onOpenCountries();
}
}, CommandButtonKind.ACTION_ONLY);
amEntryCountries.setActionKeyTip("O");
RibbonApplicationMenuEntryFooter amEntryExit = new RibbonApplicationMenuEntryFooter(
ViewHelpers.createResizableIcon(
new ImageIcon(getClass().getResource(ViewHelpers.ICONS16 + "exit.png"))),
I18n.COMMON.getString("Action.Exit"),