com.aispeech.dui.dsk.duiwidget

## Class ContentWidget

- java.lang.Object
- - com.aispeech.dui.dsk.duiwidget.DuiWidget
  - - com.aispeech.dui.dsk.duiwidget.ContentWidget

-     public class ContentWidget
      extends DuiWidget

  内容控件类,图文并茂展示内容,如wikipedia

- - ### Field Summary

    - ### Fields inherited from class com.aispeech.dui.dsk.duiwidget.DuiWidget

      `TYPE_CONTENT, TYPE_LIST, TYPE_MEDIA, TYPE_TEXT, TYPE_WEB, WIDGET_EXTRA, WIDGET_IMAGEURL, WIDGET_LABEL, WIDGET_LINKURL, WIDGET_SUBTITLE, WIDGET_TEXT, WIDGET_TITLE, WIDGET_URL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContentWidget()` ContentWidget构造方法

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ContentWidget` | `addExtra(java.lang.String key, java.lang.String value)` 增加自定义参数的k,v对
    `ContentWidget` | `setImageUrl(java.lang.String imageUrl)` 设置图片资源地址
    `ContentWidget` | `setLabel(java.lang.String label)` 设置标签数据，建议以 "," 作为分隔
    `ContentWidget` | `setLinkUrl(java.lang.String linkUrl)` 设置跳转地址
    `ContentWidget` | `setSubTitle(java.lang.String subTitle)` 设置副标题
    `ContentWidget` | `setTitle(java.lang.String title)` 设置标题

    - ### Methods inherited from class com.aispeech.dui.dsk.duiwidget.DuiWidget

      `addContent, addExtra, addWidget, setType, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ContentWidget

          public ContentWidget()

      ContentWidget构造方法

  - ### Method Detail

    - #### setTitle

          public ContentWidget setTitle(java.lang.String title)

      设置标题
      Parameters:
        `title` - title
      Returns:
        ContentWidget ContentWidget实例

    - #### setSubTitle

          public ContentWidget setSubTitle(java.lang.String subTitle)

      设置副标题
      Parameters:
        `subTitle` - 副标题
      Returns:
        ContentWidget ContentWidget实例

    - #### setLabel

          public ContentWidget setLabel(java.lang.String label)

      设置标签数据，建议以 "," 作为分隔
      Parameters:
        `label` - 标签数据
      Returns:
        ContentWidget ContentWidget实例

    - #### setImageUrl

          public ContentWidget setImageUrl(java.lang.String imageUrl)

      设置图片资源地址
      Parameters:
        `imageUrl` - 图片资源地址
      Returns:
        ContentWidget ContentWidget实例

    - #### setLinkUrl

          public ContentWidget setLinkUrl(java.lang.String linkUrl)

      设置跳转地址
      Parameters:
        `linkUrl` - 跳转地址
      Returns:
        ContentWidget ContentWidget实例

    - #### addExtra

          public ContentWidget addExtra(java.lang.String key,
                                        java.lang.String value)

      增加自定义参数的k,v对
      Overrides:
        `addExtra` in class `DuiWidget`
      Parameters:
        `key` - 键
        `value` - 值
      Returns:
        ContentWidget ContentWidget实例