01-29-2011 05:45 AM
hiiii frds
in my application i want add a group of RadioButtons to the dialogBox......... i can add TextField and Editfield and many field but i unable to add Radiobuttons please give sample ..
thank you
Regards
Satish kumar
01-29-2011 07:21 AM
Hi Satish,
What you're trying to achieve should be possible. Can you post a code sample for us?
01-29-2011 07:25 AM
package com.logictreeit.party;
import java.util.Vector;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.ListField;
import net.rim.device.api.ui.container.MainScreen;
public class EventsDisplayScreen extends MainScreen {
private ListField eventListField;
private Vector eventList;
// RadioButtonGroup radioButtonGroup;
public EventsDisplayScreen(final Vector eventList){
eventListField = new ListField();
this.eventList = eventList;
MenuItem filterMenu = new MenuItem("Filter", 0, 0) {
public void run(){
// here i want get Dialog with RadioButtonFields is it possible.......
}
};
ComplexListCallBack complexListCallback = new ComplexListCallBack(eventListField, eventList);
eventListField.setSize(eventList.size());
eventListField.setCallback(complexListCallback);
add(eventListField);
addMenuItem(filterMenu);
}
protected boolean navigationClick(int status, int time) {
Field field = this.getFieldWithFocus();
if(field.equals(eventListField)){
int index = eventListField.getSelectedIndex();
UiApplication.getUiApplication().pushScreen(new DetailPage((Event) eventList.elementAt(index)));
}
return super.navigationClick(status, time);
}
}
01-31-2011 12:25 AM
i sand my code to you please give reply to me ...
please give me the answer fast...