Package net.rim.device.api.ui.component

Examples of net.rim.device.api.ui.component.ChoiceField


   
    ObjectChoiceField categoryChoiceField = new ObjectChoiceField("", categories, 0, Field.FIELD_LEFT);
    categoryChoiceField.setChangeListener(new FieldChangeListener() {     
      public void fieldChanged(Field field, int context) {
        if (context == ChoiceField.CONTEXT_CHANGE_OPTION) {
          ChoiceField choiceField = (ChoiceField) field;
          int index = choiceField.getSelectedIndex();
          if (index >= 0) {
            Category category = (Category) choiceField.getChoice(index);
            displayCategory(category);
          }
        }
      }
    });
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.component.ChoiceField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.