protected void initModes(){
  addInputMode(QWERTY_MODE,DEFAULT_QWERTY);
  addInputMode(NUMBERS_SYMBOLS_MODE,DEFAULT_NUMBERS_SYMBOLS);
  addInputMode(SYMBOLS_MODE,DEFAULT_SYMBOLS);
  addInputMode(NUMBERS_MODE,DEFAULT_NUMBERS);
  if (defaultInputModes != null) {
    Enumeration e=defaultInputModes.keys();
    while (e.hasMoreElements()) {
      String key=(String)e.nextElement();
      addInputMode(key,(String[][])defaultInputModes.get(key));
    }
  }
}

protected void initModes ( ) { addInputMode ( QWERTY_MODE , DEFAULT_QWERTY ) ; addInputMode ( NUMBERS_SYMBOLS_MODE , DEFAULT_NUMBERS_SYMBOLS ) ; addInputMode ( SYMBOLS_MODE , DEFAULT_SYMBOLS ) ; addInputMode ( NUMBERS_MODE , DEFAULT_NUMBERS ) ; if ( defaultInputModes != null ) { Enumeration e = defaultInputModes . keys ( ) ; while ( e . hasMoreElements ( ) ) { String key = ( String ) e . nextElement ( ) ; addInputMode ( key , ( String [ ] [ ] ) defaultInputModes . get ( key ) ) ; } } }
init all virtual keyboard modes , such as qwerty_mode , numbers_symbols_mode . . . to add an addtitional mode a developer needs to override this method and add a mode by calling addinputmode method
