MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Instrukcja Użytkownika Strona 25

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 53
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 24
© 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
Przeglądanie stron 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 52 53

Komentarze do niniejszej Instrukcji

Brak uwag