Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Guide de dépannage Page 42

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 286
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 41
40
BlackBerry Java Development Environment Development Guide
Define a layout manager
Set field focus and navigation
UI EventListeners let applications respond to a change to a UI object.
Listen for field focus changes
1. Implement FocusChangeListener. Your implementation of FocusChangeListener should specify what
action occurs when the field gains, loses, or changes the focus by implementing
focusChanged().
2. Assign your implementation to a Field by invoking setChangeListener().
private class FocusListener implements FocusChangeListener {
public void focusChanged(Field field, int eventType) {
if (eventType == FOCUS_GAINED) {
// Perform action when this field gains the focus.}
if (eventType == FOCUS_CHANGED) {
// Perform action when the focus changes for this field.}
if (eventType == FOCUS_LOST) {
// Perform action when this field loses focus.}
}
}
FocusListener myFocusChangeListener = new FocusListener();
myField.setFocusListener(myFocusChangeListener);
Respond to UI events
Task Steps
Create a layout manager. On an instance of a Screen, complete the following actions:
1. Instantiate the appropriate Manager subclass.
VerticalFieldManager vfm = new
VerticalFieldManager(Manager.VERTICAL_SCROLL);
2. Add UI components to the layout manager.
vfm.add(bitmapField);
vfm.add(bitmapField2);
3. Add the layout manager to the screen.
mainScreen.add(vfm)
Task Steps
Respond to UI navigation events. > Manage navigation events by extending the net.rim.device.api.ui.Screen class (or one
of its subclasses) and overriding the following navigation methods:
• navigationClick(int status, int time)
• navigationUnclick(int status, int time)
• navigationMovement(int dx, int dy, int status, int time)
• When you create a new UI application, use the new Screen navigation methods and avoid using the
TrackwheelListener
.
• If the existing UI application implements the TrackwheelListener, update the application to use
the new
Screen navigation methods.
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 285 286

Commentaires sur ces manuels

Pas de commentaire

Samsung DVD-511/XEH podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Nie Samsung DVD-511/XEH.
Dostarczamy 1 pdf podręczników Samsung DVD-511/XEH do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Nie Samsung

Modele Rodzaj dokumentu
SEW-660DW Instrukcja Użytkownika Samsung SEW-660DW 사용자 설명서 [da] , 13 strony
SMX-F70BP Instrukcja Użytkownika   Samsung SMX-F70BP User guide, 104 strony
XQB70-C99 Instrukcja Użytkownika   Samsung XQB70-C99 ユーザーマニュアル, 20 strony
HSB-C420DS Instrukcja Użytkownika Samsung HSB-C420DS 사용자 설명서, 40 strony
RT43H5205SA Instrukcja Użytkownika   Samsung RT43H5205UT ユーザーマニュアル, 32 strony
SAMSUNG WB30F Instrukcja Użytkownika   Samsung SAMSUNG WB30F User manual [en] , 156 strony
NP530U4C Instrukcja Użytkownika   Samsung NP530U3C ユーザーマニュアル, 130 strony
RT50EBSM Instrukcja Użytkownika    Samsung RT59MBMT User manual, 36 strony
WW60H5240EW Instrukcja Użytkownika    Samsung WW60H5240EW Руководство пользователя, 176 strony
SC8585 Instrukcja Użytkownika   Samsung SC8571 Kasutusjuhend, 60 strony
SAMSUNG WB750 Instrukcja Użytkownika   Samsung กล้องคอมแพค WB750 คู่มือการใช้งาน, 144 strony
SPF-83V Instrukcja Użytkownika   Samsung SPF-83V Manuel utilisateur, 13 strony
SAMSUNG ST5500 Instrukcja Użytkownika   Samsung SAMSUNG ST5500 Manual do usuário, 137 strony
SDW-MH12EA Instrukcja Użytkownika Samsung SDW-MH12EA User Manual [sk] , 36 strony
UE32EH4003W Instrukcja Użytkownika   Samsung UE32EH4003W Manual do usuário, 190 strony
SAMSUNG ST600 Instrukcja Użytkownika   Samsung SAMSUNG ST600 ユーザーマニュアル, 119 strony
SAMSUNG L100 Instrukcja Użytkownika    Samsung SAMSUNG L100 Kasutusjuhend, 102 strony
R1031 Instrukcja Użytkownika   Samsung R1031 User guide, 12 strony
EK-GC200 Instrukcja Użytkownika   Samsung EK-GC200 Руководство пользователя, 166 strony
CE1185UBC Podręcznik   Samsung CE1185UBC Benutzerhandbuch, 32 strony