こんにちは、私は 1 つの問題で立ち往生しています。ListField
1つの画面で実装しました。画面の上に、私はHorizontalFieldManager
を保持するために 1 つを使用しましたTitleLabel and Two Butons
。リストフィールドのすべての行に画面をプッシュしました。私の問題は、私が4行目にいて、ボタンをクリックしたときに必要なものを選択したと仮定すると、ボタンは機能しましたが、4行目に実装した画面もそれを回避する方法が表示されます。ストーム 9550 シミュレーターでテストし、Blackberry eclipse plugin5.0 を使用しています。アイデアが不足しています。助けてください。
ナビクリックはこんな感じ
protected boolean navigationClick(int status, int time) {
selectListAndButton();
return true;
}
// そしてここに selectListAndButton メソッドがあります
private selectListAndButton(){
Field field = getFieldWithFocus().getLeafFieldWithFocus();
if(field == backCustomButton){
//Popped the active Screen
}else if(field == saveCustomButton){
//Saving some Data to the Database And pushing another Screen here
// problem comes here if i am at 2nd row of the listfield and selects
something from there and clicked on the button the screen which was
implemented at 2nd row also appears
}
else if (_list.getSelectedIndex() == 0){
//Called a date picker
}
else if (_list.getSelectedIndex() == 1){
//Pushed some another screen
}
else if (_list.getSelectedIndex() == ){
//Pushed some another screen
}