|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.awt.Component
net.hizlab.kagetaka.awt.tate.Component
net.hizlab.kagetaka.awt.tate.TextComponent
net.hizlab.kagetaka.awt.tate.TextField
縦表示のボタンです。
| 入れ子クラスの概要 |
| クラス java.awt.Component から継承した入れ子クラス |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| フィールドの概要 |
| クラス net.hizlab.kagetaka.awt.tate.Component から継承したフィールド |
DISABLE, KEY_DOWN, MOUSE_DOWN, MOUSE_OVER, NORMAL |
| クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| コンストラクタの概要 | |
TextField(Option option,
ImageCreator ic)
新しいインスタンスを作成します。 |
|
TextField(Option option,
ImageCreator ic,
int columns)
指定された列数の幅のインスタンスを作成します。 |
|
TextField(Option option,
ImageCreator ic,
String text)
指定されたテキストを含むインスタンスを作成します。 |
|
TextField(Option option,
ImageCreator ic,
String text,
int columns)
指定されたテキストと幅のインスタンスを作成します。 |
|
| メソッドの概要 | |
void |
addActionListener(ActionListener l)
状態リスナを登録します。 |
boolean |
echoCharIsSet()
TextField がエコー文字を持っているかどうかを返します。 |
String |
getActionCommand()
このボタンで発生するアクションイベントのコマンド名を返します。 |
int |
getColumns()
この TextField の列数を返します。 |
char |
getEchoChar()
エコーする文字を返します。 |
int |
getMaxLength()
入力できる最大文字数を返します。 |
protected String |
paramString()
このテキストフィールドのパラメータ文字列を返します。 |
protected void |
processActionEvent(ActionEvent e)
このコンポーネントで発生するアクションイベントを、 登録されているすべての ActionListener に送ることにより、
アクションイベントを処理します。 |
protected void |
processEvent(AWTEvent e)
このコンポーネントで発生するコンポーネントイベントを処理します。 |
void |
removeActionListener(ActionListener l)
状態リスナを解除します。 |
void |
setActionCommand(String command)
このボタンで発生するアクションイベントのコマンド名を設定します。 |
void |
setColumns(int columns)
この TextField の列数を設定します。 |
void |
setEchoChar(char c)
この TextField のエコー文字を設定します。 |
void |
setMaxLength(int max)
入力できる最大文字数を設定します。 |
| クラス net.hizlab.kagetaka.awt.tate.TextComponent から継承したメソッド |
getPreferredSize, getText, isLocked, refresh, setEnabled, setLocked, setText |
| クラス net.hizlab.kagetaka.awt.tate.Component から継承したメソッド |
getBorder, getName, getText, getViewState, isFocusTraversable, paint, repaintForce, setBorder, setName, setPreferredSize, setViewState, update |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public TextField(Option option,
ImageCreator ic)
option - オプションic - イメージクリエータ
public TextField(Option option,
ImageCreator ic,
int columns)
option - オプションic - イメージクリエータcolumns - 列数
public TextField(Option option,
ImageCreator ic,
String text)
option - オプションic - イメージクリエータtext - テキスト
public TextField(Option option,
ImageCreator ic,
String text,
int columns)
option - オプションic - イメージクリエータtext - テキストcolumns - 列数| メソッドの詳細 |
public void addActionListener(ActionListener l)
l - 登録する状態リスナpublic boolean echoCharIsSet()
true、
それ以外の場合は falsepublic String getActionCommand()
public int getColumns()
public char getEchoChar()
public int getMaxLength()
0protected String paramString()
Component 内の paramStringprotected void processActionEvent(ActionEvent e)
ActionListener に送ることにより、
アクションイベントを処理します。
e - イベントprotected void processEvent(AWTEvent e)
e - イベントpublic void removeActionListener(ActionListener l)
l - 解除する状態リスナpublic void setActionCommand(String command)
command - コマンド名public void setColumns(int columns)
columns - 列数public void setEchoChar(char c)
c - エコー文字public void setMaxLength(int max)
0 を設定します。
max - 入力できる最大文字数
|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'