|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.wishlist.client.forms.FormTools
public final class FormTools
Formtools provides some utilityfunctions to create or update editable fields in Forms.
| Method Summary | |
|---|---|
static void |
clearCommands(javax.microedition.lcdui.Screen screen)
clears the commands of the screen. |
static void |
clearlist(javax.microedition.lcdui.List list)
deletes all items of the wishList. |
static javax.microedition.lcdui.TextField |
createTextField(java.lang.String title,
java.lang.String value,
int len,
int kind)
Creates a Textfield. |
static java.lang.String |
dateToStr(java.util.Date date)
|
static java.lang.String |
dateToStr(int[] calFormat,
java.util.Date date)
|
static javax.microedition.midlet.MIDlet |
getMainMidlet()
|
static java.util.Calendar |
parseCalendar(int[] calformat,
java.lang.String calStr)
parses the calStr. |
static java.util.Calendar |
parseCalendar(java.lang.String calStr)
parses the calStr against the default calformat. |
static void |
setCurrentDisplayable(javax.microedition.lcdui.Displayable displayable)
brings the displayable on top of the screen and activates it. |
static void |
setMainMidlet(javax.microedition.midlet.MIDlet mainMidlet)
|
static void |
setTextFieldString(javax.microedition.lcdui.TextField textField,
java.lang.String value)
Sets the displayed value of Textfield. |
static void |
showAlert(javax.microedition.lcdui.Alert alert)
shows the alert on the screen. |
static void |
showErrorAlert(java.lang.String title,
java.lang.String message)
shows a Alert of type ERROR on the screen. |
static void |
showMessages(javax.microedition.lcdui.Form form,
SafeHashtable messages,
java.lang.String marker)
generates for each message in messages a StringItem and appends it to the form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.microedition.lcdui.TextField createTextField(java.lang.String title,
java.lang.String value,
int len,
int kind)
title - the title of the textfieldvalue - the valuelen - the max. length of the textfieldkind - the kind of the textfield
TextField
public static void setTextFieldString(javax.microedition.lcdui.TextField textField,
java.lang.String value)
textField - the Textfieldvalue - the value for the Textfieldpublic static void clearlist(javax.microedition.lcdui.List list)
list - the list to clearpublic static javax.microedition.midlet.MIDlet getMainMidlet()
public static void setMainMidlet(javax.microedition.midlet.MIDlet mainMidlet)
mainMidlet - the mainMidlet to setpublic static void setCurrentDisplayable(javax.microedition.lcdui.Displayable displayable)
displayable - the new currentDisplayablepublic static void showAlert(javax.microedition.lcdui.Alert alert)
alert - the alert to display
public static void showErrorAlert(java.lang.String title,
java.lang.String message)
title - the title of the alertmessage - the message of the alertpublic static void clearCommands(javax.microedition.lcdui.Screen screen)
screen - the screen to remove the commands from
public static void showMessages(javax.microedition.lcdui.Form form,
SafeHashtable messages,
java.lang.String marker)
form - the form, where to display the messagesmessages - the messages themselvesmarker - the prefix or marker for the messagespublic static java.util.Calendar parseCalendar(java.lang.String calStr)
calStr - the String to parse
public static java.util.Calendar parseCalendar(int[] calformat,
java.lang.String calStr)
calformat - the dateformat of the stringcalStr - the String to parse
public static java.lang.String dateToStr(java.util.Date date)
date - the date to convert
public static java.lang.String dateToStr(int[] calFormat,
java.util.Date date)
calFormat - the format to usedate - the date to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||