Package com.google.livingstories.client

Examples of com.google.livingstories.client.AssetContentItem


    }
   
    // Again, if the first image in the slideshow isn't important,
    // then the whole thing is unimportant.
    if (!slideshowImages.isEmpty() && slideshowImages.get(0).getImportance() == Importance.HIGH) {
      AssetContentItem previewImage = slideshowImages.get(0);
      previewImage.setRelatedAssets(slideshowImages);
      Widget previewPanel =
          LinkedViewFactory.createView(previewImage, contentItem.getContributorIds());
      importantImages.add(previewPanel);
    }
View Full Code Here


      case PLAYER:
        return new PlayerPopupView((PlayerContentItem) contentItem);
      case BACKGROUND:
        return new ContentItemPreviewWithHeader(contentItem);
      case ASSET:
        AssetContentItem asset = (AssetContentItem) contentItem;
        switch (asset.getAssetType()) {
          case VIDEO:
          case INTERACTIVE:
            return new BaseAssetPopupView(asset);
          case DOCUMENT:
            return new DocumentPopupView(asset);
          case IMAGE:
            return new ImagePopupView(asset);
          default:
            throw new IllegalArgumentException("Asset type " + asset.getAssetType()
                + " does not have a popup view defined.");
        }
      default:
        throw new IllegalArgumentException("Content item type " + contentItem.getContentItemType()
            + " does not have a popup view defined.");
View Full Code Here

    // assets list on each of its members.  This allows us to pop up to slideshow
    // view for images in the content items stream.
    List<AssetContentItem> slideshowImages = new ArrayList<AssetContentItem>();
    for (BaseContentItem coreContentItem : coreContentItems) {
      if (coreContentItem.getContentItemType() == ContentItemType.ASSET) {
        AssetContentItem asset = (AssetContentItem) coreContentItem;
        if (asset.getAssetType() == AssetType.IMAGE
            && !GlobalUtil.isContentEmpty(asset.getContent())) {
          slideshowImages.add(asset);
        }
      }
    }
    for (AssetContentItem image : slideshowImages) {
View Full Code Here

                  ((StoryPlayerContentItem) selectedContentItem).getParentPlayerContentItem();
              formatParentPlayerDisplay();
            }
            break;
          case ASSET:
            AssetContentItem assetContentItem = (AssetContentItem) selectedContentItem;
            AssetType assetType = assetContentItem.getAssetType();
            assetTypeSelector.selectConstant(assetType);
            setAssetControlVisibility();
            captionTextArea.setText(assetContentItem.getCaption());
            previewUrlTextBox.setText(assetContentItem.getPreviewUrl());
            if (assetType == AssetType.IMAGE) {
              contentEditor.setContent("");
              imageUrlTextBox.setText(selectedContentItem.getContent());
            }
            break;
View Full Code Here

TOP

Related Classes of com.google.livingstories.client.AssetContentItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.