# translation of Tools.po to Japanese
# Noriko Mizumoto <noriko@redhat.com>, 2007.
msgid ""
msgstr ""
"Project-Id-Version: Tools\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-03-22 12:51+0000\n"
"PO-Revision-Date: 2009-02-26 01:45+0900\n"
"Last-Translator: wkzk <waki41@gmail.com>\n"
"Language-Team: Japanese <fedora-trans-ja@redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"

#. Tag: title
#: Gwt.xml:5
#, no-c-format
msgid "Seam and the Google Web Toolkit"
msgstr "SeamとGoogle Web Toolkit"

#. Tag: para
#: Gwt.xml:7
#, no-c-format
msgid ""
"For those that prefer to use the Google Web Toolkit (GWT) to develop dynamic "
"AJAX applications, Seam provides an integration layer that allows GWT "
"widgets to interact directly with Seam components."
msgstr ""
"こういった動的なAjaxアプリケーションをGoogle Web Toolkit (GWT)を使って開発し"
"たいときのために、SeamはGWTウィジェットが直接Seamコンポーネントと連携できる統"
"合レイヤを用意しています。"

#. Tag: para
#: Gwt.xml:12
#, no-c-format
msgid ""
"To use GWT, we assume that you are already familiar with the GWT tools - "
"more information can be found at <ulink url=\"http://code.google.com/"
"webtoolkit/\">http://code.google.com/webtoolkit/</ulink>. This chapter does "
"not attempt to explain how GWT works or how to use it."
msgstr ""
"GWTを使う上でGWT toolsについては既に知っていることを前提にしています。より細"
"かい情報については <ulink url=\"http://code.google.com/webtoolkit/\">http://"
"code.google.com/webtoolkit/</ulink>を参照ください。この章ではGWTがどう機能"
"し、どのように使うかといったところについては説明しません。"

#. Tag: title
#: Gwt.xml:19
#, no-c-format
msgid "Configuration"
msgstr "設定"

#. Tag: para
#: Gwt.xml:21
#, no-c-format
msgid ""
"There is no special configuration required to use GWT in a Seam application, "
"however the Seam resource servlet must be installed. See <xref linkend="
"\"configuration\"/> for details."
msgstr ""
"SeamアプリケーションでGWTを使う場合に特別な設定は必要ではありません、しかし"
"Seamリソースサーブレットが動作するように設定されていなければなりません。詳細"
"は<xref linkend=\"configuration\"/>を参照ください。"

#. Tag: title
#: Gwt.xml:29
#, no-c-format
msgid "Preparing your component"
msgstr "コンポーネントの用意する"

#. Tag: para
#: Gwt.xml:31
#, no-c-format
msgid ""
"The first step in preparing a Seam component to be called via GWT, is to "
"create both synchronous and asynchronous service interfaces for the methods "
"you wish to call. Both of these interfaces should extend the GWT interface "
"<literal>com.google.gwt.user.client.rpc.RemoteService</literal>:"
msgstr ""
"GWT経由で呼ばれるSeamコンポーネントを用意する最初のステップは、呼び出したいメ"
"ソッドをもつ同期、非同期サービス両方のインタフェースを作成することです。両イ"
"ンタフェースともGWTの提供する<literal>com.google.gwt.user.client.rpc."
"RemoteService</literal>を継承します。"

#. Tag: programlisting
#: Gwt.xml:37
#, no-c-format
msgid ""
"<![CDATA[public interface MyService extends RemoteService {\n"
"    public String askIt(String question);      \n"
" }]]>"
msgstr ""
"<![CDATA[public interface MyService extends RemoteService {\n"
"    public String askIt(String question);      \n"
" }]]>"

#. Tag: para
#: Gwt.xml:39
#, no-c-format
msgid ""
"The asynchronous interface should be identical, except that it also contains "
"an additional <literal>AsyncCallback</literal> parameter for each of the "
"methods it declares:"
msgstr ""
"非同期インタフェースは一意であるべきですが、<literal>AsyncCallback</literal> "
"パラメタを各メソッドで宣言している場合は除きます。"

