|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
net.hizlab.kagetaka.awt.tate.Component
net.hizlab.kagetaka.awt.tate.Button
縦表示のボタンです。
入れ子クラスの概要 |
クラス 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 |
コンストラクタの概要 | |
Button(Option option,
ImageCreator ic)
新しいインスタンスを作成します。 |
|
Button(Option option,
ImageCreator ic,
String label)
指定されたラベルを表示する、新しいインスタンスを作成します。 |
メソッドの概要 | |
void |
addActionListener(ActionListener l)
アクションリスナを登録します。 |
String |
getActionCommand()
このボタンで発生するアクションイベントのコマンド名を返します。 |
String |
getLabel()
ボタンに表示するラベルを返します。 |
Dimension |
getPreferredSize()
推奨サイズを返します。 |
protected String |
paramString()
このボタンのパラメータ文字列を返します。 |
protected void |
processActionEvent(ActionEvent e)
このコンポーネントで発生するアクションイベントを、 登録されているすべての ActionListener に送ることにより、
アクションイベントを処理します。 |
protected void |
processEvent(AWTEvent e)
このコンポーネントで発生するコンポーネントイベントを処理します。 |
protected void |
refresh(Graphics g,
Dimension size,
int state,
boolean focus)
現在のステータスにあった状態に再描画 |
void |
removeActionListener(ActionListener l)
アクションリスナを解除します。 |
void |
setActionCommand(String command)
このボタンで発生するアクションイベントのコマンド名を設定します。 |
void |
setLabel(String label)
ボタンに表示するラベルを設定します。 |
クラス net.hizlab.kagetaka.awt.tate.Component から継承したメソッド |
getBorder, getName, getText, getViewState, isFocusTraversable, paint, repaintForce, setBorder, setEnabled, setName, setPreferredSize, setViewState, update |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public Button(Option option, ImageCreator ic)
option
- オプションic
- イメージクリエータpublic Button(Option option, ImageCreator ic, String label)
option
- オプションic
- イメージクリエータlabel
- ボタンのラベルメソッドの詳細 |
public void addActionListener(ActionListener l)
l
- 登録するアクションリスナpublic String getActionCommand()
public String getLabel()
public Dimension getPreferredSize()
Component
内の getPreferredSize
protected String paramString()
Component
内の paramString
protected void processActionEvent(ActionEvent e)
ActionListener
に送ることにより、
アクションイベントを処理します。
e
- イベントprotected void processEvent(AWTEvent e)
e
- イベントprotected void refresh(Graphics g, Dimension size, int state, boolean focus)
Component
内の refresh
g
- グラフィックスsize
- 描画域の大きさstate
- 新しい状態focus
- フォーカスを持っているかpublic void removeActionListener(ActionListener l)
l
- 解除するアクションリスナpublic void setActionCommand(String command)
command
- コマンド名public void setLabel(String label)
label
- ボタンのラベル
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'