
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Condential.
Managing states in views
private function handleViewActivate(): void !
{!
!setCurrentState(getCurrentViewState());!
}!
override public function getCurrentViewState(): String!
{!
!var newState: String = getPlatform() + !
!!!!(isTablet() ? "Tablet" : "Phone");!
!if (hasState(newState))!
!!return newState;!
!else!
!!return currentState;!
}!
25
Comentarios a estos manuales