#. Tag: programlisting
#: Gwt.xml:44
#, no-c-format
msgid ""
"<![CDATA[public interface MyServiceAsync extends RemoteService {\n"
"   public void askIt(String question, AsyncCallback callback);\n"
"}]]>"
msgstr ""
"<![CDATA[public interface MyServiceAsync extends RemoteService {\n"
"   public void askIt(String question, AsyncCallback callback);\n"
"}]]>"

#. Tag: para
#: Gwt.xml:46
#, no-c-format
msgid ""
"The asynchronous interface, in this example <literal>MyServiceAsync</"
"literal>, will be implemented by GWT and should never be implemented "
"directly."
msgstr ""
"この<literal>MyServiceAsync</literal>のサンプルのような非同期インタフェースは"
"GWTで実装され、直接的に実装することはありません。"

#. Tag: para
#: Gwt.xml:51
#, no-c-format
msgid ""
"The next step, is to create a Seam component that implements the synchronous "
"interface:"
msgstr ""
"次のステップでは同期インタフェースを実装するSeamコンポーネントを作成します。"

#. Tag: programlisting
#: Gwt.xml:55
#, no-c-format
msgid ""
"<![CDATA[@Name(\"org.jboss.seam.example.remoting.gwt.client.MyService\")\n"
"public class ServiceImpl implements MyService {\n"
"\n"
"   @WebRemote\n"
"   public String askIt(String question) {\n"
"   \n"
"      if (!validate(question)) {\n"
"         throw new IllegalStateException(\"Hey, this shouldn't happen, I "
"checked on the client, \" +\n"
"         \"but its always good to double check.\");\n"
"      }\n"
"      return \"42. Its the real question that you seek now.\";\n"
"   }\n"
"   \n"
"   public boolean validate(String q) {\n"
"      ValidationUtility util = new ValidationUtility();\n"
"      return util.isValid(q);\n"
"   }\n"
"}]]>"
msgstr ""
"<![CDATA[@Name(\"org.jboss.seam.example.remoting.gwt.client.MyService\")\n"
"public class ServiceImpl implements MyService {\n"
"\n"
"   @WebRemote\n"
"   public String askIt(String question) {\n"
"   \n"
"      if (!validate(question)) {\n"
"         throw new IllegalStateException(\"Hey, this shouldn't happen, I "
"checked on the client, \" +\n"
"         \"but its always good to double check.\");\n"
"      }\n"
"      return \"42. Its the real question that you seek now.\";\n"
"   }\n"
"   \n"
"   public boolean validate(String q) {\n"
"      ValidationUtility util = new ValidationUtility();\n"
"      return util.isValid(q);\n"
"   }\n"
"}]]>"

#. Tag: para
#: Gwt.xml:57
#, no-c-format
msgid ""
"The name of the seam component <emphasis>must</emphasis> match the fully "
"qualified name of the GWT client interface (as shown), or the seam resource "
"servlet will not be able to find it when a client makes a GWT call. The "
"methods that are to be made accessible via GWT also need to be annotated "
"with the <literal>@WebRemote</literal> annotation."
msgstr ""

#. Tag: title
#: Gwt.xml:67
#, no-c-format
msgid "Hooking up a GWT widget to the Seam component"
msgstr "GWTウィジェットを Seam コンポーネントに関連づける"

#. Tag: para
#: Gwt.xml:69
#, no-c-format
msgid ""
"The next step, is to write a method that returns the asynchronous interface "
"to the component. This method can be located inside the widget class, and "
"will be used by the widget to obtain a reference to the asynchronous client "
"stub:"
msgstr ""
"次のステップは、コンポーネントに非同期インタフェースを返すメソッドを書きま"
"す。このメソッドはウィジェットクラスで用意し、非同期クライアントのスタブへの"
"参照を取得するために利用されます。"

