|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
java.awt.Container
net.hizlab.kagetaka.awt.CustomContainer
カスタムコンテナのための基底クラスです。
入れ子クラスの概要 |
クラス java.awt.Container から継承した入れ子クラス |
Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した入れ子クラス |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
フィールドの概要 |
クラス 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 |
コンストラクタの概要 | |
CustomContainer()
新しいコンテナを構築します。 |
メソッドの概要 | |
void |
addComponentListener(ComponentListener l)
ダイアログのメインパネルに対するコンポーネントリスナを登録します。 |
void |
addContainerListener(ContainerListener l)
ダイアログに対するコンテナリスナを登録します。 |
void |
addFocusListener(FocusListener l)
ダイアログに対するフォーカスリスナを登録します。 |
protected void |
addImpl(Component comp,
Object constraints,
int index)
指定されたコンポーネントを、このコンテナ指定の添字で追加します。 |
void |
addKeyListener(KeyListener l)
ダイアログに対するキーリスナを登録します。 |
protected void |
addListenerComponent(Component c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを追加します。 |
protected void |
addListenerContainer(Container c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを追加します。 |
void |
addMouseListener(MouseListener l)
ダイアログに対するマウスリスナを登録します。 |
void |
addMouseMotionListener(MouseMotionListener l)
ダイアログに対するマウスモーションリスナを登録します。 |
int |
getInnerComponentCount()
カスタムコンテナ内のコンポーネント数を返します。 |
Component |
getInnerComponentCount(int n)
カスタムコンテナ内の n 番目のコンポーネントを得ます。 |
Component[] |
getInnerComponents()
カスタムコンテナ内すべてのコンポーネントを得ます。 |
LayoutManager |
getLayout()
このコンテナのレイアウトマネージャを返します。 |
void |
invalidateAll()
このコンテナ内のすべてのコンポーネントに無効を通知します。 |
void |
remove(Component comp)
コンテナから指定されたコンポーネントを削除します。 |
void |
remove(int index)
コンテナから指定された添字のコンポーネントを削除します。 |
void |
removeAll()
コンテナからすべてのコンポーネントを削除します。 |
void |
removeComponentListener(ComponentListener l)
ダイアログに対するコンポーネントリスナを解除します。 |
void |
removeContainerListener(ContainerListener l)
ダイアログに対するコンテナリスナを解除します。 |
void |
removeFocusListener(FocusListener l)
ダイアログに対するフォーカスリスナを解除します。 |
void |
removeKeyListener(KeyListener l)
ダイアログに対するキーリスナを解除します。 |
protected void |
removeListenerComponent(Component c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを削除します。 |
protected void |
removeListenerContainer(Container c)
このコンテナに、コンテナ用リスナが登録されたときに 一緒に登録されるコンテナを削除します。 |
void |
removeMouseListener(MouseListener l)
ダイアログに対するマウスリスナを解除します。 |
void |
removeMouseMotionListener(MouseMotionListener l)
ダイアログに対するマウスモーションリスナを解除します。 |
protected void |
setBaseContainer(Container c)
このコンテナに、コンポーネントが追加されようとした場合に、 実際に追加されるコンテナを指定します。 |
void |
setLayout(LayoutManager mgr)
このコンテナのレイアウトマネージャを設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public CustomContainer()
メソッドの詳細 |
public void addComponentListener(ComponentListener l)
l
- 登録するコンポーネントリスナpublic void addContainerListener(ContainerListener l)
l
- 登録するコンテナリスナpublic void addFocusListener(FocusListener l)
l
- 登録するフォーカスリスナprotected void addImpl(Component comp, Object constraints, int index)
これは、コンテナへの追加要求をすべて追跡したい場合に
オーバーライドするメソッドです。オーバーライドするメソッドは通常、
super.addImpl(comp, constraints, index)
への
呼び出しを含めなければなりません。
comp
- 追加されるコンポーネントconstraints
- このコンポーネントの配置条件を表現するオブジェクトindex
- コンポーネントを挿入するべき位置。
最後に挿入する場合は -1
public void addKeyListener(KeyListener l)
l
- 登録するキーリスナprotected void addListenerComponent(Component c)
c
- コンポーネントprotected void addListenerContainer(Container c)
c
- コンテナpublic void addMouseListener(MouseListener l)
l
- 登録するマウスリスナpublic void addMouseMotionListener(MouseMotionListener l)
l
- 登録するマウスモーションリスナpublic int getInnerComponentCount()
public Component getInnerComponentCount(int n)
n
番目のコンポーネントを得ます。
n
- 得ようとするコンポーネントの番号
ArrayIndexOutOfBoundsException
- n
番目の値が存在しない場合public Component[] getInnerComponents()
public LayoutManager getLayout()
public void invalidateAll()
public void remove(Component comp)
comp
- 削除するコンポーネントpublic void remove(int index)
index
- 削除するコンポーネントの添字public void removeAll()
public void removeComponentListener(ComponentListener l)
l
- 解除するコンポーネントリスナpublic void removeContainerListener(ContainerListener l)
l
- 解除するコンテナリスナpublic void removeFocusListener(FocusListener l)
l
- 解除するフォーカスリスナpublic void removeKeyListener(KeyListener l)
l
- 解除するキーリスナprotected void removeListenerComponent(Component c)
c
- コンポーネントprotected void removeListenerContainer(Container c)
c
- コンテナpublic void removeMouseListener(MouseListener l)
l
- 解除するマウスリスナpublic void removeMouseMotionListener(MouseMotionListener l)
l
- 解除するマウスモーションリスナprotected void setBaseContainer(Container c)
c
- コンテナ。
null
を指定すると、このコンテナ自身に追加されるpublic void setLayout(LayoutManager mgr)
mgr
- レイアウトマネージャ
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'