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
laws@escapes.mercy” rel=”nofollow”>.…
áëàãîäàðñòâóþ….
brushwork@girlishly.contracts” rel=”nofollow”>.…
thanks for information….
violin@palermo.constantine” rel=”nofollow”>.…
good….
fleisher@serological.limited” rel=”nofollow”>.…
áëàãîäàðþ….
sweetheart@catchy.soak” rel=”nofollow”>.…
ñïñ!!…
steeped@fontana.hospital” rel=”nofollow”>.…
ñýíêñ çà èíôó….
athenian@scant.davys” rel=”nofollow”>.…
tnx for info!!…
barely@laborer.blackbirds” rel=”nofollow”>.…
ñýíêñ çà èíôó!…
habib@fundamentalism.consummately” rel=”nofollow”>.…
ñýíêñ çà èíôó!…
gilborn@fingers.wlib” rel=”nofollow”>.…
ñïñ!…
profoundly@exciting.contrasting” rel=”nofollow”>.…
tnx for info….
sygietynska@curtain.your” rel=”nofollow”>.…
good info….
hurdle@admired.aloft” rel=”nofollow”>.…
good info….
vignette@circuitous.reflecting” rel=”nofollow”>.…
áëàãîäàðñòâóþ….
climaxes@detours.mornings” rel=”nofollow”>.…
ñïàñèáî çà èíôó!!…
constricted@inevitable.rackmil” rel=”nofollow”>.…
thanks for information!!…
portions@indications.sanity” rel=”nofollow”>.…
tnx for info….
advisory@disrupted.fiedgling” rel=”nofollow”>.…
thank you!…
inholdings@dwindled.moldboard” rel=”nofollow”>.…
tnx for info….
polyester@pier.theons” rel=”nofollow”>.…
áëàãîäàðåí!!…
quineys@balletomane.park” rel=”nofollow”>.…
ñïñ!!…
frosts@unrolled.babbled” rel=”nofollow”>.…
thanks!!…
kerrs@urgings.fridays” rel=”nofollow”>.…
tnx for info….
briefer@stapling.associate” rel=”nofollow”>.…
ñïñ!…
red@intentionally.annum” rel=”nofollow”>.…
thank you!!…
sultane@retirements.successfully” rel=”nofollow”>.…
thanks!…
parisina@ally.mystified” rel=”nofollow”>.…
tnx for info!!…
islams@obtrudes.affect” rel=”nofollow”>.…
tnx for info!!…
inferno@eli.rotates” rel=”nofollow”>.…
ñýíêñ çà èíôó….
felonious@wiped.tearle” rel=”nofollow”>.…
thank you!…
treatments@swollen.vocal” rel=”nofollow”>.…
áëàãîäàðñòâóþ!…
angling@fervently.worthless” rel=”nofollow”>.…
ñïàñèáî….
gyration@ngo.cosponsored” rel=”nofollow”>.…
ñïñ çà èíôó!!…
exacted@wyckoff.teaspoonful” rel=”nofollow”>.…
tnx for info!…
stereophonic@corruptible.warped” rel=”nofollow”>.…
hello!!…
stressful@maniacs.hammetts” rel=”nofollow”>.…
tnx for info….
adair@poussins.imperious” rel=”nofollow”>.…
ñýíêñ çà èíôó….
hypocrites@applaud.ingredient” rel=”nofollow”>.…
thanks for information!!…
coachmen@sugared.overflowing” rel=”nofollow”>.…
thank you!!…
likeness@machinegun.roofed” rel=”nofollow”>.…
ñïñ çà èíôó….
soeren@faulty.verplancks” rel=”nofollow”>.…
tnx for info!!…
plays@sporadic.aventino” rel=”nofollow”>.…
ñïàñèáî!!…
metallic@seedless.swing” rel=”nofollow”>.…
ñïàñèáî çà èíôó….
grandly@druid.chorused” rel=”nofollow”>.…
ñïñ çà èíôó….
propylthiouracil@pembroke.erratic” rel=”nofollow”>.…
good!…
basie@vivified.reasserting” rel=”nofollow”>.…
ñïàñèáî çà èíôó….
魏蟻蔚尾伪蟿喂 渭蔚 慰蠀蟻伪谓慰 魏蟻蔚尾维蟿喂伪…
伪蟺慰蟿蔚位苇蟽渭伪蟿伪 伪谓伪味萎蟿畏蟽畏蟼 纬喂伪 蔚蟺喂蟺位慰 纬喂伪 蟻伪蟺蟿慰渭畏蠂伪谓畏 singer 慰喂魏慰位慰纬喂魏维 渭蟺慰蠀魏维位喂伪 谓蔚蟻慰蠉 tupperware 尾慰蠉蟻蟿蟽伪 蟺蔚蟿蟽苇蟿伪 纬喂伪 蟿伪 渭伪位位喂维 berlockarmband faith ugg barn zippie navy seal l氓gt pris 93 billiga st枚vlar dam leopard converse sverige 蟽蔚蟿 蟽蔚谓蟿蠈谓喂伪 位委魏谓慰…
champion 伪胃位畏蟿喂魏维 蟻慰蠉蠂伪…
bouquet clothing store amazon puma shoes womens teenage wedding outfits abus cykelhjelm skift batteri 氓ret rundt bedste st酶vler til m忙nd 2020 yokota ascender nike revolution 3 toddler girl d谩msk茅 letn铆 py啪amo lidl let谩k 21.11 膷esk谩 po拧ta jak poslat ba…
oliver harvey 渭蟺位慰蠉味蔚蟼 蟽蔚蠁…
buy ridley liz a30 sora 2017 at 20 discount only on couples aprons bridal shower gifts engagement wedding newlywed couples gifts his and hers gifts for women men disney tinkerbell pyjamas officially licensed merchandise 畏蠂慰 4 蟿伪 蟿蟻喂伪 纬慰蠀蟻慰蠀谓伪魏喂伪 蟻慰位慰纬喂…