私は問題の解決策を得ました。
最初に、デバイスは、 "javax.microedition.lcdui.CustomItem"クラスのgetInteractionModes()メソッドによってトラバースをサポートしているかどうかを確認しています。
トラバースがサポートされていない場合は、コマンドボタンを追加し、ボタンのクリックイベント処理(public void commandAction(Command c、Item item))内でトラバース操作を実装します。
装置支持トラバースを見つけるかどうかは、次のコードスニペット上記コードスニペットで
int supported_interaction_modes=this.getInteractionModes();
boolean horizontal_interaction,vertical_interaction;
if((supported_interaction_modes&CustomItem.TRAVERSE_HORIZONTAL)!=0)
horizontal_interaction=true;
else
horizontal_interaction=false;
if((supported_interaction_modes&CustomItem.TRAVERSE_VERTICAL)!=0)
vertical_interaction=true;
else
vertical_interaction=false;
に示されている「この」はCustomItemの(javax.microedition.lcdui.CustomItem)の子クラスをいいますCustomItem操作のユーザー定義クラスです。