Packagecom.adobe.portfolio.api
Classpublic final class CommandType
InheritanceCommandType Inheritance Object

Language Version : ActionScript 3.0
Product Version : Portfolio 9.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The CommandType class provides values for the ICommand interface.

See also

ICommand


Public Constants
 ConstantDefined By
  CONTEXT_MENU : String = contextMenu
[static] The ICommand value to display a context menu based on the specified attachment.
CommandType
  EDIT_NATIVE : String = editInNativeApp
[static] The ICommand value to open an attachment in its native appication.
CommandType
  EXTRACT_FILES : String = extractFile
[static] The ICommand value to export one or more attachments to a file or files.
CommandType
  PREVIEW : String = preview
[static] The ICommand value to preview an attachment.
CommandType
Constant Detail
CONTEXT_MENUConstant
public static const CONTEXT_MENU:String = contextMenu

Language Version : ActionScript 3.0
Product Version : Portfolio 9.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The ICommand value to display a context menu based on the specified attachment.

The parameters to ICommand methods are as follows:

MethodParameter
appliesTonull
execute[x, y]

See also

EDIT_NATIVEConstant 
public static const EDIT_NATIVE:String = editInNativeApp

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The ICommand value to open an attachment in its native appication.

The parameters to ICommand methods are as follows:

MethodParameter
appliesToA single IAttachment instance, or an Array of IAttachment instances (in which case only the first element will be used). It will return false for all other types.
executeThe same type as used in appliesTo.

See also

EXTRACT_FILESConstant 
public static const EXTRACT_FILES:String = extractFile

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The ICommand value to export one or more attachments to a file or files.

The parameters to ICommand methods are as follows:

MethodParameter
appliesToAn Array of IAttachment instances. It will return false for all other types.
executeThe same type as used in appliesTo.

See also

PREVIEWConstant 
public static const PREVIEW:String = preview

Language Version : ActionScript 3.0
Product Version : Portfolio 9.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The ICommand value to preview an attachment.

The attachment must already be selected (in INavigatorHost.selection) in order to be opened for preview.

The parameters to ICommand methods are as follows:

MethodParameter
appliesToA single IAttachment instance, or an Array of IAttachment instances (in which case only the first element will be used). It will return false for all other types.
executeThe same type as used in appliesTo.

See also