Package | com.adobe.portfolio.lists |
Class | public class LinearList |
Inheritance | LinearList ![]() ![]() |
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 | |
dataProvider : IList [override] [write-only]
Sets the dataProvider for this list. | LinearList | ||
![]() | dragStarted : Boolean = false
A boolean to indicate that a drag operation is in progress
| CardList | |
![]() | enableIdle : Boolean | CardList | |
![]() | useDragDropOnFolders : Boolean = false
To enable dragDrop on folders during a drag operation. | CardList | |
![]() | useDragDropReordering : Boolean = false
To allow for reordering of items using simple drag and drop gestures. | CardList |
Property | Defined By | ||
---|---|---|---|
![]() | autoListen : AutoListen | CardList | |
![]() | autoWatch : AutoWatch | CardList | |
![]() | cardLayout : ICardLayout | CardList | |
![]() | cardLayoutHelper : CardLayoutHelper | CardList | |
![]() | focusCardDelta : int | CardList | |
![]() | isDragAndDropDisabled : Boolean [static] [read-only]
True if drag and drop has been temporarily disabled for card lists. | CardList | |
projection : PerspectiveProjection
The projection applied to the dataGroup so that 3D effects display properly. | LinearList |
Method | Defined By | ||
---|---|---|---|
LinearList | |||
![]() | addDragData(dragSource:DragSource):void [override]
Takes the data set by the list for ordered items and adds it to the attachments
data format. | CardList | |
addListenAndWatch():void [override]
Adds listeners and watchers that are automatically unwatched and unlistened. | LinearList | ||
![]() | calculateDropLocation(event:DragEvent):DropLocation
Calculate the dropLocation of the given dragEvent. | CardList | |
![]() | cardFromAttachment(_dataGroup:DataGroup, attachment:Object):ISimpleCard [static]
Finds the card associated with the given attachment
| CardList | |
![]() | collectionDropEnabled(event:DragEvent):Boolean
Helper function that determines whether drag drop is supported
| CardList | |
![]() | createDropIndicator():DisplayObject [override]
Creates a custom dropIndicator for the cardList. | CardList | |
![]() | disableDragAndDrop():void [static]
Functions used to disable and enable drag and drop. | CardList | |
![]() | enableDragAndDrop():void [static] | CardList | |
![]() |
Finds the card corresponding to the attachment in focus. | CardList | |
![]() | getFolderItemAtDragLocation(dropLocation:DropLocation):IAttachment
Finds the folder at a given dropLocation
| CardList | |
![]() | removeListenAndWatch():void
Function to cleanup the event listeners required by miniNav list. | CardList | |
![]() | setSelectedIndexWithChangeDispatch(value:int):void
Force selection change. | CardList | |
![]() | setSelectedIndicesWithChangeDispatch(value:Vector.<int>):void
Force selection change. | 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 | |
centerProjection():void
Updates projection so that it aligns properly with the current list dimensions. | LinearList | ||
![]() | 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]
Does not start drag if some other component has disabled it. | CardList | |
![]() | handleDragDropReordering(event:DragEvent):void
Handles the reordering of items after a dragDrop. | CardList | |
![]() | handleDropOnFolder(folder:IAttachment, event:DragEvent):IList
Handles drop on a folder. | CardList | |
![]() | handleFocusChange(event:CollectionManagerEvent):void
Triggers generation of thumbnails around the new focus card. | CardList | |
![]() | handleSelectionChanged():void
Updates the host's selection based on the current list selection. | CardList | |
![]() | initializeSelectionFromHost():Boolean | CardList | |
itemSelected(index:int, selected:Boolean):void [override]
An empty implementation to prevent selected items from appear selected. | LinearList | ||
![]() | keyDownHandler(event:KeyboardEvent):void [override]
| CardList | |
![]() | makeNewOrderedList(dropIndex:int, droppingItems:ArrayCollection):IList
Creates an ordered list of items in the dataProvider after the drop. | CardList | |
![]() | onChildrenCollectionChange(event:CollectionEvent):void
This function is used when attachments are moved across folders. | CardList | |
onCollectionChange(e:CollectionEvent):void [override]
Listener to handle collection change events. | LinearList | ||
![]() | onCreationComplete(event:FlexEvent):void | CardList | |
![]() | onIndexChangeEvent(event:IndexChangeEvent):void
This listener is called when the selection changes based on user interaction, or
when setSelectedIndexWithChangeDispatch or setSelectedIndicesWithChangeDispatch is used
to set the selection. | CardList | |
onNavHostEvent(event:CollectionManagerEvent):void [override]
Listener to handle events from the Collection Manager. | LinearList | ||
![]() | onOpenFolderTimeComplete(evt:TimerEvent):void
Called when the openFolderTimer completes. | CardList | |
onResize(event:ResizeEvent):void [override]
| LinearList | ||
![]() | onScroll(event:Event):void
Listener to handle scroll events of the scroller on cardLists. | CardList | |
partAdded(partName:String, instance:Object):void [override]
| LinearList | ||
partRemoved(partName:String, instance:Object):void [override]
| LinearList | ||
![]() | removeListener(listener:IEventDispatcher, type:String = null):void | CardList | |
![]() | reorderAttachments(source:IList):Boolean
Sends 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 |
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 | ||
---|---|---|---|---|
guideCard:ISimpleCard | Required: false Part Type: Static A card used to display descriptive information about the current attachment. | LinearList | ||
nextButton:mx.core.IButton | Required: false Part Type: Static A button for navigating to the next attachment, optionally provided by this instance's skin. | LinearList | ||
prevButton:mx.core.IButton | Required: false Part Type: Static A button for navigating to the previous attachment, optionally provided by this instance's skin. | LinearList |
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 | |
PART_GUIDE_CARD : String = guideCard [static]
A string literal representing the name of the guide card skin part. | LinearList | ||
PART_NEXT_BUTTON : String = nextButton [static]
A string literal representing the name of the next button skin part. | LinearList | ||
PART_PREV_BUTTON : String = prevButton [static]
A string literal representing the name of the previous button skin part. | LinearList |
dataProvider | property |
dataProvider:IList
[write-only] [override] Sets the dataProvider for this list.
public function set dataProvider(value:IList):void
projection | property |
protected var projection:PerspectiveProjection
The projection applied to the dataGroup so that 3D effects display properly.
See also
LinearList | () | Constructor |
public function LinearList()
addListenAndWatch | () | method |
override public function addListenAndWatch():void
Adds listeners and watchers that are automatically unwatched and unlistened.
centerProjection | () | method |
protected function centerProjection():void
Updates projection so that it aligns properly with the current list dimensions.
itemSelected | () | method |
override protected function itemSelected(index:int, selected:Boolean):void
An empty implementation to prevent selected items from appear selected.
Parameters
index:int | |
selected:Boolean |
onCollectionChange | () | method |
override protected function onCollectionChange(e:CollectionEvent):void
Listener to handle collection change events.
Parameters
e:CollectionEvent |
onNavHostEvent | () | method |
override protected function onNavHostEvent(event:CollectionManagerEvent):void
Listener to handle events from the Collection Manager.
Parameters
event:CollectionManagerEvent |
onResize | () | method |
override protected function onResize(event:ResizeEvent):void
Parameters
event:ResizeEvent |
partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):void
Parameters
partName:String | |
instance:Object |
partRemoved | () | method |
override protected function partRemoved(partName:String, instance:Object):void
Parameters
partName:String | |
instance:Object |
PART_GUIDE_CARD | Constant |
public static const PART_GUIDE_CARD:String = guideCard
A string literal representing the name of the guide card skin part.
PART_NEXT_BUTTON | Constant |
public static const PART_NEXT_BUTTON:String = nextButton
A string literal representing the name of the next button skin part.
PART_PREV_BUTTON | Constant |
public static const PART_PREV_BUTTON:String = prevButton
A string literal representing the name of the previous button skin part.