| Package | com.adobe.portfolio.components |
| Class | public class CardList |
| Inheritance | CardList spark.components.List |
| Implements | IListenAndWatch |
| Subclasses | CardContainer, DetailsCardList, LinearList, MiniNavList |
Default MXML PropertydataProvider
| Property | Defined By | ||
|---|---|---|---|
| bindableDataGroup : DataGroup [read-only] | CardList | ||
| dataProvider : IList [override] [write-only] | CardList | ||
| dragStarted : Boolean = false Boolean to indicate dragOperation is in progress
| CardList | ||
| enableIdle : Boolean | CardList | ||
| 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 | ||
| focusCardDelta : int | CardList | ||
| Method | Defined By | ||
|---|---|---|---|
CardList() | CardList | ||
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 | CardList | ||
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 | ||
setSelectedIndexWithChangeDispatch(value:int):void | CardList | ||
setSelectedIndicesWithChangeDispatch(value:Vector.<int>):void | CardList | ||
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 | ||
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 | ||
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 | ||
keyDownHandler(event:KeyboardEvent):void [override] | CardList | ||
makeNewOrderedList(dropIndex:int, droppingItems:ArrayCollection, dragInitiator:IUIComponent):IList
Creates an ordered list of items after the drop. | CardList | ||
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 | ||
onCollectionChange(e:CollectionEvent):void | CardList | ||
onCreationComplete(event:FlexEvent):void | CardList | ||
onIndexChangeEvent(event:IndexChangeEvent):void | CardList | ||
onNavHostEvent(event:NavHostEvent):void | CardList | ||
onOpenFolderTimeComplete(evt:TimerEvent):void | CardList | ||
onResize(event:ResizeEvent):void | CardList | ||
partAdded(partName:String, instance:Object):void [override] | CardList | ||
partRemoved(partName:String, instance:Object):void [override] | CardList | ||
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 | ||
resizeCachedThumbs():void | CardList | ||
setFocusOnIndexChange(attachment:IAttachment):void | CardList | ||
updateSelection():void | CardList | ||
| 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. | CardList | ||
| DRAG_DROP_ITEMS : String = itemsByIndex [static]
Format that defines the default set of List drag and drop items. | CardList | ||
| autoListen | property |
protected var autoListen:AutoListen| autoWatch | property |
protected var autoWatch:AutoWatch| bindableDataGroup | property |
bindableDataGroup:DataGroup [read-only] This property can be used as the source for data binding.
public function get bindableDataGroup():DataGroup| cardLayout | property |
protected var cardLayout:ICardLayout| cardLayoutHelper | property |
protected var cardLayoutHelper:CardLayoutHelper| dataProvider | property |
dataProvider:IList [write-only] [override] public function set dataProvider(value:IList):void| dragStarted | property |
public var dragStarted:Boolean = falseBoolean to indicate dragOperation is in progress
| enableIdle | property |
enableIdle:Boolean public function get enableIdle():Boolean public function set enableIdle(value:Boolean):void| focusCardDelta | property |
protected var focusCardDelta:int| useDragDropOnFolders | property |
public var useDragDropOnFolders:Boolean = falseTo enable dragDrop on folders during drag
| useDragDropReordering | property |
public var useDragDropReordering:Boolean = falseTo use advanced reordering
| CardList | () | Constructor |
public function CardList()| addDragData | () | method |
override public function addDragData(dragSource:DragSource):voidTake the data set by the list for ordered items and add it to the attachments data format. Acrobat uses that for external drag-drops
Parameters
dragSource:DragSource |
| addListenAndWatch | () | method |
public function addListenAndWatch():void| addListener | () | method |
protected function addListener(listener:IEventDispatcher, type:String, handler:Function):voidParameters
listener:IEventDispatcher | |
type:String | |
handler:Function |
| addWatcher | () | method |
protected function addWatcher(watcher:ChangeWatcher):voidParameters
watcher:ChangeWatcher |
| calculateDropLocation | () | method |
public function calculateDropLocation(event:DragEvent):DropLocationCalculate the dropLocation of the dragEvent. Returns the drop location for this event, or null if the drop operation is not available.
Parameters
event:DragEvent |
DropLocation |
| cardFromAttachment | () | method |
public static function cardFromAttachment(_dataGroup:DataGroup, attachment:Object):ISimpleCardParameters
_dataGroup:DataGroup | |
attachment:Object |
ISimpleCard |
| collectionDropEnabled | () | method |
public function collectionDropEnabled(event:DragEvent):BooleanHelper function that determines whether drag drop is supported
Parameters
event:DragEvent |
Boolean |
| createDropIndicator | () | method |
override public function createDropIndicator():DisplayObjectReturnsDisplayObject |
| dataProviderIsCurrent | () | method |
protected function dataProviderIsCurrent():BooleanReturns true if the dataProvider for this list matches the CollectionMgr's currentItems. Things like focus and selection should only be propagated to the CollectionMgr if the dataProvider is current.
ReturnsBoolean |
| disableDragAndDrop | () | method |
public static function disableDragAndDrop():void| dragCompleteHandler | () | method |
override protected function dragCompleteHandler(event:DragEvent):voidParameters
event:DragEvent |
| dragDropHandler | () | method |
override protected function dragDropHandler(event:DragEvent):voidParameters
event:DragEvent |
| dragEnterHandler | () | method |
override protected function dragEnterHandler(event:DragEvent):voidParameters
event:DragEvent |
| dragExitHandler | () | method |
override protected function dragExitHandler(event:DragEvent):voidParameters
event:DragEvent |
| dragOverHandler | () | method |
override protected function dragOverHandler(event:DragEvent):voidParameters
event:DragEvent |
| dragStartHandler | () | method |
override protected function dragStartHandler(event:DragEvent):voidOverriding the dragStartHandler to set a boolean to indicate that drag has started
Parameters
event:DragEvent |
| enableDragAndDrop | () | method |
public static function enableDragAndDrop():void| findCardWithAttachmentFocus | () | method |
| getFolderItemAtDragLocation | () | method |
public function getFolderItemAtDragLocation(dropLocation:DropLocation):IAttachmentGets the folder item at the drop location
Parameters
dropLocation:DropLocation |
IAttachment |
| handleDragDropReordering | () | method |
protected function handleDragDropReordering(event:DragEvent):void Handles the actual dragDrop. However, it does not modify the dataProvider, but invokes
makeNewOrderedList to create an ordered list of items after the drop.
Parameters
event:DragEvent |
| handleDropOnFolder | () | method |
protected function handleDropOnFolder(folder:IAttachment, event:DragEvent):IListHandles drop on a folder
Parameters
folder:IAttachment | |
event:DragEvent |
IList |
| handleFocusChange | () | method |
| handleSelectionChanged | () | method |
protected function handleSelectionChanged():voidUpdates the host selection based on the current list selection.
| initializeSelectionFromHost | () | method |
protected function initializeSelectionFromHost():BooleanReturnsBoolean |
| keyDownHandler | () | method |
override protected function keyDownHandler(event:KeyboardEvent):voidParameters
event:KeyboardEvent |
| makeNewOrderedList | () | method |
protected function makeNewOrderedList(dropIndex:int, droppingItems:ArrayCollection, dragInitiator:IUIComponent):IListCreates an ordered list of items after the drop.
Parameters
dropIndex:int | |
droppingItems:ArrayCollection | |
dragInitiator:IUIComponent |
IList |
| onChildrenCollectionChange | () | method |
protected function onChildrenCollectionChange(event:CollectionEvent):voidOnce the att's parent has been changed and it has been added to this collection, send the reorder command
Parameters
event:CollectionEvent |
| onCollectionChange | () | method |
protected function onCollectionChange(e:CollectionEvent):voidParameters
e:CollectionEvent |
| onCreationComplete | () | method |
protected function onCreationComplete(event:FlexEvent):voidParameters
event:FlexEvent |
| onIndexChangeEvent | () | method |
protected function onIndexChangeEvent(event:IndexChangeEvent):voidParameters
event:IndexChangeEvent |
| onNavHostEvent | () | method |
| onOpenFolderTimeComplete | () | method |
protected function onOpenFolderTimeComplete(evt:TimerEvent):voidParameters
evt:TimerEvent |
| onResize | () | method |
protected function onResize(event:ResizeEvent):voidParameters
event:ResizeEvent |
| partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):voidParameters
partName:String | |
instance:Object |
| partRemoved | () | method |
override protected function partRemoved(partName:String, instance:Object):voidParameters
partName:String | |
instance:Object |
| removeListenAndWatch | () | method |
public function removeListenAndWatch():void| removeListener | () | method |
protected function removeListener(listener:IEventDispatcher, type:String = null):voidParameters
listener:IEventDispatcher | |
type:String (default = null) |
| reorderAttachments | () | method |
protected function reorderAttachments(source:IList):BooleanSend the reorder command once all the attachments are found in the given list
Parameters
source:IList |
Boolean |
| resizeCachedThumbs | () | method |
protected function resizeCachedThumbs():void| setFocusOnIndexChange | () | method |
protected function setFocusOnIndexChange(attachment:IAttachment):voidParameters
attachment:IAttachment |
| setSelectedIndexWithChangeDispatch | () | method |
public function setSelectedIndexWithChangeDispatch(value:int):voidParameters
value:int |
| setSelectedIndicesWithChangeDispatch | () | method |
public function setSelectedIndicesWithChangeDispatch(value:Vector.<int>):voidParameters
value:Vector.<int> |
| updateRenderer | () | method |
override public function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):voidParameters
renderer:IVisualElement | |
itemIndex:int | |
data:Object |
| updateSelection | () | method |
protected function updateSelection():void| collectionMgr | Constant |
public const collectionMgr:CollectionManagerThe navigator's CollectionManager instance. All host interaction should go through this instance, rather than the INavigatorHost directly.
| DRAG_DROP_ATTACHMENTS | Constant |
public static const DRAG_DROP_ATTACHMENTS:String = attachmentsFormat that defines the set of Acrobat drag and drop attachments.
| DRAG_DROP_ITEMS | Constant |
public static const DRAG_DROP_ITEMS:String = itemsByIndexFormat that defines the default set of List drag and drop items.