包 | lc.procmgmt.ui.task |
类 | public class TaskDirectiveModel |
继承 | TaskDirectiveModel PresentationModel EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
TaskDirectiveModel
class acts as the model for the
TaskDirective
component.
The TaskDirectiveModel
class is responsible for enabling
a TaskUserCommand
object to be executed with a selected
User
object.
相关 API 元素
lc.procmgmt.domain.Task
lc.procmgmt.commands.TaskUserCommand
lc.procmgmt.commands.ForwardCommand
lc.procmgmt.commands.ShareCommand
lc.procmgmt.commands.ConsultCommand
属性 | 由以下参数定义 | ||
---|---|---|---|
command : lc.procmgmt.commands:TaskUserCommand
The command object that drives the behavior of the model. | TaskDirectiveModel | ||
commandInstructions : String [只读]
Retrieves the localized instructions that are associated with the
command. | TaskDirectiveModel | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
errorMessage : Message [只读]
The error message when an error occurs. | TaskDirectiveModel | ||
isAddEnabled : Boolean [只读]
A flag that indicates whether a user was added based on a certain condition. | TaskDirectiveModel | ||
isExecuteEnabled : Boolean [只读]
A flag that indicates whether the condition for executing the task directive
was satisfied. | TaskDirectiveModel | ||
isRemoveEnabled : Boolean [只读]
A flag that indicates whether the condition for removing a user is satisfied. | TaskDirectiveModel | ||
omitUserOids : ListCollectionView [只读]
The list of users to remove from the searches. | TaskDirectiveModel | ||
selectedUser : User [只读]
The current selected user. | TaskDirectiveModel | ||
selectedUsers : ListCollectionView [只读]
The collection of users that were selected from the
UserSearchDataGridModel object. | TaskDirectiveModel | ||
serviceName : String [只读]
The service name of the task. | TaskDirectiveModel | ||
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 | ||
userSearchDataGridModel : UserSearchDataGridModel
The UserSearchDataGridModel object provides the results of a
user search. | TaskDirectiveModel |
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Adds the selected users from the UserSearchDataGridModel object to
the selectedUsers property. | TaskDirectiveModel | ||
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 | ||
Cancels the command. | TaskDirectiveModel | ||
将事件调度到事件流中。 | EventDispatcher | ||
Invokes the associated command object's execute method. | TaskDirectiveModel | ||
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. | TaskDirectiveModel | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
Resets the selectdUsers property to an empty value
(null). | TaskDirectiveModel | ||
Resets the model to the original state and reinitalizes
the properties back to default values. | TaskDirectiveModel | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
[覆盖]
Sets the state property to a new value and causes a PropertyChangeEvent event. | TaskDirectiveModel |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched on the request to cancel the command. | TaskDirectiveModel | |||
Dispatched on successful execution of the command. | TaskDirectiveModel | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher |
常量 | 由以下参数定义 | ||
---|---|---|---|
STATE_ERROR : String = "errorState" [静态]
A special value that specifies that an error occurred. | TaskDirectiveModel | ||
STATE_INITIAL : String = "initialState" [静态]
A special value that specifies that the model is initializing. | TaskDirectiveModel | ||
STATE_IN_PROGRESS : String = "inProgressState" [静态]
A special value that specifies that a search operation is occuring. | TaskDirectiveModel | ||
STATE_SEARCH_COMPLETE : String = "searchCompleteState" [静态]
A special value that specifies that a search has completed. | TaskDirectiveModel |
command | 属性 |
command:lc.procmgmt.commands:TaskUserCommand
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The command
object that drives the behavior of the model. Different
commands have different instructions and images associated with them.
实现
public function get command():lc.procmgmt.commands:TaskUserCommand
public function set command(value:lc.procmgmt.commands:TaskUserCommand):void
commandInstructions | 属性 |
commandInstructions:String
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Retrieves the localized instructions that are associated with the command.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get commandInstructions():String
errorMessage | 属性 |
errorMessage:Message
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The error message when an error occurs.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get errorMessage():Message
isAddEnabled | 属性 |
isAddEnabled:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A flag that indicates whether a user was added based on a certain condition.
A value of true
is returned if a user was
selected within the UserSearchDataGridModel
object.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get isAddEnabled():Boolean
isExecuteEnabled | 属性 |
isExecuteEnabled:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A flag that indicates whether the condition for executing the task directive
was satisfied. A value of true
is returned if a user was selected
within the UserSearchDataGridModel
object and the current state of the model
is not searching.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get isExecuteEnabled():Boolean
isRemoveEnabled | 属性 |
isRemoveEnabled:Boolean
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A flag that indicates whether the condition for removing a user is satisfied.
A value of true
is returned if a user was selected
within the UserSearchDataGridModel
object.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get isRemoveEnabled():Boolean
omitUserOids | 属性 |
omitUserOids:ListCollectionView
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The list of users to remove from the searches.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get omitUserOids():ListCollectionView
selectedUser | 属性 |
selectedUsers | 属性 |
selectedUsers:ListCollectionView
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The collection of users that were selected from the
UserSearchDataGridModel
object.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selectedUsers():ListCollectionView
serviceName | 属性 |
userSearchDataGridModel | 属性 |
userSearchDataGridModel:UserSearchDataGridModel
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The UserSearchDataGridModel
object provides the results of a
user search.
实现
public function get userSearchDataGridModel():UserSearchDataGridModel
public function set userSearchDataGridModel(value:UserSearchDataGridModel):void
addUser | () | 方法 |
public function addUser():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Adds the selected users from the UserSearchDataGridModel
object to
the selectedUsers
property.
cancelCommand | () | 方法 |
public function cancelCommand():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Cancels the command. This resets the properties in the model and dispatches
an EVENT_COMMAND_CANCEL
event.
executeCommand | () | 方法 |
public function executeCommand():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Invokes the associated command object's execute
method.
initialize | () | 方法 |
override public function initialize():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Initializes the presentation model after the view bindings are processed to prevent view bindings from overriding the initial model state. Subclasses can override this method, which
removeUser | () | 方法 |
public function removeUser():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Resets the selectdUsers
property to an empty value
(null
).
reset | () | 方法 |
public function reset():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Resets the model to the original state and reinitalizes the properties back to default values.
setState | () | 方法 |
override protected function setState(newState:String):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Sets the state
property to a new value and causes a PropertyChangeEvent
event.
参数
newState:String — Specifies the new state name.
|
commandCancel | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatched on the request to cancel the command.
commandComplete | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Dispatched on successful execution of the command.
STATE_ERROR | 常量 |
public static const STATE_ERROR:String = "errorState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that specifies that an error occurred.
STATE_IN_PROGRESS | 常量 |
public static const STATE_IN_PROGRESS:String = "inProgressState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that specifies that a search operation is occuring.
STATE_INITIAL | 常量 |
public static const STATE_INITIAL:String = "initialState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that specifies that the model is initializing.
STATE_SEARCH_COMPLETE | 常量 |
public static const STATE_SEARCH_COMPLETE:String = "searchCompleteState"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A special value that specifies that a search has completed.
Tue Jun 12 2018, 11:04 AM Z