Packagelc.domain
Classpublic class AttachmentCommand
InheritanceAttachmentCommand Inheritance Object
Implements ICommand
Subclasses DeleteAttachmentCommand, DisplayAttachmentCommand, SaveAttachmentCommand, UpdateAttachmentCommand

The AttachmentCommand class is a generic command that has direct association with a TaskAttachmentInfo object. The AttachmentCommand class should not be used directly, and should be used as the superclass for different types of AttachmentCommand commands.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  enabled : Boolean
A flag that indicates whether the execute operation is active.
AttachmentCommand
  name : String
[read-only] The name of the command.
AttachmentCommand
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  taskAttachmentInfo : TaskAttachmentInfo
The TaskAttachmentInfo object that is associated with this command.
AttachmentCommand
Public Methods
 MethodDefined By
  
AttachmentCommand(name:String, taskAttachmentInfo:TaskAttachmentInfo = null)
Constructor.
AttachmentCommand
  
Executes the default operation of the command.
AttachmentCommand
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
enabledproperty
public var enabled:Boolean

A flag that indicates whether the execute operation is active. If enabled is false, the execute operation should not perform its operation.

nameproperty 
name:String  [read-only]

The name of the command.


Implementation
    public function get name():String
taskAttachmentInfoproperty 
public var taskAttachmentInfo:TaskAttachmentInfo

The TaskAttachmentInfo object that is associated with this command.

Constructor Detail
AttachmentCommand()Constructor
public function AttachmentCommand(name:String, taskAttachmentInfo:TaskAttachmentInfo = null)

Constructor.

Parameters
name:String — Specifies the name of the command.
 
taskAttachmentInfo:TaskAttachmentInfo (default = null) — Specifies the TaskAttachmentInfo object that is associated with this command.
Method Detail
execute()method
public function execute():Token

Executes the default operation of the command.

Returns
Token — A token that allows the caller to be notified when the execution is complete.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/lc/domain/AttachmentCommand.html