| Package | com.adobe.portfolio.components |
| Class | public class OneUp |
| Inheritance | OneUp spark.components.SkinnableDataContainer |
| 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] | OneUp | ||
| cardProvider : ICardProvider [read-only] | OneUp | ||
| Property | Defined By | ||
|---|---|---|---|
| autoListen : AutoListen | OneUp | ||
| cardLayout : ICardLayout | OneUp | ||
| cardLayoutHelper : CardLayoutHelper | OneUp | ||
| Method | Defined By | ||
|---|---|---|---|
OneUp() Default constructor for OneUp. | OneUp | ||
setCurrentState(stateName:String, playTransition:Boolean = true):void [override] Sets the state of the skin as well as the state of this instance. | OneUp | ||
| Method | Defined By | ||
|---|---|---|---|
getCurrentSkinState():String [override] Returns the current state of this instance, since its skins should have a matching
set of states. | OneUp | ||
handleFocusChange(event:NavHostEvent):void | OneUp | ||
onCreationComplete(event:FlexEvent):void | OneUp | ||
onHandledFocus(evt: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. | OneUp | ||
onNavHostEvent(event:NavHostEvent):void | OneUp | ||
onResize(event:ResizeEvent):void | OneUp | ||
partAdded(partName:String, instance:Object):void [override] Called when a skin has added a skin part for this instance. | OneUp | ||
partRemoved(partName:String, instance:Object):void [override] Called when a skin has removed a skin part for this instance. | OneUp | ||
resizeCachedThumbs():void | OneUp | ||
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
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 | ||
|---|---|---|---|---|
empty | OneUp | |||
normal | OneUp | |||
preview | OneUp | |||
| Constant | Defined By | ||
|---|---|---|---|
| PART_NEXT_BUTTON : String = nextButton [static] | OneUp | ||
| PART_PREV_BUTTON : String = prevButton [static] String literals used to represent the skin parts exposed by OneUp
to its skins. | OneUp | ||
| SKIN_STATE_EMPTY : String = empty [static] | OneUp | ||
| SKIN_STATE_NORMAL : String = normal [static] | OneUp | ||
| SKIN_STATE_PREVIEW : String = preview [static] | OneUp | ||
| STATE_NORMAL : String = normal [static] String literals used to represent the states of OneUp and its skins. | OneUp | ||
| STATE_PREVIEW : String = preview [static] | OneUp | ||
| Constant | Defined By | ||
|---|---|---|---|
| collectionMgr : CollectionManager The navigator's CollectionManager instance. | OneUp | ||
| autoListen | property |
protected var autoListen:AutoListen| 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| cardProvider | property |
cardProvider:ICardProvider [read-only] This property can be used as the source for data binding.
public function get cardProvider():ICardProvider| OneUp | () | Constructor |
public function OneUp()Default constructor for OneUp.
| getCurrentSkinState | () | method |
override protected function getCurrentSkinState():StringReturns the current state of this instance, since its skins should have a matching set of states.
ReturnsString |
| handleFocusChange | () | method |
| onCreationComplete | () | method |
protected function onCreationComplete(event:FlexEvent):voidParameters
event:FlexEvent |
| onHandledFocus | () | method |
protected function onHandledFocus(evt:NavLayoutEvent):voidonHandledFocus 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.
Parameters
evt:NavLayoutEvent |
| onNavHostEvent | () | method |
| onResize | () | method |
protected function onResize(event:ResizeEvent):voidParameters
event:ResizeEvent |
| partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):voidCalled when a skin has added a skin part for this instance.
Parameters
partName:String | |
instance:Object |
| partRemoved | () | method |
override protected function partRemoved(partName:String, instance:Object):voidCalled when a skin has removed a skin part for this instance.
Parameters
partName:String | |
instance:Object |
| resizeCachedThumbs | () | method |
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) |
| collectionMgr | Constant |
protected const collectionMgr:CollectionManagerThe navigator's CollectionManager instance. All host interaction should go through this instance, rather than the INavigatorHost directly.
| PART_NEXT_BUTTON | Constant |
public static const PART_NEXT_BUTTON:String = nextButton| PART_PREV_BUTTON | Constant |
public static const PART_PREV_BUTTON:String = prevButtonString literals used to represent the skin parts exposed by OneUp to its skins. XXX They should match the names of the SkinPart vars below.
| SKIN_STATE_EMPTY | Constant |
public static const SKIN_STATE_EMPTY:String = empty| SKIN_STATE_NORMAL | Constant |
public static const SKIN_STATE_NORMAL:String = normal| SKIN_STATE_PREVIEW | Constant |
public static const SKIN_STATE_PREVIEW:String = preview| STATE_NORMAL | Constant |
public static const STATE_NORMAL:String = normalString literals used to represent the states of OneUp and its skins. XXX They should match the SkinState references above.
| STATE_PREVIEW | Constant |
public static const STATE_PREVIEW:String = preview