@Override protected void updateDetailsAvailability() { if (getSelectedItem() != null) { DbUser adUser = (DbUser) getSelectedItem(); userGroupListModel.setIsAvailable(!adUser.isGroup()); userEventNotifierListModel.setIsAvailable(!adUser.isGroup()); } }
@Override protected void initDetailModels() { super.initDetailModels(); ObservableCollection<EntityModel> list = new ObservableCollection<EntityModel>(); list.add(new UserGeneralModel()); list.add(new UserQuotaListModel()); list.add(new UserPermissionListModel()); list.add(new UserEventListModel()); userGroupListModel = new UserGroupListModel(); userGroupListModel.setIsAvailable(false); list.add(userGroupListModel); userEventNotifierListModel = new UserEventNotifierListModel(); list.add(userEventNotifierListModel); setDetailModels(list); }