Paket | com.adobe.icc.editors.handlers |
Klass | public class CategoryHandler |
Arv | CategoryHandler EventDispatcher Object |
Implementerar | IAssetHandler |
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Egenskap | Definieras med | ||
---|---|---|---|
assetActions : IList
The list of AssetAction objects maintained by this handler. | CategoryHandler | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
currentAction : AssetAction
The action that the handler is currently executing. | CategoryHandler | ||
selectedAssets : Array
The array of category value objects currently selected by the user. | CategoryHandler | ||
workingAsset : CategoryModel
The Category Domain Object that the handler is currently working with. | CategoryHandler |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | CategoryHandler | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Returns the asset type handled by this handler. | CategoryHandler | ||
This method is invoked by the asset manager framework whenever user requests an action
on an object of type category. | CategoryHandler | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Called by the asset manager framework giving the handlers a chance to initialize themselves. | CategoryHandler | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Metod | Definieras med | ||
---|---|---|---|
Called internally when this handler is handling an action of type Create. | CategoryHandler | ||
Called internally when this handler is handling an action of type Delete. | CategoryHandler | ||
Called internally when this handler is handling an action of type Edit. | CategoryHandler | ||
handles the default Action(AssetActionEvent.ACTIN_DEFAULT) such as Item double click on search results grid. | CategoryHandler | ||
Called internally when this handler is handling an action of type View. | CategoryHandler |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
Dispatched when an handling of an action is complete. | CategoryHandler | |||
assetActionsChanged event is thrown by the Handler when the selected item in results viewer change and it updates the correct handler selected assets. | CategoryHandler | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched when an action handled by this handler requires an editor window to be launched. | CategoryHandler |
Konstant | Definieras med | ||
---|---|---|---|
ACTION_CREATE : String = "Create" [statisk]
Constant for the name of the action related to creation of an asset. | CategoryHandler | ||
ACTION_DELETE : String = "Delete" [statisk]
Constant for the name of the action related to deletion of an asset. | CategoryHandler | ||
ACTION_EDIT : String = "Edit" [statisk]
Constant for the name of the action related to editing of an asset. | CategoryHandler | ||
ACTION_VIEW : String = "View" [statisk]
Constant for the name of the action related to viewing of an asset. | CategoryHandler | ||
ACTION_VIEW_DEPENDENCY : String = "ViewDependency" [statisk]
Constant for the name of the action related to view dependencies of an asset. | CategoryHandler | ||
ASSET_TYPE : String = "Category" [statisk]
Constant for the Asset Type handled by this handler. | CategoryHandler |
assetActions | egenskap |
assetActions:IList
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The list of AssetAction objects maintained by this handler. This list is used by the asset manager framework to determine which action to enable. The asset manager framework looks for the value of the enabled flag in the AssetAction object to determine the same and handler updates the flags everytime the list of selected assets changes.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get assetActions():IList
public function set assetActions(value:IList):void
currentAction | egenskap |
currentAction:AssetAction
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The action that the handler is currently executing. This is useful in cases when the editor needs to know the action that the working asset is being acted upon. For instance, the editor might need to disable some of the fields if it is a view action.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get currentAction():AssetAction
public function set currentAction(value:AssetAction):void
selectedAssets | egenskap |
selectedAssets:Array
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The array of category value objects currently selected by the user. This is set by the asset manager framework everytime a user selects or deselects an item of type category.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get selectedAssets():Array
public function set selectedAssets(value:Array):void
workingAsset | egenskap |
workingAsset:CategoryModel
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The Category Domain Object that the handler is currently working with. The handler creates this domain object from the shallow value object that it receives from the asset manager framework. The working asset is used by the asset editor to display the asset to the user in a desired presentation format.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get workingAsset():CategoryModel
public function set workingAsset(value:CategoryModel):void
CategoryHandler | () | Konstruktor |
public function CategoryHandler()
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constructor.
createCategory | () | metod |
protected function createCategory():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Create. The default implementation creates a new category domain object, assigns it as the working asset and dispatches the launchEditor event so that the framework can display the editor window to the user. This method can be extended to override the creation behavior of this handler. For instance, if creation requires some preprocessing or some checks that need to be made, the same can be done by overriding this method.
deleteCategories | () | metod |
protected function deleteCategories(showWaring:Boolean = true):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Delete. The default implementation iteratively deletes all the selected category value objects. A confirmation Alert dialog is shown to the user but can be curbed by setting the showWarning flag value to false. Deletion does not require creation of a domain object. Hence, the delete action has no impact on the value of working asset. Moreover, the launchEditor event is never dispatched while handling the delete action.
Parametrar
showWaring:Boolean (default = true ) — Should the warning dialog be shown before deleting the Category.
|
editCategory | () | metod |
protected function editCategory():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type Edit. The default implementation creates a new category domain object from the selected category value object.
getAssetType | () | metod |
public function getAssetType():String
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Returns the asset type handled by this handler. This is used by the asset manager framework to route actions to appropriate handlers.
ReturnerarString — the asset type handled by this handler
|
handleAction | () | metod |
public function handleAction(event:AssetActionEvent):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
This method is invoked by the asset manager framework whenever user requests an action on an object of type category. This method is called for all the actions requested by the user. The action handling is internally routed to the correcting templatized methods like createLayout(), editLayout() etc.
Parametrar
event:AssetActionEvent — The event object of type AssetActionEvent that is raised by the asset manager framework
|
handleDefaultAction | () | metod |
protected function handleDefaultAction(event:AssetActionEvent):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
handles the default Action(AssetActionEvent.ACTIN_DEFAULT) such as Item double click on search results grid. If user has edit permission, then asset is opened in edit mode. otherwise if user has view peermission then asset is opened in view mode.
Parametrar
event:AssetActionEvent — AssetActionEvent containing the action information.
|
initialize | () | metod |
public function initialize():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Called by the asset manager framework giving the handlers a chance to initialize themselves.
viewCategory | () | metod |
protected function viewCategory():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Called internally when this handler is handling an action of type View. The default implementation creates a new category domain object from the selected category value object, assigns it as the working asset and dispatches the launchEditor event so that the framework can display the editor window to the user. This method can be extended to override the "view" behavior of this handler. For instance, if viewing action requires some preprocessing or some checks that need to be made, the same can be done by overriding this method.
assetActionComplete | Händelse |
com.adobe.livecycle.assetmanager.client.event.AssetActionCompleteEvent
egenskap AssetActionCompleteEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionCompleteEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Dispatched when an handling of an action is complete. This can be used by the framework or the application to perform any additional activities e.g. display of a toast, alert box etc.
assetActionsChanged | Händelse |
com.adobe.livecycle.assetmanager.client.event.AssetActionsChangeEvent
egenskap AssetActionsChangeEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionsChangeEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
assetActionsChanged event is thrown by the Handler when the selected item in results viewer change and it updates the correct handler selected assets. It is redispatched by the AssetHandlerRegistry and finally handled by AssetManagerView
launchEditor | Händelse |
com.adobe.livecycle.assetmanager.client.event.AssetActionEvent
egenskap AssetActionEvent.type =
com.adobe.livecycle.assetmanager.client.event.AssetActionEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Dispatched when an action handled by this handler requires an editor window to be launched. Create/View/Edit/Copy are the actions that require displaying the editor window to the user.
ACTION_CREATE | Konstant |
public static const ACTION_CREATE:String = "Create"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to creation of an asset.
ACTION_DELETE | Konstant |
public static const ACTION_DELETE:String = "Delete"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to deletion of an asset.
ACTION_EDIT | Konstant |
public static const ACTION_EDIT:String = "Edit"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to editing of an asset.
ACTION_VIEW | Konstant |
public static const ACTION_VIEW:String = "View"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to viewing of an asset.
ACTION_VIEW_DEPENDENCY | Konstant |
public static const ACTION_VIEW_DEPENDENCY:String = "ViewDependency"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the name of the action related to view dependencies of an asset.
ASSET_TYPE | Konstant |
public static const ASSET_TYPE:String = "Category"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constant for the Asset Type handled by this handler.
Tue Jun 12 2018, 01:40 PM Z