#. Tag: programlisting
#: Gwt.xml:75
#, no-c-format
msgid ""
"<![CDATA[private MyServiceAsync getService() {       \n"
"   String endpointURL = GWT.getModuleBaseURL() + \"seam/resource/gwt"
"\";      \n"
"      \n"
"   MyServiceAsync svc = (MyServiceAsync) GWT.create(MyService.class);\n"
"   ((ServiceDefTarget) svc).setServiceEntryPoint(endpointURL);\n"
"   return svc;     \n"
"}]]>"
msgstr ""
"<![CDATA[private MyServiceAsync getService() {       \n"
"   String endpointURL = GWT.getModuleBaseURL() + \"seam/resource/gwt"
"\";      \n"
"      \n"
"   MyServiceAsync svc = (MyServiceAsync) GWT.create(MyService.class);\n"
"   ((ServiceDefTarget) svc).setServiceEntryPoint(endpointURL);\n"
"   return svc;     \n"
"}]]>"

#. Tag: para
#: Gwt.xml:77
#, no-c-format
msgid ""
"The final step is to write the widget code that invokes the method on the "
"client stub. The following example creates a simple user interface with a "
"label, text input and a button:"
msgstr ""
"最後のステップはクライアントスタブのメソッドを呼び出すウィジェットのコードを"
"書きます。次のサンプルではラベルとテキスト入力フィールドとボタンで構成される"
"画面を作成します。"

#. Tag: programlisting
#: Gwt.xml:82
#, no-c-format
msgid ""
"<![CDATA[\n"
"public class AskQuestionWidget extends Composite {\n"
"   private AbsolutePanel panel = new AbsolutePanel();\n"
"   \n"
"   public AskQuestionWidget() {      \n"
"      Label lbl = new Label(\"OK, what do you want to know?\");\n"
"      panel.add(lbl);\n"
"      final TextBox box = new TextBox();\n"
"      box.setText(\"What is the meaning of life?\");\n"
"      panel.add(box);\n"
"      Button ok = new Button(\"Ask\");\n"
"      ok.addClickListener(new ClickListener() {\n"
"         public void onClick(Widget w) {\n"
"            ValidationUtility valid = new ValidationUtility();\n"
"            if (!valid.isValid(box.getText())) {\n"
"               Window.alert(\"A question has to end with a '?'\");\n"
"            } else {\n"
"               askServer(box.getText());\n"
"            } \n"
"         }\n"
"      });\n"
"      panel.add(ok);\n"
"      \n"
"      initWidget(panel);\n"
"   }\n"
"\n"
"   private void askServer(String text) {\n"
"      getService().askIt(text, new AsyncCallback() {\n"
"         public void onFailure(Throwable t) {\n"
"            Window.alert(t.getMessage());\n"
"         }\n"
"\n"
"         public void onSuccess(Object data) {\n"
"            Window.alert((String) data);\n"
"         }         \n"
"      });      \n"
"   }\n"
"   \n"
"   ...]]>"
msgstr ""
"<![CDATA[\n"
"public class AskQuestionWidget extends Composite {\n"
"   private AbsolutePanel panel = new AbsolutePanel();\n"
"   \n"
"   public AskQuestionWidget() {      \n"
"      Label lbl = new Label(\"OK, what do you want to know?\");\n"
"      panel.add(lbl);\n"
"      final TextBox box = new TextBox();\n"
"      box.setText(\"What is the meaning of life?\");\n"
"      panel.add(box);\n"
"      Button ok = new Button(\"Ask\");\n"
"      ok.addClickListener(new ClickListener() {\n"
"         public void onClick(Widget w) {\n"
"            ValidationUtility valid = new ValidationUtility();\n"
"            if (!valid.isValid(box.getText())) {\n"
"               Window.alert(\"A question has to end with a '?'\");\n"
"            } else {\n"
"               askServer(box.getText());\n"
"            } \n"
"         }\n"
"      });\n"
"      panel.add(ok);\n"
"      \n"
"      initWidget(panel);\n"
"   }\n"
"\n"
"   private void askServer(String text) {\n"
"      getService().askIt(text, new AsyncCallback() {\n"
"         public void onFailure(Throwable t) {\n"
"            Window.alert(t.getMessage());\n"
"         }\n"
"\n"
"         public void onSuccess(Object data) {\n"
"            Window.alert((String) data);\n"
"         }         \n"
"      });      \n"
"   }\n"
"   \n"
"   ...]]>"

