Está en la página 1de 6

www.softgozar.

com



.

:




...

Email : prin3od@yahoo.com

www.softgozar.com
Form Screen
Form
.
.
Form :
------------------------------------------------------------------------------- ChoiceGroup List
Form .
------------------------------------------------------------------------------- DateField .
------------------------------------------------------------------------------- Gauge
.
-------------------------------------------------------------------------------- Image .
-------------------------------------------------------------------------------- StringItem
.
-------------------------------------------------------------------------------- TextField TextBox

.
-------------------------------------------------------------------------------- :
;)public Form(String title
;)public Form(String title, Item[] items

()String title
:
;)display.getDisplay(this
;)"Form form = new Form("Choose an Item
;)display.setCurrent(form

www.softgozar.com
Constroctor

append
.
-------------------------------------------------------------------------------- append
.
;)public int append(String str
;)public int append(Image img
...
:
;"String reshte="Salam
;(form.append)reshte

.
. 0 1
...
-------------------------------------------------------------------------------- delete


public void delete(int itemNum):
int itemNum
. :
;(form.delete)0
.
-------------------------------------------------------------------------------- size
.

;)(public int size


;int tedad
;()tedad=form.size
--------------------------------------------------------------------------------...

www.softgozar.com
ChoiceGroup Form
ChoiceGroup .
Exclusive MultiPle Implicit ()Implicit
:
;)public ChoiceGroup(String label, int choiceType
public ChoiceGroup(String label, int choiceType,
;)String[] stringElements, Image[] imageElements



append
. append
ChoiceGroup . append ChoiceGroup
ChoiceGroup
append ChoiceGroup
!
:
ChoiceGroup choices = new ChoiceGroup)"Method of payment",
;(Choice.EXCLUSIVE
;("Form form = new Form)"Choose an Item
;(choices.append)"Good",null
;(choices.append)"bad",null
;(form.append)choices
null .
delete .
.
getString
getImage .
;)public String getString(int index
;)public Image getImage(int index

getSelectedIndex
.
;)(public int getSelectedIndex

www.softgozar.com
:
public boolean isSelected(int index);
:
ChoiceGroup choices = new ChoiceGroup("Method of
payment",
Choice.EXCLUSIVE);
choices.append("Visa", null);
choices.append("Master Card", null);
choices.append("Amex", null);
Form form = new Form("Choose one");
form.append(choices);
Display.setCurrent(form);
An EXCLUSIVE choice group

A MULTIPLE group choice

...

www.softgozar.com


j2me
. :

j2me.mrforum.net

También podría gustarte