Exemple #1
0
  public void setProvideCapability(
      ViewCapability viewCapability, ViewResourceCallback resourceCallback) {
    if (!canProvideCapability(viewCapability)) {
      throw new UnsupportedOperationException(
          "View capability " + viewCapability.getClass().getSimpleName() + " not supported");
    }

    if (viewCapability instanceof RemoveStreamViewCapability) {
      for (ViewFactory viewFactory : viewFactories) {
        viewFactory.setProvideCapability(viewCapability, resourceCallback);
      }
    }
  }
 public void setProvideCapability(
     ViewCapability viewCapability, ViewResourceCallback resourceCallback) {
   if (!canProvideCapability(viewCapability)) {
     throw new UnsupportedOperationException(
         "View capability " + viewCapability.getClass().getSimpleName() + " not supported");
   }
   if (viewCapability instanceof RemoveStreamViewCapability) {
     isRemoveStreamHandling = true;
     return;
   }
   if (relativeAccessGetterImpl == null) {
     relativeAccessGetterImpl = new RelativeAccessByEventNIndexMap();
   }
   resourceCallback.setViewResource(relativeAccessGetterImpl);
 }