- 追加された行はこのように表示されます。
- 削除された行は
このように表示されます。
!!![TextField|http://click.sourceforge.net/docs/click-api/net/sf/click/control/TextField.html]
テキストフィールド。以下のようにしてFormに追加します。
TextField usernameField = new TextField("username");
usernameField.setRequired(true);
usernameField.setSize(12);
usernameField.setMaxLength(12);
usernameField.setMinLength(6);
form.add(usernameField);
{{code java
TextField usernameField = new TextField("username");
usernameField.setRequired(true);
usernameField.setSize(12);
usernameField.setMaxLength(12);
usernameField.setMinLength(6);
form.add(usernameField);
}}
これは以下のようなHTMLになります。
<input type='text' name='username' value='' size='12' maxlength='12'>
{{code html
<input type='text' name='username' value='' size='12' maxlength='12'>
}}
詳しい使用例は[[Form]]のページを参照してください。