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
Purchase@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..…
Buygeneric drugs…
Order@Generic.Acai” rel=”nofollow”>..…
Buywithout prescription…
Order@Acai.Without.Prescription” rel=”nofollow”>……
Buynow…
Buy@Coral.Calcium.Online” rel=”nofollow”>.…
Buygeneric drugs…
Order@Cheap.Coral.Calcium” rel=”nofollow”>……
Buynow…
Order@Discount.Coral.Calcium” rel=”nofollow”>..…
Buygeneric drugs…
Purchase@Cheap.Abana” rel=”nofollow”>..…
Buyno prescription…
Purchase@Abilify.Without.Prescription” rel=”nofollow”>.…
Buynow…
Buy@Coral.Calcium.Online” rel=”nofollow”>..…
Buywithout prescription…
Buy@Cheap.Coral.Calcium” rel=”nofollow”>..…
Buyno prescription…
Order@Coral.Calcium.Online” rel=”nofollow”>.…
Buygeneric meds…
Buy@Abana.Online” rel=”nofollow”>.…
Buynow…
Order@Abana.Online” rel=”nofollow”>.…
Buygeneric drugs…
Purchase@Cheap.Abilify” rel=”nofollow”>.…
Buyit now…
Get@Abilify.Online” rel=”nofollow”>..…
Buygeneric drugs…
Order@Abilify.Without.Prescription” rel=”nofollow”>.…
Buynow…
Purchase@Generic.Abilify” rel=”nofollow”>……
Buywithout prescription…
Cheap@Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>.…
Buygeneric drugs…
Generic@Abilify.5mg.10mg.15mg.20mg.30mg.Without.Prescription” rel=”nofollow”>.…
Buynow…
Buy@Acai.Online” rel=”nofollow”>……
Buyno prescription…
Buy@Acai.Online” rel=”nofollow”>.…
Buyit now…
Buy@Cheap.Acai” rel=”nofollow”>……
Buygeneric drugs…
Buy@Cheap.Acai” rel=”nofollow”>.…
Buywithout prescription…
Buy@Discount.Acai” rel=”nofollow”>……
Buyit now…
Order@Acai.Online” rel=”nofollow”>……
Buynow it…
Order@Acai.Online” rel=”nofollow”>……
Buyit now…
Order@Discount.Acai” rel=”nofollow”>……
Buynow…
Order@Discount.Acai” rel=”nofollow”>..…
Buywithout prescription…
Purchase@Discount.Acai” rel=”nofollow”>……
Buygeneric drugs…
Cheap@Acai.Online” rel=”nofollow”>.…
Buygeneric meds…
Buy@Generic.Acai” rel=”nofollow”>.…
Buyit now…
Order@Acai.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs…
Cheap@Acai.500mg” rel=”nofollow”>..…
Buygeneric pills…
Order@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric drugs…
Order@Cheap.Energy.Boost” rel=”nofollow”>.…
Buynow it…
Purchase@Cheap.Energy.Boost” rel=”nofollow”>.…
Buyno prescription…
Buy@Cheap.Accupril” rel=”nofollow”>.…
Buygeneric meds…
Order@Discount.Accupril” rel=”nofollow”>.…
Buygeneric drugs…
Order@Accutane.Online” rel=”nofollow”>.…
Buynow it…
Buy@Accutane.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs…
Generic@Accutane.10mg.20mg.Without.Prescription” rel=”nofollow”>.…
Buynow it…
Buy@Aciphex.Online” rel=”nofollow”>.…
Buygeneric pills…
Buy@Cheap.Aciphex” rel=”nofollow”>.…
Buygeneric meds…
Buy@Generic.Aciphex.Without.Prescription” rel=”nofollow”>.…
Buyno prescription…
Purchase@Actonel.Without.Prescription” rel=”nofollow”>..…
Buyit now pqh…
Cheap@Actonel.Without.Prescription” rel=”nofollow”>……
Buydrugs without prescription xji…
Cheap@Actonel.Without.Prescription” rel=”nofollow”>……
Buygeneric pills cvz…
Purchase@Generic.Actonel.35mg” rel=”nofollow”>.…
Buygeneric meds qwt…
Buy@Actoplus.Met.Online” rel=”nofollow”>……
Buygeneric drugs vwv…
Buy@Cheap.Actoplus.Met” rel=”nofollow”>.…
Buynow it uvp…