| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| |
| <!--"> |
| <#assign licensePrefix = ""> |
| <#assign licenseLast = "--> |
| <!--<#assign licenseFirst = "--> |
| <!--"> |
| <#include "${project.licensePath}"> |
| --> |
| <html> |
| <head> |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| <title>${TR_displayName}</title> |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| </head> |
| <body> |
| <div> |
| <section data-bind="step: { 'id' : 'init', text : 'Initial Page'}" > |
| <p> |
| 移植可能なHTMLでUIを記述し、NetBeansまたはWebで表示します。詳細は、<a href="http://wiki.netbeans.org/HtmlUIForTemplates">NetBeansのWiki</a>を参照してください... |
| </p> |
| </section> |
| |
| <section data-bind="step: 'info'" > |
| <p> |
| <a href="http://knockoutjs.com">knockout.js</a>バインドを使用して、HTMLページの実際の外観からビュー・モデルを切り離します。JavaまたはJavaScriptで記述されたモデルにビューをバインドします。 |
| </p> |
| <h3>すべてOKですか?</h3> |
| <input type="checkbox" data-bind="checked: ok"/> |
| <h3>ご感想をどうぞ。</h3> |
| <input type='text' data-bind="textInput: msg"/> |
| </section> |
| |
| <section data-bind="step: 'targetChooser'"> |
| <!-- placeholder section for providing default location chooser |
| you can also use "step: 'targetChooser:java'" to request |
| chooser showing list of packages |
| --> |
| </section> |
| |
| <section data-bind="step: { 'id' : 'summary' }" > |
| <p> |
| ご感想をありがとうございます<span data-bind="text: msg"></span>! <a href="http://freemarker.org/">Freemarker</a>テンプレート・エンジンおよびこのウィザードに入力された値を使用して感想を伝えるファイルの作成に進みましょう。 |
| </p> |
| </section> |
| </div> |
| <#if HTML4J> <#else> |
| <script> |
| function init() { |
| var msg = ko.observable(); |
| var current = ko.observable(); |
| var ok = ko.observable(); |
| return { |
| 'current' : current, |
| 'errorCode': ko.computed(function() { |
| if (current() === 'info') { |
| // checking the input fields |
| if (!ok()) return 1; |
| if (!msg()) return 2; |
| } |
| // no errors |
| return 0; |
| }), |
| 'ok' : ok, |
| 'msg' : msg |
| }; |
| } |
| </script> |
| </#if> |
| <!-- display the error message --> |
| <div data-bind="visible: errorCode() === 1" style="color: red"> |
| 「OK」チェックボックスを選択してください。 |
| </div> |
| <div data-bind="visible: errorCode() === 2" style="color: red"> |
| 入力フィールドに入力してください。 |
| </div> |
| </body> |
| </html> |