| Package | com.adobe.portfolio.components |
| Class | public class NavPreview |
| Inheritance | NavPreview CardContainer CardList spark.components.List |
| Language Version : | ActionScript 3.0 |
| Product Version : | Portfolio 10.0 |
| Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Default MXML PropertydataProvider
| Property | Defined By | ||
|---|---|---|---|
![]() | bindableDataGroup : DataGroup [read-only] | CardList | |
| cardZoomFrom : Rect [read-only] | NavPreview | ||
| dataProvider : IList [override] | NavPreview | ||
![]() | dragStarted : Boolean = false Boolean to indicate dragOperation is in progress
| CardList | |
| enableDataProvider : Boolean | NavPreview | ||
![]() | enableIdle : Boolean | CardList | |
| focusAttachment : IAttachment | NavPreview | ||
![]() | navPreview : NavPreview | CardContainer | |
| previewCardSize : Point | NavPreview | ||
| previewFolderSize : Point | NavPreview | ||
| rootDataGroup : DataGroup | NavPreview | ||
| showCardPreviewAtRoot : Boolean [read-only] | NavPreview | ||
![]() | useDragDropOnFolders : Boolean = false To enable dragDrop on folders during drag
| CardList | |
![]() | useDragDropReordering : Boolean = false To use advanced reordering
| CardList | |
| Property | Defined By | ||
|---|---|---|---|
![]() | autoListen : AutoListen | CardList | |
![]() | autoWatch : AutoWatch | CardList | |
![]() | cardLayout : ICardLayout | CardList | |
![]() | cardLayoutHelper : CardLayoutHelper | CardList | |
![]() | cardSize : String | CardContainer | |
![]() | focusCardDelta : int | CardList | |
| focusChangeEffect : Effect | NavPreview | ||
| isInPreviewState : Boolean [read-only] | NavPreview | ||
| isSkinEffectPlaying : Boolean [read-only] | NavPreview | ||
| nextCardPreviewEffect : Effect [read-only] | NavPreview | ||
| prevCardPreviewEffect : Effect [read-only] | NavPreview | ||
| previewCardInvalid : Boolean | NavPreview | ||
| thumbnailManager : ThumbnailManager | NavPreview | ||
| Method | Defined By | ||
|---|---|---|---|
| NavPreview | |||
![]() | addDragData(dragSource:DragSource):void [override]
Take the data set by the list for ordered items and add it to the attachments
data format. | CardList | |
addListenAndWatch():void [override] | NavPreview | ||
![]() | calculateDropLocation(event:DragEvent):DropLocation Calculate the dropLocation of the dragEvent. | CardList | |
![]() | cardFromAttachment(_dataGroup:DataGroup, attachment:Object):ISimpleCard [static] | CardList | |
![]() | collectionDropEnabled(event:DragEvent):Boolean
Helper function that determines whether drag drop is supported
| CardList | |
![]() | createDropIndicator():DisplayObject [override] | CardList | |
![]() | disableDragAndDrop():void [static] | CardList | |
![]() | enableDragAndDrop():void [static] | CardList | |
![]() | CardList | ||
![]() | getFolderItemAtDragLocation(dropLocation:DropLocation):IAttachment Gets the folder item at the drop location
| CardList | |
![]() | removeListenAndWatch():void | CardList | |
setCurrentState(stateName:String, playTransition:Boolean = true):void [override] Sets the state of the skin as well as the state of this instance. | NavPreview | ||
setPreviewTo(force:Boolean = false):void | NavPreview | ||
![]() | setSelectedIndexWithChangeDispatch(value:int):void | CardList | |
![]() | setSelectedIndicesWithChangeDispatch(value:Vector.<int>):void | CardList | |
transitionCurrentState(metaState:String):void | NavPreview | ||
![]() | updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void [override] | CardList | |
| Method | Defined By | ||
|---|---|---|---|
![]() | addListener(listener:IEventDispatcher, type:String, handler:Function):void | CardList | |
![]() | addWatcher(watcher:ChangeWatcher):void | CardList | |
commitProperties():void [override] | NavPreview | ||
currentStateIsCardPreview():Boolean | NavPreview | ||
dataProvider_collectionChangeHandler(event:Event):void [override] | NavPreview | ||
![]() | dataProviderIsCurrent():Boolean
Returns true if the dataProvider for this list matches the CollectionMgr's currentItems. | CardList | |
![]() | dragCompleteHandler(event:DragEvent):void [override] | CardList | |
![]() | dragDropHandler(event:DragEvent):void [override] | CardList | |
![]() | dragEnterHandler(event:DragEvent):void [override] | CardList | |
![]() | dragExitHandler(event:DragEvent):void [override] | CardList | |
![]() | dragOverHandler(event:DragEvent):void [override] | CardList | |
![]() | dragStartHandler(event:DragEvent):void [override] Overriding the dragStartHandler to set a boolean to indicate that drag has started
| CardList | |
focusChanged(newFocusAttachment:IAttachment):void | NavPreview | ||
focusChangedInPreview(newFocusAttachment:IAttachment):void | NavPreview | ||
getCurrentSkinState():String [override] Returns the current state of this instance, since its skins should have a matching
set of states. | NavPreview | ||
| NavPreview | |||
![]() | handleDragDropReordering(event:DragEvent):void Handles the actual dragDrop. | CardList | |
![]() | handleDropOnFolder(folder:IAttachment, event:DragEvent):IList Handles drop on a folder
| CardList | |
![]() | handleFocusChange(event:NavHostEvent):void | CardList | |
![]() | handleSelectionChanged():void
Updates the host selection based on the current list selection. | CardList | |
![]() | initializeSelectionFromHost():Boolean | CardList | |
![]() | initStates():void | CardContainer | |
invalidatePreviewCard():void | NavPreview | ||
![]() | keyDownHandler(event:KeyboardEvent):void [override] | CardList | |
![]() | makeNewOrderedList(dropIndex:int, droppingItems:ArrayCollection, dragInitiator:IUIComponent):IList
Creates an ordered list of items after the drop. | CardList | |
![]() | modifiersActive(event:MouseEvent, shiftKeyOK:Boolean = false, ctrlKeyOK:Boolean = false):Boolean | CardContainer | |
onAspectRatioChanged(event:PropertyChangeEvent):void | NavPreview | ||
onButtonDragExit(event:DragEvent):void
Close button is in the child hierarchy of the NavPreview. | NavPreview | ||
![]() | onChildrenCollectionChange(event:CollectionEvent):void
Once the att's parent has been changed and it has been added to this collection, send the reorder command
| CardList | |
onCloseButton(event:MouseEvent):void | NavPreview | ||
![]() | onCollectionChange(e:CollectionEvent):void | CardList | |
![]() | onCreationComplete(event:FlexEvent):void | CardList | |
onDragOver(event:DragEvent):void | NavPreview | ||
| NavPreview | |||
![]() | onHandledFocus(event:NavLayoutEvent):void onHandledFocus is used to ensure that the layout has successfully handled
the layout of its initial focused attachment before transitioning in the remaining pieces
of UI. | CardContainer | |
![]() | onIndexChangeEvent(event:IndexChangeEvent):void | CardList | |
onKeyDown(event:KeyboardEvent):void | NavPreview | ||
![]() | onMarqueeSelectionBegin(event:MarqueeSelectionEvent):void | CardContainer | |
![]() | onMarqueeSelectionCancelled(event:MarqueeSelectionEvent):void | CardContainer | |
![]() | onMarqueeSelectionEnd(event:MarqueeSelectionEvent):void | CardContainer | |
![]() | onMarqueeSelectionMove(event:MarqueeSelectionEvent):void | CardContainer | |
onMouseClick(event:MouseEvent):void | NavPreview | ||
onNavHostEvent(event:NavHostEvent):void [override] | NavPreview | ||
![]() | onNavPreviewCurrentState(value:String):void | CardContainer | |
onOpenFile(event:MouseEvent):void | NavPreview | ||
![]() | onOpenFolderTimeComplete(evt:TimerEvent):void | CardList | |
onPreviewCardClose(event:Event):void | NavPreview | ||
onPreviewCardDataChanged(val:Object):void | NavPreview | ||
onPreviewCardEffectEnd(event:EffectEvent):void | NavPreview | ||
onPreviewCardResize(event:ResizeEvent):void | NavPreview | ||
onResize(event:ResizeEvent):void [override] | NavPreview | ||
onTimerComplete(event:TimerEvent):void | NavPreview | ||
partAdded(partName:String, instance:Object):void [override] | NavPreview | ||
![]() | partRemoved(partName:String, instance:Object):void [override] | CardContainer | |
![]() | removeListener(listener:IEventDispatcher, type:String = null):void | CardList | |
![]() | reorderAttachments(source:IList):Boolean Send the reorder command once all the attachments are found in the given list
| CardList | |
![]() | resetCardSizes():void | CardContainer | |
resizeCachedThumbs():void [override] | NavPreview | ||
setElementBounds(element:IVisualElement, elementSize:Point):void | NavPreview | ||
![]() | setFocusOnIndexChange(attachment:IAttachment):void | CardList | |
stopPlayback():void | NavPreview | ||
![]() | updateMultiSelection(indices:Vector.<int>):void | CardContainer | |
![]() | updateSelection():void | CardList | |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
| Skin Part | Description | Defined By | ||
|---|---|---|---|---|
cardShield:spark.components.Group | Required: false Part Type: Static | NavPreview | ||
closeButton:spark.components.Button | Required: false Part Type: Static | NavPreview | ||
fileNameLabel:spark.components.Label | Required: false Part Type: Static | NavPreview | ||
folderShield:spark.components.Group | Required: false Part Type: Static | NavPreview | ||
![]() | Required: false Part Type: Static A rect (with frame and shaded center) used to highlight the area of a marquee select. | CardContainer | ||
nextButton:spark.components.Button | Required: false Part Type: Static | NavPreview | ||
openFileButton:spark.components.Button | Required: false Part Type: Static | NavPreview | ||
prevButton:spark.components.Button | Required: false Part Type: Static | NavPreview | ||
previewCard:IPreviewCard | Required: false Part Type: Static | NavPreview | ||
previewFolder:spark.components.Group | Required: false Part Type: Static | NavPreview | ||
previewFolderCard:FolderCard | Required: false Part Type: Static | NavPreview | ||
previewHUD:PreviewHUD | Required: false Part Type: Static | NavPreview | ||
tempPreviewCard:IPreviewCard | Required: false Part Type: Static | NavPreview | ||
tempPreviewFolderCard:FolderCard | Required: false Part Type: Static | NavPreview | ||
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
| Skin State | Description | Defined By | ||
|---|---|---|---|---|
cardPreview | NavPreview | |||
disabled | NavPreview | |||
folderCardPreview | NavPreview | |||
folderPreview | NavPreview | |||
![]() | CardContainer | |||
![]() | CardContainer | |||
| Constant | Defined By | ||
|---|---|---|---|
![]() | collectionMgr : CollectionManager The navigator's CollectionManager instance. | CardList | |
| DRAG_DROP_ATTACHMENTS : String = attachments [static]
Format that defines the set of Acrobat drag and drop attachments. | NavPreview | ||
![]() | DRAG_DROP_ITEMS : String = itemsByIndex [static]
Format that defines the default set of List drag and drop items. | CardList | |
| NON_DYNAMIC_THUMBSIZE : int = 512 [static] | NavPreview | ||
| STATE_CARD_PREVIEW : String = cardPreview [static] | NavPreview | ||
| STATE_DISABLED : String = disabled [static] | NavPreview | ||
| STATE_FOLDER_CARD_PREVIEW : String = folderCardPreview [static] | NavPreview | ||
| STATE_FOLDER_PREVIEW : String = folderPreview [static] | NavPreview | ||
![]() | STATE_INTRO : String = intro [static] String literals used to represent the states of CardContainer and its skins. | CardContainer | |
![]() | STATE_NORMAL : String = normal [static] | CardContainer | |
| Constant | Defined By | ||
|---|---|---|---|
| logger : ILogger [static] | NavPreview | ||
| cardZoomFrom | property |
cardZoomFrom:Rect [read-only] This property can be used as the source for data binding.
public function get cardZoomFrom():Rect| dataProvider | property |
dataProvider:IList[override] This property can be used as the source for data binding.
public function get dataProvider():IList public function set dataProvider(value:IList):void| enableDataProvider | property |
enableDataProvider:Boolean public function get enableDataProvider():Boolean public function set enableDataProvider(value:Boolean):void| focusAttachment | property |
focusAttachment:IAttachmentThis property can be used as the source for data binding.
public function get focusAttachment():IAttachment public function set focusAttachment(value:IAttachment):void| focusChangeEffect | property |
protected var focusChangeEffect:Effect| isInPreviewState | property |
isInPreviewState:Boolean [read-only] protected function get isInPreviewState():Boolean| isSkinEffectPlaying | property |
isSkinEffectPlaying:Boolean [read-only] protected function get isSkinEffectPlaying():Boolean| nextCardPreviewEffect | property |
nextCardPreviewEffect:Effect [read-only] protected function get nextCardPreviewEffect():Effect| prevCardPreviewEffect | property |
prevCardPreviewEffect:Effect [read-only] protected function get prevCardPreviewEffect():Effect| previewCardInvalid | property |
protected var previewCardInvalid:Boolean| previewCardSize | property |
previewCardSize:PointThis property can be used as the source for data binding.
public function get previewCardSize():Point public function set previewCardSize(value:Point):void| previewFolderSize | property |
previewFolderSize:PointThis property can be used as the source for data binding.
public function get previewFolderSize():Point public function set previewFolderSize(value:Point):void| rootDataGroup | property |
rootDataGroup:DataGroup public function get rootDataGroup():DataGroup public function set rootDataGroup(value:DataGroup):void| showCardPreviewAtRoot | property |
showCardPreviewAtRoot:Boolean [read-only] This property can be used as the source for data binding.
public function get showCardPreviewAtRoot():Boolean| thumbnailManager | property |
protected var thumbnailManager:ThumbnailManager| NavPreview | () | Constructor |
public function NavPreview()| addListenAndWatch | () | method |
override public function addListenAndWatch():void| commitProperties | () | method |
override protected function commitProperties():void| currentStateIsCardPreview | () | method |
protected function currentStateIsCardPreview():BooleanReturnsBoolean |
| dataProvider_collectionChangeHandler | () | method |
override protected function dataProvider_collectionChangeHandler(event:Event):voidParameters
event:Event |
| focusChanged | () | method |
protected function focusChanged(newFocusAttachment:IAttachment):voidParameters
newFocusAttachment:IAttachment |
| focusChangedInPreview | () | method |
protected function focusChangedInPreview(newFocusAttachment:IAttachment):voidParameters
newFocusAttachment:IAttachment |
| getCurrentSkinState | () | method |
override protected function getCurrentSkinState():StringReturns the current state of this instance, since its skins should have a matching set of states.
ReturnsString |
| getFocusPreview | () | method |
| invalidatePreviewCard | () | method |
protected function invalidatePreviewCard():void| onAspectRatioChanged | () | method |
protected function onAspectRatioChanged(event:PropertyChangeEvent):voidParameters
event:PropertyChangeEvent |
| onButtonDragExit | () | method |
protected function onButtonDragExit(event:DragEvent):voidClose button is in the child hierarchy of the NavPreview. It does not receive a dragExit until we exit from NavPreview. The only way we can know if we exited from the close button is when we didnt receive a dragOver event on the button, but received a dragOverEvent on NavPreview. Use the below logic to reset the timer
Parameters
event:DragEvent |
| onCloseButton | () | method |
protected function onCloseButton(event:MouseEvent):voidParameters
event:MouseEvent |
| onDragOver | () | method |
protected function onDragOver(event:DragEvent):voidParameters
event:DragEvent |
| onFieldValueChanged | () | method |
protected function onFieldValueChanged(e:FieldValueChangedEvent):voidParameters
e:FieldValueChangedEvent |
| onKeyDown | () | method |
protected function onKeyDown(event:KeyboardEvent):voidParameters
event:KeyboardEvent |
| onMouseClick | () | method |
protected function onMouseClick(event:MouseEvent):voidParameters
event:MouseEvent |
| onNavHostEvent | () | method |
| onOpenFile | () | method |
protected function onOpenFile(event:MouseEvent):voidParameters
event:MouseEvent |
| onPreviewCardClose | () | method |
protected function onPreviewCardClose(event:Event):voidParameters
event:Event |
| onPreviewCardDataChanged | () | method |
protected function onPreviewCardDataChanged(val:Object):voidParameters
val:Object |
| onPreviewCardEffectEnd | () | method |
protected function onPreviewCardEffectEnd(event:EffectEvent):voidParameters
event:EffectEvent |
| onPreviewCardResize | () | method |
protected function onPreviewCardResize(event:ResizeEvent):voidParameters
event:ResizeEvent |
| onResize | () | method |
override protected function onResize(event:ResizeEvent):voidParameters
event:ResizeEvent |
| onTimerComplete | () | method |
protected function onTimerComplete(event:TimerEvent):voidParameters
event:TimerEvent |
| partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):voidParameters
partName:String | |
instance:Object |
| resizeCachedThumbs | () | method |
override protected function resizeCachedThumbs():void| setCurrentState | () | method |
override public function setCurrentState(stateName:String, playTransition:Boolean = true):voidSets the state of the skin as well as the state of this instance.
Parameters
stateName:String | |
playTransition:Boolean (default = true) |
| setElementBounds | () | method |
protected function setElementBounds(element:IVisualElement, elementSize:Point):voidParameters
element:IVisualElement | |
elementSize:Point |
| setPreviewTo | () | method |
public function setPreviewTo(force:Boolean = false):voidParameters
force:Boolean (default = false) |
| stopPlayback | () | method |
protected function stopPlayback():void| transitionCurrentState | () | method |
public function transitionCurrentState(metaState:String):voidParameters
metaState:String |
| DRAG_DROP_ATTACHMENTS | Constant |
public static const DRAG_DROP_ATTACHMENTS:String = attachmentsFormat that defines the set of Acrobat drag and drop attachments.
| logger | Constant |
protected static const logger:ILogger| NON_DYNAMIC_THUMBSIZE | Constant |
public static const NON_DYNAMIC_THUMBSIZE:int = 512| STATE_CARD_PREVIEW | Constant |
public static const STATE_CARD_PREVIEW:String = cardPreview| STATE_DISABLED | Constant |
public static const STATE_DISABLED:String = disabled| STATE_FOLDER_CARD_PREVIEW | Constant |
public static const STATE_FOLDER_CARD_PREVIEW:String = folderCardPreview| STATE_FOLDER_PREVIEW | Constant |
public static const STATE_FOLDER_PREVIEW:String = folderPreview