@Override public void setUI(final MenuItemUI ui) { final MenuItemUI newUi = UIUtil.isUnderGTKLookAndFeel() && GtkMenuItemUI.isUiAcceptable(ui) ? new GtkMenuItemUI(ui) : ui; super.setUI(newUi); }
@Override public void updateUI() { if (UIUtil.isStandardMenuLAF()) { super.updateUI(); } else { setUI(BegMenuItemUI.createUI(this)); } }
/** Updates long description of action at the status bar. */ @Override public void menuSelectionChanged(boolean isIncluded) { super.menuSelectionChanged(isIncluded); ActionMenu.showDescriptionInStatusBar(isIncluded, this, myPresentation.getDescription()); }
@Override public void removeNotify() { uninstallSynchronizer(); super.removeNotify(); }
@Override public void addNotify() { super.addNotify(); installSynchronizer(); init(); }
/** We have to make this method public to allow BegMenuItemUI to invoke it. */ @Override public void fireActionPerformed(ActionEvent event) { super.fireActionPerformed(event); }