#. Tag: para
#: Gwt.xml:85
#, no-c-format
msgid ""
"When clicked, the button invokes the <literal>askServer()</literal> method "
"passing the contents of the input text (in this example, validation is also "
"performed to ensure that the input is a valid question). The "
"<literal>askServer()</literal> method acquires a reference to the "
"asynchronous client stub (returned by the <literal>getService()</literal> "
"method) and invokes the <literal>askIt()</literal> method. The result (or "
"error message if the call fails) is shown in an alert window."
msgstr ""
"ボタンをクリックすると<literal>askServer()</literal>メソッドを呼び出し、入力"
"テキストを渡します（この例では、入力値が正しい質問か確認するバリデーションも"
"行なわれます）。<literal>askServer()</literal>メソッドは非同期クライアントス"
"タブ(<literal>getService()</literal>メソッドで返される)への参照を取得し、"
"<literal>askIt()</literal>メソッドを呼び出します。その結果 (もしくは呼び出し"
"失敗時のエラーメッセージ)はアラートメッセージとして表示されます。"

#. Tag: para
#: Gwt.xml:102
#, no-c-format
msgid ""
"The complete code for this example can be found in the Seam distribution in "
"the <literal>examples/remoting/gwt</literal> directory."
msgstr ""
"このサンプルの完全なコードはSeamのインストールディレクトリ内の "
"<literal>examples/remoting/gwt</literal>ディレクトリにあります。"

#. Tag: title
#: Gwt.xml:109
#, no-c-format
msgid "GWT Ant Targets"
msgstr "GWTとAntターゲット"

#. Tag: para
#: Gwt.xml:111
#, no-c-format
msgid ""
"For deployment of GWT apps, there is a compile-to-Javascript step (which "
"compacts and obfuscates the code). There is an ant utility which can be used "
"instead of the command line or GUI utility that GWT provides. To use this, "
"you will need to have the ant task jar in your ant classpath, as well as GWT "
"downloaded (which you will need for hosted mode anyway)."
msgstr ""
"GWTアプリのデプロイにはコンパイル-Javascriptステップ(コードをコンパクトにして"
"難読化します）があります。そしてコマンドラインの代わりに使えるantユーティリ"
"ティやGWT標準のGUIユーティリティがあります。これらを使うためにはant-taskのjar"
"とダウンロードしてあるGWT(これはホストモードのときに必要）がクラスパスに存在"
"していなければなりません"

#. Tag: para
#: Gwt.xml:117
#, no-c-format
msgid "Then, in your ant file, place (near the top of your ant file):"
msgstr "次にそれらをantファイルの最初の方に置きます。"

#. Tag: programlisting
#: Gwt.xml:121
#, no-c-format
msgid ""
"<![CDATA[<taskdef uri=\"antlib:de.samaflost.gwttasks\"\n"
"   resource=\"de/samaflost/gwttasks/antlib.xml\"\n"
"   classpath=\"./lib/gwttasks.jar\"/>\n"
"   \n"
"   <property file=\"build.properties\"/>]]>"
msgstr ""
"<![CDATA[<taskdef uri=\"antlib:de.samaflost.gwttasks\"\n"
"   resource=\"de/samaflost/gwttasks/antlib.xml\"\n"
"   classpath=\"./lib/gwttasks.jar\"/>\n"
"   \n"
"   <property file=\"build.properties\"/>]]>"

#. Tag: para
#: Gwt.xml:123
#, no-c-format
msgid ""
"Create a <literal>build.properties</literal> file, which has the contents:"
msgstr ""
"その内容を持つ、<literal>build.properties</literal>ファイルを作成します。"

#. Tag: programlisting
#: Gwt.xml:127
#, no-c-format
msgid "<![CDATA[gwt.home=/gwt_home_dir]]>"
msgstr "<![CDATA[gwt.home=/gwt_home_dir]]>"

#. Tag: para
#: Gwt.xml:129
#, no-c-format
msgid ""
"This of course should point to the directory where GWT is installed. Then to "
"use it, create a target:"
msgstr ""
"もちろん、これはGWTがインストールされた場所を直接指しています。次にターゲット"
"を作成します。"

