/* (non-Javadoc) * @see com.mg.framework.generic.ui.DefaultMaintenanceForm#doSetDependentReadOnly(boolean) */ @Override protected void doSetDependentReadOnly(boolean readOnly) { super.doSetDependentReadOnly(readOnly); PopupMenu pm = view.getWidget("grantsTable").getPopupMenu(); pm.getMenuItem("grantRightsForGroups").setEnabled(!readOnly); pm.getMenuItem("grantRights").setEnabled(!readOnly); pm.getMenuItem("revokeRights").setEnabled(!readOnly); }
protected void doAdjustPopupMenu() { PopupMenu popupMenu = view.getWidget(TABLE_WIDGET).getPopupMenu(); if (popupMenu != null) UIUtils.setVisibleEnabledProperty( popupMenu.getMenuItem(OVERESTIMATION), SecurityUtils.tryCheckPermission( new BusinessMethodPermission( PriceListHeadServiceLocal.SERVICE_NAME, OVERESTIMATION))); }
/** Выполнить корректировку доступности пунктов КМ списка спецификации */ protected void adjustSpecPopupMenu() { Widget specWidget = view.getWidget(SPEC_TABLE_WIDGET); PopupMenu popupMenu = specWidget.getPopupMenu(); popupMenu.getMenuItem(MaintenanceTable.ADD_MENU_ITEM).setEnabled(false); }