blackberry - Datefield not editable -


i'm using j2me polish 2.1.2 , trying add net.rim.device.api.ui.component.datefield blackberry tableitem. displays correctly, after setting editable, can't change on it. has else had experience?

this = tableitem

 tfinput = new datefield(_meta.title, system.currenttimemillis(), mode);  //#style textinputcell     this.set(0, 0, tfinput);           this.setselectionmode(tableitem.selection_mode_cell); 

edit: reason doing because of issues datefield.time inputmode on blackberry if use j2me polish's datefield.

workaround problem extend j2me polish's datefield , intercept when setting mode time follows :

public class mydatefield extends datefield{      public mydatefield (string title, int mode){         super(title, mode);         // blackberry has bug in time mode, going date time instead , formatting date         if (mode == datefield.time){             super.setinputmode(datefield.date_time);             super.setdateformatpattern("hh:mm");         }     } } 

now can use date_time time.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -