Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MIDP: Difference between textfield and textbox

 
Choon-Chern Lim
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to MIDP and I'm currently building test app in PDA to see how it works.

May I know the difference between textfield and textbox besides the fact that textfield can be placed with other components in a form?

If I were to create a display with only a textfield, is "creating a textbox and set it to display" equivalent to "creating a textfield, add to form, set form to display"?

Thanks.
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

-- deleted --

As the following posters mention, my explaination was completely wrong.

I don't know what I was thinking about this morning.. it definitly wasn't
Java.

/Svend Rost
[ September 05, 2005: Message edited by: Svend Rost ]
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Svend is wrong.

TextField and TextBox are both used for text input and even share the same text input constraints.

The difference is that:
- a TextBox can be set as the Displayable using Display.setCurrent()
TextBox extends Screen which in turn extends Displayable.
- TextField can only be used within a Form object
TextField extends Item and Item is the base class for items in a Form.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Svend may have confused TextField with StringItem.

StringItem is meant for static text labels, though also an Item, thus can only be displayed within a Form.
 
Choon-Chern Lim
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response... I think I got the grip on how this textfield and textbox work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic