@Override protected void actionPropertyChanged(Action action, String propertyName) { super.actionPropertyChanged(action, propertyName); if (ACTION_PROPERTY_SPLIT_BUTTON_ENABLED.equals(propertyName) || "enabled".equals(propertyName)) { setButtonEnabled(isSplitButtonEnabled(action)); } else if (Action.SMALL_ICON.equals(propertyName)) { setIconFromAction(action); } else if (SystemInfo.isJdk6Above() && Action.LARGE_ICON_KEY.equals(propertyName)) { setIconFromAction(action); } }
@Override protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); setButtonEnabled(isSplitButtonEnabled(action)); setIconFromAction(action); }