예제 #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();
        }