1053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project/*
2053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * Copyright (C) 2008,2009  OMRON SOFTWARE Co., Ltd.
3053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project *
4053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License");
5053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * you may not use this file except in compliance with the License.
6053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * You may obtain a copy of the License at
7053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project *
8053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project *      http://www.apache.org/licenses/LICENSE-2.0
9053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project *
10053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * Unless required by applicable law or agreed to in writing, software
11053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS,
12053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * See the License for the specific language governing permissions and
14053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project * limitations under the License.
15053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project */
16053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
17053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Projectpackage jp.co.omronsoft.openwnn.JAJP;
18053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
19053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Projectimport jp.co.omronsoft.openwnn.*;
20053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Projectimport android.view.View;
21053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
22053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project/**
23d56eddfd5e0f193359f93e7ef665338cace9e2e9Daisuke Miyakawa * The user dictionary's word editor class for Japanese IME.
24053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project *
25d56eddfd5e0f193359f93e7ef665338cace9e2e9Daisuke Miyakawa * @author Copyright (C) 2009 OMRON SOFTWARE CO., LTD.  All Rights Reserved.
26053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project */
27053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Projectpublic class UserDictionaryToolsEditJAJP extends UserDictionaryToolsEdit {
28053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    /**
29053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     * Constructor
30053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     */
31053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    public UserDictionaryToolsEditJAJP() {
32053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        super();
33053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        initialize();
34053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    }
35053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
36053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    /**
37053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     * Constructor
38053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     *
39053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     * @param focusView         The view
40053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     * @param focusPairView     The pair view
41053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     */
42f96267ad0d85ede52c300ae5456d7e4ecb50915cDaisuke Miyakawa    public UserDictionaryToolsEditJAJP(View focusView, View focusPairView) {
43f96267ad0d85ede52c300ae5456d7e4ecb50915cDaisuke Miyakawa        super(focusView, focusPairView);
44053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        initialize();
45053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    }
46053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
47053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    /**
48053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     * Initialize the parameters
49053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project     */
50053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    public void initialize() {
51053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        mListViewName = "jp.co.omronsoft.openwnn.JAJP.UserDictionaryToolsListJAJP";
52053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        mPackageName  = "jp.co.omronsoft.openwnn";
53053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    }
54053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
55053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    /** @see jp.co.omronsoft.openwnn.UserDictionaryToolsEdit#sendEventToIME */
56053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    @Override protected boolean sendEventToIME(OpenWnnEvent ev) {
57053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        try {
58053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project            return OpenWnnJAJP.getInstance().onEvent(ev);
59053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        } catch (Exception ex) {
60053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project            /* do nothing if an error occurs */
61053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        }
62053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        return false;
63053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    }
64053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project
65053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    /** @see jp.co.omronsoft.openwnn.UserDictionaryToolsEdit#createUserDictionaryToolsList */
66053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    @Override protected UserDictionaryToolsList createUserDictionaryToolsList() {
67053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project        return new UserDictionaryToolsListJAJP();
68053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project    }
69053d50935e0e311286543bd7c535ae2c863c0deThe Android Open Source Project}
70