Android Open Source - TaigIME-android Candidate






From Project

Back to project page TaigIME-android.

License

The source code is released under:

GNU General Public License

If you think the Android project TaigIME-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * //from  ww w  . j  ava2  s  .  c o m
 */
package fr.magistry.taigime;

import java.util.ArrayList;
import java.util.List;

/**
 * @author pierre
 *
 */


public class Candidate {
    /**
     * A possible word given the input
     */

  private TaigiWord mWord;
  private String mInput;
  
  public Candidate(String input, TaigiWord w){
    mWord = w;
    mInput = input;
      
  }
  
  public TaigiWord getWord(){
    return mWord;
  }
  public String getInputed(){
    return mInput;
  }
  
  public static ArrayList<Candidate> buildSuggestions(String input, List<Candidate> liste){
    ArrayList<Candidate> result = new ArrayList<Candidate>();
    result.add(new Candidate(input, new TaigiWord(-1,input,"","")));
    for(Candidate c : liste){
      result.add(c);
    }
    return result;
  } 
  
}




Java Source Code List

fr.magistry.taigime.CandidateView.java
fr.magistry.taigime.Candidate.java
fr.magistry.taigime.CommunityActivity.java
fr.magistry.taigime.Composer.java
fr.magistry.taigime.Converter.java
fr.magistry.taigime.CustomKeyIcon.java
fr.magistry.taigime.MyKeyboard.java
fr.magistry.taigime.OptionsActivity.java
fr.magistry.taigime.TaigIMEService.java
fr.magistry.taigime.TaigiSyl.java
fr.magistry.taigime.TaigiWord.java