Package | com.adobe.portfolio.cards |
Class | public class GuideCard |
Inheritance | GuideCard ![]() ![]() ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Method | Defined By | ||
---|---|---|---|
Constructor
| GuideCard | ||
![]() | addListenAndWatch():void
Creates autoListen and autoWatch for automatically tracking listeners and watchers. | NavSkinnableComponent | |
![]() | invalidatePreview(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
Invalidate the current preview state for the card
| SimpleCard | |
![]() | removeListenAndWatch():void
Uses autoListen and autoWatch to remove all listeners and watchers. | NavSkinnableComponent | |
![]() | setCurrentState(stateName:String, playTransition:Boolean = true):void [override]
Sets the current component state and skin state. | NavSkinnableComponent | |
![]() | setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void [override]
Sets the layout size of the card. | SimpleCard | |
![]() | toString():String [override]
The String to display in the item renderer. | SimpleCard | |
![]() | updateRenderer(oldRenderer:ISimpleCard):void
Update the renderer to use for the card
| SimpleCard |
Method | Defined By | ||
---|---|---|---|
![]() | addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void | NavSkinnableComponent | |
![]() | addWatcher(watcher:ChangeWatcher):void | NavSkinnableComponent | |
![]() | commitProperties():void [override]
| SimpleCard | |
![]() | detachSkin():void [override] | NavSkinnableComponent | |
![]() | extensionFromAttachment():String
Returns the file extension for the attachment. | SimpleCard | |
![]() | generateThumbnail():void
Generate a thumbnail image for the underlying attachment. | SimpleCard | |
![]() | getAspectRatio():Number
Get the aspect ratio of the thumbnail for the attachment. | SimpleCard | |
![]() | getCurrentSkinState():String [override]
| SimpleCard | |
![]() | getPreviewSize():Point
Get the size of the preview image
| SimpleCard | |
![]() | handlePreview():void
Have the collectionManager handle modal previe experience
for the underlying attachment. | SimpleCard | |
![]() | hostPageCountChanged(val:uint):void
This function is called if the page count of the multipage model
has changed
| SimpleCard | |
![]() | initPageCount():void
Initialize the page count for the preview multipage model
to the page count of the underlying attachement. | SimpleCard | |
![]() | initStates():void | NavSkinnableComponent | |
![]() | invalidatePreviewFromSetData(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
Invalidate the preview because a new data object to be rendered has been set
| SimpleCard | |
![]() | mimeTypeFromAttachment():String
Returns the MIME type for the attachment. | SimpleCard | |
![]() | onAspectRatioChanged(event:PropertyChangeEvent):void
The event handler for changes in aspect ratio of the thumbnail. | SimpleCard | |
![]() | onAttachmentChange(evt:Event):void
Handles changes in the underlying attachment events
| SimpleCard | |
![]() | onChildrenChanged(event:CollectionEvent):void
An event listener that's called when this attachments children dispatches
a collectionChange event. | SimpleCard | |
![]() | onEnableDynamicThumbnails(value:Boolean):void
Handle the enabling of dynamic thumbnails. | SimpleCard | |
![]() | onHostPropertyChange(event:PropertyChangeEvent):void
A listener for PropertyChangeEvents on the collectionManager. | SimpleCard | |
![]() | onIconChange(event:Event):void
Handle icon change events from the underlying attachment
| SimpleCard | |
partAdded(partName:String, instance:Object):void [override]
| GuideCard | ||
partRemoved(partName:String, instance:Object):void [override]
| GuideCard | ||
![]() | setAspectRatio(value:Number, mediaValue:Boolean = false):void
Set the aspect ratio of the thumbnail for the attachment. | SimpleCard | |
![]() | setAspectRatioField(value:Number):void
Set the aspect ratio of the appropriate field for the attachment
| SimpleCard | |
![]() | updatePreview(oldRenderer:ISimpleCard):void
Update the preview for this card. | SimpleCard | |
![]() | updatePreviewModelListeners(adding:Boolean):void
Update the listeners for preview model events. | SimpleCard |
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 | ||
---|---|---|---|---|
![]() | icon:spark.primitives.BitmapImage | Required: false Part Type: Static The icon image for the card | SimpleCard | |
nextButton:mx.core.IButton | Required: false Part Type: Static A button for navigating to the next attachment, optionally provided by this instance's skin. | GuideCard | ||
![]() | paddingGroup:mx.core.UIComponent | Required: false Part Type: Static A UI Component whose left/right/top/bottom values can be adjusted to fit card UI to a particular aspect ratio without affecting the bounds of the card. See also | SimpleCard | |
prevButton:mx.core.IButton | Required: false Part Type: Static A button for navigating to the previous attachment, optionally provided by this instance's skin. | GuideCard | ||
![]() | ribbon:spark.components.Group | Required: false Part Type: Static A skin part representing the ribbon component that should be visible when the user is editing the attament in an external application. | SimpleCard |
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.
Constant | Defined By | ||
---|---|---|---|
![]() | ASPECT_RATIO_FIELD : String = adobe:AspectRatio [static]
A string literal representing the name for the aspect ratio field
| SimpleCard | |
![]() | PART_ICON : String = icon [static]
A string literal used to represent the icon skin part exposed by SimpleCard
| SimpleCard | |
PART_NEXT_BUTTON : String = nextButton [static]
A string literal used to represent the next attachment button
skin parts exposed by OneUp to its skins. | GuideCard | ||
PART_PREV_BUTTON : String = prevButton [static]
A string literal used to represent the previous attachment button
skin parts exposed by OneUp to its skins. | GuideCard | ||
![]() | PART_PREVIEW : String = preview [static]
A string literal used to represent the preview skin part exposed by SimpleCard
| SimpleCard | |
![]() | PART_RIBBON : String = ribbon [static]
A string literal used to represent the ribbon skin part exposed by SimpleCard
| SimpleCard | |
![]() | SKIN_STATE_NORMAL : String = normal [static]
A string literal used to represent the normal skin state of the SimpleCard
| SimpleCard | |
![]() | SKIN_STATE_OVER : String = over [static]
A string literal used to represent the "over" skin state of the SimpleCard
| SimpleCard | |
![]() | SKIN_STATE_OVER_AND_SELECTED : String = overAndSelected [static]
A string literal used to represent the over and selected skin state of the SimpleCard
| SimpleCard | |
![]() | SKIN_STATE_SELECTED : String = selected [static]
A string literal used to represent the selected skin state of the SimpleCard
| SimpleCard | |
![]() | STATE_DISABLED : String = disabled [static] | NavSkinnableComponent | |
![]() | STATE_NORMAL : String = normal [static] | NavSkinnableComponent |
GuideCard | () | Constructor |
public function GuideCard()
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Constructor
partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):void
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Parameters
partName:String | |
instance:Object |
partRemoved | () | method |
override protected function partRemoved(partName:String, instance:Object):void
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Parameters
partName:String | |
instance:Object |
PART_NEXT_BUTTON | Constant |
public static const PART_NEXT_BUTTON:String = nextButton
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
A string literal used to represent the next attachment button skin parts exposed by OneUp to its skins.
PART_PREV_BUTTON | Constant |
public static const PART_PREV_BUTTON:String = prevButton
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
A string literal used to represent the previous attachment button skin parts exposed by OneUp to its skins.