Пример #1
0
 @Override
 @NotNull
 public String getValue(@Nullable final RESTCategoryCollectionItemV1 object) {
   if (object == null) {
     return null + "";
   }
   return object.getItem().getName();
 }
Пример #2
0
        @NotNull
        @Override
        public String getValue(@NotNull final RESTCategoryCollectionItemV1 object) {
          if (getOriginalEntity() != null) {
            if (ComponentCategoryV1.containsTag(object.getItem(), getOriginalEntity().getId())) {
              return PressGangCCMSUI.INSTANCE.Remove();
            } else {
              return PressGangCCMSUI.INSTANCE.Add();
            }
          }

          return PressGangCCMSUI.INSTANCE.NoAction();
        }