1 / 9

PROGRAM APLIKASI MOBILE

PROGRAM APLIKASI MOBILE. EMHA TAUFIQ LUTHFI PERTEMUAN 2. User Interface. javax.microedition.lcdui. Display. Satu-satunya object untuk menampilkan sesuatu ke layar pada tiap MIDlet

giulia
Télécharger la présentation

PROGRAM APLIKASI MOBILE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PROGRAM APLIKASI MOBILE EMHA TAUFIQ LUTHFI PERTEMUAN 2

  2. User Interface • javax.microedition.lcdui

  3. Display • Satu-satunya object untuk menampilkan sesuatu ke layar pada tiap MIDlet • MIDlet dapat meminta reference kepada object Display dengan menggunakan static Display.getDisplay(), untuk memberikan reference pada instance dari MIDlet

  4. Displayable • Hanyasatu displayable yang akanditampilkanpadatiap display • Secara default, Displayable tidakditampilkanke Display • Sebuah Displayable dapatdipanggildenganmenggunakansetMethod() dari object Display • Method setCurrent() akandipanggilpadamemulaiaplikasi, jikatidakmakasebuah blank screen akantampil

  5. Command • Didalam menu bar, MIDletmemiliki command • Command biasanyadiimplementasikandalam MIDP sebagai soft key atau item didalam menu • Sebuah object command berisiinformasimengenai action-action yang akandilakukanpadasaat command tsbdiaktifkan. • DiperlukanlahsebuahcommandListenersebagaipropertidari Displayable yang berisi action-action yang akandieksekusipadasaat Command diaktifkan

  6. Command • Command(String label, int commandType, int priority) • Command(String shortLabel, String longLabel, int commandType, int priority )

  7. CommandListener public void commandAction( Command command, Displayable displayable) • Method commandAction() akandipanggilpadasaatsebuah Command dipilih • Variabelpada command adalah reference pada Command yang sudahdipilih • displayable adalah object dari Displayable, dimana Command ditempatkandidalam display tersebutdan action-action jugaterjadidalam display yang sama

  8. Ticker • Animasi Teks yang muncul terus menerus di dalam screen • Ticker(String str)

  9. TextBox • TextBox(String title, String text, int maxSize, int constraints) • constraints

More Related