Kagetaka

net.hizlab.kagetaka.awt
クラス CustomContainer

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張net.hizlab.kagetaka.awt.CustomContainer
すべての実装インタフェース:
ImageObserver, MenuContainer, Serializable
直系の既知のサブクラス:
BorderContainer

public abstract class CustomContainer
extends Container

カスタムコンテナのための基底クラスです。

バージョン:
$Revision: 1.1 $
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス 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.awt.Container から継承したメソッド
add, add, add, add, add, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

CustomContainer

public CustomContainer()
新しいコンテナを構築します。

メソッドの詳細

addComponentListener

public void addComponentListener(ComponentListener l)
ダイアログのメインパネルに対するコンポーネントリスナを登録します。

パラメータ:
l - 登録するコンポーネントリスナ

addContainerListener

public void addContainerListener(ContainerListener l)
ダイアログに対するコンテナリスナを登録します。

パラメータ:
l - 登録するコンテナリスナ

addFocusListener

public void addFocusListener(FocusListener l)
ダイアログに対するフォーカスリスナを登録します。

パラメータ:
l - 登録するフォーカスリスナ

addImpl

protected void addImpl(Component comp,
                       Object constraints,
                       int index)
指定されたコンポーネントを、このコンテナ指定の添字で追加します。

これは、コンテナへの追加要求をすべて追跡したい場合に オーバーライドするメソッドです。オーバーライドするメソッドは通常、 super.addImpl(comp, constraints, index) への 呼び出しを含めなければなりません。

パラメータ:
comp - 追加されるコンポーネント
constraints - このコンポーネントの配置条件を表現するオブジェクト
index - コンポーネントを挿入するべき位置。 最後に挿入する場合は -1

addKeyListener

public void addKeyListener(KeyListener l)
ダイアログに対するキーリスナを登録します。

パラメータ:
l - 登録するキーリスナ

addListenerComponent

protected void addListenerComponent(Component c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを追加します。

パラメータ:
c - コンポーネント

addListenerContainer

protected void addListenerContainer(Container c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを追加します。

パラメータ:
c - コンテナ

addMouseListener

public void addMouseListener(MouseListener l)
ダイアログに対するマウスリスナを登録します。

パラメータ:
l - 登録するマウスリスナ

addMouseMotionListener

public void addMouseMotionListener(MouseMotionListener l)
ダイアログに対するマウスモーションリスナを登録します。

パラメータ:
l - 登録するマウスモーションリスナ

getInnerComponentCount

public int getInnerComponentCount()
カスタムコンテナ内のコンポーネント数を返します。

戻り値:
コンポーネント数

getInnerComponentCount

public Component getInnerComponentCount(int n)
カスタムコンテナ内の n 番目のコンポーネントを得ます。

パラメータ:
n - 得ようとするコンポーネントの番号
戻り値:
コンポーネント数
例外:
ArrayIndexOutOfBoundsException - n 番目の値が存在しない場合

getInnerComponents

public Component[] getInnerComponents()
カスタムコンテナ内すべてのコンポーネントを得ます。

戻り値:
コンポーネント数

getLayout

public LayoutManager getLayout()
このコンテナのレイアウトマネージャを返します。

戻り値:
レイアウトマネージャ

invalidateAll

public void invalidateAll()

remove

public void remove(Component comp)
コンテナから指定されたコンポーネントを削除します。

パラメータ:
comp - 削除するコンポーネント

remove

public void remove(int index)
コンテナから指定された添字のコンポーネントを削除します。

パラメータ:
index - 削除するコンポーネントの添字

removeAll

public void removeAll()
コンテナからすべてのコンポーネントを削除します。


removeComponentListener

public void removeComponentListener(ComponentListener l)
ダイアログに対するコンポーネントリスナを解除します。

パラメータ:
l - 解除するコンポーネントリスナ

removeContainerListener

public void removeContainerListener(ContainerListener l)
ダイアログに対するコンテナリスナを解除します。

パラメータ:
l - 解除するコンテナリスナ

removeFocusListener

public void removeFocusListener(FocusListener l)
ダイアログに対するフォーカスリスナを解除します。

パラメータ:
l - 解除するフォーカスリスナ

removeKeyListener

public void removeKeyListener(KeyListener l)
ダイアログに対するキーリスナを解除します。

パラメータ:
l - 解除するキーリスナ

removeListenerComponent

protected void removeListenerComponent(Component c)
このコンテナに、コンポーネント用リスナが登録されたときに 一緒に登録されるコンポーネントを削除します。

パラメータ:
c - コンポーネント

removeListenerContainer

protected void removeListenerContainer(Container c)
このコンテナに、コンテナ用リスナが登録されたときに 一緒に登録されるコンテナを削除します。

パラメータ:
c - コンテナ

removeMouseListener

public void removeMouseListener(MouseListener l)
ダイアログに対するマウスリスナを解除します。

パラメータ:
l - 解除するマウスリスナ

removeMouseMotionListener

public void removeMouseMotionListener(MouseMotionListener l)
ダイアログに対するマウスモーションリスナを解除します。

パラメータ:
l - 解除するマウスモーションリスナ

setBaseContainer

protected void setBaseContainer(Container c)
このコンテナに、コンポーネントが追加されようとした場合に、 実際に追加されるコンテナを指定します。

パラメータ:
c - コンテナ。 null を指定すると、このコンテナ自身に追加される

setLayout

public void setLayout(LayoutManager mgr)
このコンテナのレイアウトマネージャを設定します。

パラメータ:
mgr - レイアウトマネージャ

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'