12-11-2008 09:05 AM
hi,
i have a code like this
-------------
class HellWorldScreen extends MainScreen{
...
public HellWorldScreen(String pageTitle,String btnLabel,int track,hell obj){
....
myButt = new MyButton(btnLabel,track,obj);
add(myButt);
}
}
...
private class MyButton extends ButtonField implements FieldChangeListener {
...
public MyButton(String btnLabel,int track,hell obj) { ... }
public void fieldChanged(Field field,int context) { ... }
...
}
...
so how can i use CONSUME_CLICK here
i have made button's private class so i cudn't set CONSUME_CLICK
please help me
Solved! Go to Solution.
12-11-2008 09:31 AM - edited 12-11-2008 09:32 AM
in your constructor, call the super constructor with the "style" parameter.
super(btnLabel,ButtonField.CONSUME_CLICK)
12-11-2008 09:41 AM