Exemplo n.º 1
0
 /* (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);
 }
Exemplo n.º 2
0
 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)));
 }
Exemplo n.º 3
0
 /** Выполнить корректировку доступности пунктов КМ списка спецификации */
 protected void adjustSpecPopupMenu() {
   Widget specWidget = view.getWidget(SPEC_TABLE_WIDGET);
   PopupMenu popupMenu = specWidget.getPopupMenu();
   popupMenu.getMenuItem(MaintenanceTable.ADD_MENU_ITEM).setEnabled(false);
 }