We missed having a DateField in LWUIT, the Calendar is a great start but it looked a little strange on some phones and we needed something simpler, not to mention a time field.
To do this we extended the TextArea class to create our own MobrizDateField. When the user clicks on this the system fires up a standard LCDUI form with a DateField on it (DateForm). The user can then use the native time/date features of the phone to complete the date/time
To tell LWUIT to intercept the DateField calls we extended the GameCanvasImplementation to create our own MobrizMidpImplementation. This overrides the editString method and launches the DateForm if the MobrizDateField is being used. We needed a MobrizImplementationFactory to deliver this too.
To tell LWUIT to use the new MobrizMidpImplementation add the following to your code where you initailise the UI.
..
ImplementationFactory.setInstance(new MobrizImplementationFactory());
Display.init(this.mobrizMidlet);
..
Use the new MobrizDateField just like a TextArea:
..
MobrizDateField timeField = new MobrizDateField(dtLong + "", 10,MobrizDateField.TIME, "");
form.addComponent(timeField) ;
..
Things to note:
- The MobrizDateField takes a string or a long expressed as a string in the constructor .. this is a bit crap but suited us for our app. you may want to change it match to LCDUI datefield exactly.
- The MobrizDateField actually extends MobrizTextArea which is a TextArea that responds to any key press.
Would welcome any comments or improvments!!!
As ever this code is provided without warranty – user at you own risk.
Here is the source
Cheap@Actoplus.Met.Online” rel=”nofollow”>……
Buydrugs without prescription pls…
Cheap@Actos.15mg.30mg” rel=”nofollow”>..…
Buygeneric drugs aoq…
Generic@Actos.15mg.30mg.Without.Prescription” rel=”nofollow”>……
Buygeneric pills isf…
Order@Acular.Online” rel=”nofollow”>.…
Buynow it xvf…
Purchase@Discount.Acular” rel=”nofollow”>……
Buydrugs without prescription pwx…
Order@Cheap.Adalat” rel=”nofollow”>……
Buygeneric pills rsz…
Order@Discount.Coral.Calcium” rel=”nofollow”>..…
Buyit now bmf…
Buy@Discount.Abana” rel=”nofollow”>.…
Buygeneric pills lue…
Buy@Generic.Abilify.Without.Prescription” rel=”nofollow”>……
Buygeneric meds rjn…
Purchase@Abilify.Without.Prescription” rel=”nofollow”>……
Buygeneric drugs fmo…
Purchase@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..…
Buywithout prescription yen…
Generic@Abilify.5mg.10mg.15mg.20mg.30mg.Without.Prescription” rel=”nofollow”>..…
Buydrugs without prescription faj…
Purchase@Acai.Online” rel=”nofollow”>.…
Buyit now ojb…
Buy@Generic.Acai” rel=”nofollow”>.…
Buygeneric drugs mby…
Buy@Acai.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs itj…
Order@Generic.Acai” rel=”nofollow”>..…
Buyno prescription wkp…
Cheap@Generic.Acai” rel=”nofollow”>……
Buydrugs without prescription vrg…
Buy@Generic.Acai.500mg” rel=”nofollow”>.…
Buygeneric drugs nih…
Cheap@Generic.Acai.500mg” rel=”nofollow”>..…
Buyno prescription tao…
Buy@Energy.Boost.Online” rel=”nofollow”>..…
Buynow it cey…
Order@Discount.Energy.Boost” rel=”nofollow”>..…
Buyno prescription gdt…
accupril@and.muscle.pain” rel=”nofollow”>……
Buynow it zdg…
Purchase@Cheap.Accupril” rel=”nofollow”>..…
Buyit now irl…
Purchase@Discount.Accupril” rel=”nofollow”>……
Buygeneric meds svb…
Cheap@Accutane.Online” rel=”nofollow”>.…
Buynow it lmg…
Purchase@Generic.Accutane” rel=”nofollow”>.…
Buygeneric drugs axm…
Buy@Cheap.Aciphex” rel=”nofollow”>……
Buywithout prescription ccw…
Buy@Generic.Aciphex.Without.Prescription” rel=”nofollow”>……
Buyit now knc…
Cheap@Aciphex.Without.Prescription” rel=”nofollow”>……
Buyit now sge…
Purchase@Discount.Acomplia” rel=”nofollow”>..…
Buygeneric drugs ajd…
Purchase@Discount.Acomplia” rel=”nofollow”>.…
Buynow tqa…
Purchase@Discount.Acomplia” rel=”nofollow”>.…
Buygeneric drugs mml…
Cheap@Acomplia.Online” rel=”nofollow”>..…
Buygeneric drugs nvr…
Buy@Actonel.Online” rel=”nofollow”>..…
Buydrugs without prescription hak…
Purchase@Actonel.Online” rel=”nofollow”>……
Buygeneric drugs vbr…
Purchase@Cheap.Actonel” rel=”nofollow”>.…
Buydrugs without prescription xab…
Buy@Generic.Actonel.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs ouw…
Order@Actonel.Without.Prescription” rel=”nofollow”>..…
Buyno prescription jwi…
Buy@Cheap.Advair” rel=”nofollow”>.…
Buygeneric drugs hwi…
Purchase@Advair.Online” rel=”nofollow”>..…
Buyno prescription jui…
Buy@Generic.Advair.25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg” rel=”nofollow”>..< …
Buyno prescription lka…
Get@Aggrenox.Online” rel=”nofollow”>……
Buynow fjl…
Order@Cheap.Albenza” rel=”nofollow”>……
Buynow it sxk…
abilify@and.weight.gain” rel=”nofollow”>……
Buyno prescription…
aciphex@cancer.buy” rel=”nofollow”>..…
Buygeneric drugs…
risperdal@vs.abilify” rel=”nofollow”>.…
Buygeneric drugs…
abilify@and.sleep.issues” rel=”nofollow”>..…
Buydrugs without prescription…
can@you.get.acai.berries.in.the.grocery.store” rel=”nofollow”>.…
Buydrugs without prescription…
allegra@generic.purchase” rel=”nofollow”>……
Buynow…
aloe@vera.juice.for.sale” rel=”nofollow”>..…
Buyit now…