Class BlockCard.Partial.NeedsCardAttributes

  • Enclosing interface:
    BlockCard.Partial

    public static class BlockCard.Partial.NeedsCardAttributes
    extends Object
    This partially constructed card still needs either a url or data value set.
    • Method Detail

      • url

        public BlockCard url​(URL url)
        Creates a URL block card; if a datasource with a URL is desired, call datasource() first.
      • url

        public BlockCard url​(URI url)
        Creates a URL block card; if a datasource with a URL is desired, call datasource() first.
      • datasource

        @CheckReturnValue
        public BlockCard.Partial.NeedsDatasourceId datasource()
        Creates a partially constructed datasource block card.

        NOTE

        Optional values like the url or width can be set at any point during the specification of the datasource's required parameters. Calliing BlockCard.Partial.NeedsDatasourceViews.views(View...) completes the entire BlockCard, so the datasource's optional parameters can not be chained after that point. However, they can also be modified on the completed BlockCard node by accessing its datasource attributes directly with cardAttributes().datasource() and setting them there.