Monday, July 13, 2009

Bitmap Field events, Listeners in Blackberry

bmfDeposit = new BitmapField(Bitmap.getBitmapResource("Deposit.png"),FOCUSABLE)
{
 
   protected void onFocus(int direction) {
setBitmap(Bitmap.getBitmapResource("View.png"));
}
protected void onUnfocus() {
setBitmap(Bitmap.getBitmapResource("Deposit.png"));
}
protected boolean trackwheelClick(int status, int time) {
UiApplication.getUiApplication().pushScreen(new frmDepositMain());
return true;
}
protected boolean keyChar(char character, int status, int time) {
if (Characters.ENTER==character) {
UiApplication.getUiApplication().pushScreen(new frmDepositMain());
}
return true;
}
};

Post a Comment