コード例 #1
0
 @Override
 protected void updateDetailsAvailability() {
   if (getSelectedItem() != null) {
     DbUser adUser = (DbUser) getSelectedItem();
     userGroupListModel.setIsAvailable(!adUser.isGroup());
     userEventNotifierListModel.setIsAvailable(!adUser.isGroup());
   }
 }
コード例 #2
0
  @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);
  }