包 | lc.procmgmt.ui.attachments |
类 | public class AttachmentHeaderModel |
继承 | AttachmentHeaderModel PresentationModel EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
AttachmentsHeaderModel
class acts as the model for the
AttachmentsHeader
component.
相关 API 元素
属性 | 由以下参数定义 | ||
---|---|---|---|
allowNewAttachments : Boolean [只读]
The indicator that adding Attachments is permitted. | AttachmentHeaderModel | ||
allowNewNotes : Boolean [只读]
The indicator that adding Notes is permitted. | AttachmentHeaderModel | ||
attachmentPermissions : ArrayCollection [只读]
An array of the possible combinations of the AttachmentPermissions object that
can be associated with an AttachmentHeader component. | AttachmentHeaderModel | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
errorString : String [只读]
The error string. | AttachmentHeaderModel | ||
file : FileReference [只读]
The FileReference object used to display the File Browse dialog box. | AttachmentHeaderModel | ||
fileName : String [只读]
The name of the attachment being added. | AttachmentHeaderModel | ||
isIncludeAttachments : Boolean [只读]
Indicator to include Attachments in the display. | AttachmentHeaderModel | ||
isIncludeNotes : Boolean [只读]
Indicator to include Notes in the display. | AttachmentHeaderModel | ||
note : String [只读]
The text contained in the note. | AttachmentHeaderModel | ||
permissionIndex : int [只读]
The index of the AttachmentPermissions object associated with the current
Task object in the model's attachmentPermissions array. | AttachmentHeaderModel | ||
session : SessionMap
A SessionMap object that stores information relating to the server session. | PresentationModel | ||
state : String [只读]
The name of the state the current view is in. | PresentationModel | ||
task : lc.procmgmt.domain:Task [只读]
The process management task that the attachments are associated with. | AttachmentHeaderModel | ||
taskACL : lc.procmgmt.domain:TaskACL [只读]
The TaskACL object associated with the current task. | AttachmentHeaderModel | ||
title : String [只读]
The text contained in the note title. | AttachmentHeaderModel |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | AttachmentHeaderModel | ||
Adds the file property to the current
Task object, with the specified AttachmentPermissions
object set. | AttachmentHeaderModel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Adds the title and note properties to the current
Task object, with the specified AttachmentPermissions object
set. | AttachmentHeaderModel | ||
bindProperty(destination:Object, destinationProperty:String, source:Object, sourceChain:Object, commitOnly:Boolean = false):ChangeWatcher
Binds a public property on the destination object from a property or
property chain on the source object. | PresentationModel | ||
Reinitializes the model's properties. | AttachmentHeaderModel | ||
将事件调度到事件流中。 | EventDispatcher | ||
Deprecated Since LiveCycle ES Update 1 (8.2): getAttachmentFile() is no longer used. | AttachmentHeaderModel | ||
Returns the corresponding cascading style sheet (CSS) property to use based on the specified parameters. | PresentationModel | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
Initializes the presentation model after the view bindings
are processed to prevent view bindings from overriding the initial model state. | PresentationModel | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
Dispatches when the taskACL property changes on the
Task object. | AttachmentHeaderModel | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
Retrieves the label associated with the AttachmentPermissions object
that was passed in. | AttachmentHeaderModel | ||
Changes the state of this component to the AttachmentHeaderModel.STATE_ADD_ATTACHMENT state. | AttachmentHeaderModel | ||
Changes the state of this component to the AttachmentHeaderModel.STATE_ADD_NOTE state. | AttachmentHeaderModel | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
常量 | 由以下参数定义 | ||
---|---|---|---|
NOTE_TITLE_MAXSIZE : int = 255 [静态]
A special value that indicates the maximum number of characters for a title in a note. | AttachmentHeaderModel | ||
STATE_ADD_ATTACHMENT : String = "addAttachmentState" [静态]
A special value that indicates that it is possible to add notes and attachments. | AttachmentHeaderModel | ||
STATE_ADD_ATTACHMENT_ONLY : String = "addAttachmentOnlyState" [静态]
A special value that indicates that it is possible to add only attachments. | AttachmentHeaderModel | ||
STATE_ADD_NOTE : String = "addNoteState" [静态]
A special value that indicates that the STATE_ADD_ATTACHMENT state set set; however,
the user tried add a note. | AttachmentHeaderModel | ||
STATE_ADD_NOTE_ONLY : String = "addNoteOnlyState" [静态]
A special value that indicates that it is possible to add a note. | AttachmentHeaderModel |
allowNewAttachments | 属性 |
allowNewAttachments:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9.0.0.1 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The indicator that adding Attachments is permitted.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get allowNewAttachments():Boolean
allowNewNotes | 属性 |
allowNewNotes:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9.0.0.1 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The indicator that adding Notes is permitted.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get allowNewNotes():Boolean
attachmentPermissions | 属性 |
attachmentPermissions:ArrayCollection
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
An array of the possible combinations of the AttachmentPermissions
object that
can be associated with an AttachmentHeader
component.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get attachmentPermissions():ArrayCollection
errorString | 属性 |
file | 属性 |
file:FileReference
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The FileReference
object used to display the File Browse dialog box.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get file():FileReference
fileName | 属性 |
isIncludeAttachments | 属性 |
isIncludeAttachments:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Indicator to include Attachments in the display.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get isIncludeAttachments():Boolean
isIncludeNotes | 属性 |
isIncludeNotes:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Indicator to include Notes in the display.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get isIncludeNotes():Boolean
note | 属性 |
permissionIndex | 属性 |
permissionIndex:int
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The index of the AttachmentPermissions
object associated with the current
Task
object in the model's attachmentPermissions
array.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get permissionIndex():int
task | 属性 |
task:lc.procmgmt.domain:Task
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The process management task that the attachments are associated with.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get task():lc.procmgmt.domain:Task
taskACL | 属性 |
taskACL:lc.procmgmt.domain:TaskACL
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The TaskACL
object associated with the current task.
The TaskACL
object contains the settings from an
AttachmentPermissions
object associated with the current
task and controls the state in which this component is viewed.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get taskACL():lc.procmgmt.domain:TaskACL
相关 API 元素
llc.procmgmt.domain.AttachmentPermissions
title | 属性 |
AttachmentHeaderModel | () | 构造函数 |
public function AttachmentHeaderModel()
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Constructor.
addAttachment | () | 方法 |
public function addAttachment():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds the file
property to the current
Task
object, with the specified AttachmentPermissions
object set.
Views typically call this method when the user clicks the OK button to add an attachment.
addNote | () | 方法 |
public function addNote():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds the title
and note
properties to the current
Task
object, with the specified AttachmentPermissions
object
set.
Views typically call this method when the user clicks the OK button to add a note.
clearFields | () | 方法 |
public function clearFields():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Reinitializes the model's properties. The following properties are reinitialized:
- The
file
property is set to a value ofnull
. - The
note
,title
,fileName
, anderrorString
properties are set to an empty string. - The
permissionIndex
property is set to a value ofzero
.
getAttachmentFile | () | 方法 |
public function getAttachmentFile():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Deprecated Since LiveCycle ES Update 1 (8.2): getAttachmentFile()
is no longer used.
This method is no longer available. It remains exposed so that you can compile applications using earlier versions of the API. In earlier releases of Workspace, this method displayed a File Browse dialog box from which a user can select the attachment file to add.
onTaskChangeHandler | () | 方法 |
public function onTaskChangeHandler(taskACL:lc.procmgmt.domain:TaskACL):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatches when the taskACL
property changes on the
Task
object.
It is used to properly set the state of the AttachmentHeader
component
based on the value of the taskACL
object.
参数
taskACL:lc.procmgmt.domain:TaskACL — The ACL (access control list) associated with the current task.
|
selectLabel | () | 方法 |
public function selectLabel(item:Object):String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Retrieves the label associated with the AttachmentPermissions
object
that was passed in.
参数
item:Object — The permissions of an attachment.
|
String — The associated label of an item.
|
setAddAttachmentState | () | 方法 |
public function setAddAttachmentState():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Changes the state of this component to the AttachmentHeaderModel.STATE_ADD_ATTACHMENT state.
This state allows the user to add an attachment through this component.
setAddNoteState | () | 方法 |
public function setAddNoteState():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Changes the state of this component to the AttachmentHeaderModel.STATE_ADD_NOTE state.
This state allows the user to add a note through the AttachmentHeader
component.
NOTE_TITLE_MAXSIZE | 常量 |
public static const NOTE_TITLE_MAXSIZE:int = 255
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that indicates the maximum number of characters for a title in a note.
STATE_ADD_ATTACHMENT | 常量 |
public static const STATE_ADD_ATTACHMENT:String = "addAttachmentState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that indicates that it is possible to add notes and attachments.
STATE_ADD_ATTACHMENT_ONLY | 常量 |
public static const STATE_ADD_ATTACHMENT_ONLY:String = "addAttachmentOnlyState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that indicates that it is possible to add only attachments.
STATE_ADD_NOTE | 常量 |
public static const STATE_ADD_NOTE:String = "addNoteState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that indicates that the STATE_ADD_ATTACHMENT
state set set; however,
the user tried add a note.
STATE_ADD_NOTE_ONLY | 常量 |
public static const STATE_ADD_NOTE_ONLY:String = "addNoteOnlyState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that indicates that it is possible to add a note.
Tue Jun 12 2018, 11:04 AM Z