kd.bos.form.control

## 类 AttachmentPanel

- java.lang.Object
- - kd.bos.form.control.Control
  - - kd.bos.form.TipsSupport
    - - kd.bos.form.control.AttachmentPanel

- 所有已实现的接口:
    java.lang.Cloneable, ITipsSupport

      @KSObject
      public class AttachmentPanel
      extends TipsSupport

  附件面板

- - ### 构造器概要

    构造器
    构造器和说明
    `AttachmentPanel()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addBeforeRemoveListener(BeforeAttachmentRemoveListener listener)`
    `void` | `addMarkListener(AttachmentMarkListener listener)`
    `void` | `addUploadListener(UploadListener listener)` 插件监听事件
    `void` | `beforeRemove(java.util.Map<java.lang.String,java.lang.Object> attach)` 附件删除前事件，主要用于判断附件能否被删除
    `void` | `bindData(BindingContext bctx)` 控件初始化时加载附件数据
    `void` | `bindData(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)` 设值附件列表
    `java.lang.String` | `getAttachmentCountField()`
    `IAttachmentModel` | `getAttachmentModel()` 获取附件模型实例
    `java.lang.String` | `getEntityId()`
    `boolean` | `isDefaultCollapse()`
    `void` | `mark(java.lang.String uid, java.lang.String description)`
    `void` | `remove(java.util.Map<java.lang.String,java.lang.Object> attach)` 前端触发 移除事件
    `void` | `setAttachmentCountField(java.lang.String attachmentCountField)`
    `void` | `setDefaultCollapse(boolean defaultCollapse)`
    `void` | `setEntityId(java.lang.String entityId)`
    `void` | `upload(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> attachs)` 前端触发 上传事件

    - ### 从类继承的方法 kd.bos.form.TipsSupport

      `addTips, addTipsListener, hideTips, showFormByTips`

    - ### 从类继承的方法 kd.bos.form.control.Control

      `clone, createClientConfig, getCustomeStyles, getKey, getModel, getView, postBack, release, setCustomeStyles, setDraggable, setDroppable, setKey, setModel, setView`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### AttachmentPanel

          public AttachmentPanel()

  - ### 方法详细资料

    - #### addUploadListener

          @KSMethod
          public void addUploadListener(UploadListener listener)

      插件监听事件
      参数:
        `listener` -

    - #### addBeforeRemoveListener

          @KSMethod
          public void addBeforeRemoveListener(BeforeAttachmentRemoveListener listener)

    - #### addMarkListener

          @KSMethod
          public void addMarkListener(AttachmentMarkListener listener)

    - #### upload

          public void upload(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> attachs)

      前端触发 上传事件
      参数:
        `attachs` -

    - #### beforeRemove

          public void beforeRemove(java.util.Map<java.lang.String,java.lang.Object> attach)

      附件删除前事件，主要用于判断附件能否被删除
      参数:
        `attach` - 附件信息

    - #### remove

          public void remove(java.util.Map<java.lang.String,java.lang.Object> attach)

      前端触发 移除事件
      参数:
        `attach` -

    - #### mark

          public void mark(java.lang.String uid,
                           java.lang.String description)

    - #### bindData

          @KSMethod
          public void bindData(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)

      设值附件列表
      参数:
        `data` -

    - #### bindData

          public void bindData(BindingContext bctx)

      控件初始化时加载附件数据
      覆盖:
        `bindData` 在类中 `Control`

    - #### getAttachmentModel

          @KSMethod
          public IAttachmentModel getAttachmentModel()

      获取附件模型实例
      返回:

    - #### getAttachmentCountField

          @KSMethod
          public java.lang.String getAttachmentCountField()

      返回:
        the attachmentCountField

    - #### setAttachmentCountField

          @KSMethod
          public void setAttachmentCountField(java.lang.String attachmentCountField)

      参数:
        `attachmentCountField` - the attachmentCountField to set

    - #### isDefaultCollapse

          @KSMethod
          public boolean isDefaultCollapse()

      返回:
        the defaultCollapse

    - #### setDefaultCollapse

          @KSMethod
          public void setDefaultCollapse(boolean defaultCollapse)

      参数:
        `defaultCollapse` - the defaultCollapse to set

    - #### getEntityId

          public java.lang.String getEntityId()

    - #### setEntityId

          public void setEntityId(java.lang.String entityId)