#. Tag: programlisting
#: Gwt.xml:133
#, no-c-format
msgid ""
"<![CDATA[<!-- the following are are handy utilities for doing GWT "
"development.\n"
"   To use GWT, you will of course need to download GWT seperately -->\n"
"   <target name=\"gwt-compile\">\n"
"      <!-- in this case, we are \"re homing\" the gwt generated stuff, so in "
"this case\n"
"      we can only have one GWT module - we are doing this deliberately to "
"keep the URL short -->\n"
"      <delete>\n"
"         <fileset dir=\"view\"/>\n"
"      </delete>\n"
"      <gwt:compile outDir=\"build/gwt\"\n"
"         gwtHome=\"${gwt.home}\"\n"
"         classBase=\"${gwt.module.name}\"\n"
"         sourceclasspath=\"src\"/>\n"
"      <copy todir=\"view\">\n"
"         <fileset dir=\"build/gwt/${gwt.module.name}\"/>\n"
"      </copy>\n"
"   </target>]]>"
msgstr ""
"<![CDATA[<!-- GWT開発で便利なユーティリティです.\n"
"   GWTを使う場合は当然ですがGWTを個別にダウンロードする必要があります -->\n"
"   <target name=\"gwt-compile\">\n"
"      <!-- この場合、 GWT生成リソースを \"re homing\" していますので\n"
"      GWTモジュールだけ持っています - URLをシンプルにするために行なっていま"
"す -->\n"
"      <delete>\n"
"         <fileset dir=\"view\"/>\n"
"      </delete>\n"
"      <gwt:compile outDir=\"build/gwt\"\n"
"         gwtHome=\"${gwt.home}\"\n"
"         classBase=\"${gwt.module.name}\"\n"
"         sourceclasspath=\"src\"/>\n"
"      <copy todir=\"view\">\n"
"         <fileset dir=\"build/gwt/${gwt.module.name}\"/>\n"
"      </copy>\n"
"   </target>]]>"

#. Tag: para
#: Gwt.xml:135
#, no-c-format
msgid ""
"This target when called will compile the GWT application, and copy it to the "
"specified directory (which would be in the <literal>webapp</literal> part of "
"your war - remember GWT generates HTML and Javascript artifacts). You never "
"edit the resulting code that <literal>gwt-compile</literal> generates - you "
"always edit in the GWT source directory."
msgstr ""
"呼ばれたときにこのターゲットはGWTアプリケーションをコンパイルし、そのコンパイ"
"ル結果を指定されたディレクトリ（warの<literal>webapp</literal>にある. GWTは"
"HTMLとJavascriptも生成するので憶えておいてください）にコピーします。"
"<literal>gwt-compile</literal> が生成するコードは一切編集しません、編集する時"
"はGWTソースディレクトリのリソースにて行います。"

#. Tag: para
#: Gwt.xml:142
#, no-c-format
msgid ""
"Remember that GWT comes with a hosted mode browser - you should be using "
"that if you are developing with GWT. If you aren't using that, and are just "
"compiling it each time, you aren't getting the most out of the toolkit (in "
"fact, if you can't or won't use the hosted mode browser, I would go far as "
"to say you should NOT be using GWT at all - it's that valuable!)."
msgstr ""
"GWTはホストモードブラウザがあることを覚えておいてください。GWT開発をしている"
"のであれば使っているべきです。もし使ってなく、毎回コンパイルをしているといっ"
"た場合、ツールを最大限に活用できていません。(本音でいうと、もしホストモードを"
"使えないもしくは使わないのであれば、絶対GWTを使うべきではない、とまで言い切り"
"ます。それぐらい価値のあるものだからです）"

#~ msgid ""
#~ "The methods that should be made accessible via GWT need to be annotated "
#~ "with the <literal>@WebRemote</literal> annotation, which is required for "
#~ "all web-remoteable methods."
#~ msgstr ""
#~ "GWT経由でアクセス可能なメソッドは、リモートアクセスされるメソッドというこ"
#~ "とを指定する<literal>@WebRemote</literal>アノテーションが宣言されていなけ"
#~ "ればなりません。"
