All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.KContainer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----jp.kyasu.awt.KContainer

public abstract class KContainer
extends Container
A KContainer object is a component that can contain other components.

The KContainer class is the abstract base class for all containers in this package.

Version:
25 Jul 1998
Author:
Kazuki YASUMATSU
See Also:
Container

Method Index

 o addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created.
 o bounds()
 o disable()
Disables this component.
 o doLayout()
Lays out this component.
 o enable()
Enables this component.
 o enable(boolean)
 o getBounds()
Returns the bounds of this component.
 o getFrame()
Returns the top fram of this component.
 o getInsets()
Returns the insets of this component.
 o getLocation()
Returns the location of this component.
 o getMinimumSize()
Returns the minimum size of this component.
 o getPreferredSize()
Returns the preferred size of this component.
 o getSize()
Returns the size of this component.
 o hide()
 o insets()
Returns the insets of this component.
 o isDirectNotification()
If true, notifies listeners directly without using the event queue.
 o isFocusTraversable()
Checks if the keyboard focus traversal is enabled.
 o layout()
Lays out this component.
 o location()
Returns the location of this component.
 o minimumSize()
Returns the minimum size of this component.
 o preferredSize()
Returns the preferred size of this component.
 o repaintNow()
Paints this component and all of its subcomponents immediately.
 o requestFocus()
Requests that this component get the input focus.
 o reshape(int, int, int, int)
Moves and resizes this component.
 o setBounds(int, int, int, int)
Moves and resizes this component.
 o setEnabled(boolean)
Enables or disables this component.
 o setFocusTraversable(boolean)
Enables or disables the keyboard focus traversal.
 o setVisible(boolean)
Shows or hides this component.
 o show()
 o show(boolean)
 o size()
Returns the size of this component.
 o update(Graphics)
Updates this component.

Methods

 o isFocusTraversable
 public boolean isFocusTraversable()
Checks if the keyboard focus traversal is enabled.

Overrides:
isFocusTraversable in class Component
 o setFocusTraversable
 public void setFocusTraversable(boolean b)
Enables or disables the keyboard focus traversal.

 o isDirectNotification
 public boolean isDirectNotification()
If true, notifies listeners directly without using the event queue.

 o setEnabled
 public void setEnabled(boolean b)
Enables or disables this component.

Overrides:
setEnabled in class Component
 o enable
 public void enable()
Enables this component.

Overrides:
enable in class Component
 o enable
 public void enable(boolean b)
Overrides:
enable in class Component
 o disable
 public void disable()
Disables this component.

Overrides:
disable in class Component
 o setVisible
 public void setVisible(boolean b)
Shows or hides this component.

Overrides:
setVisible in class Component
 o show
 public void show()
Overrides:
show in class Component
 o show
 public void show(boolean b)
Overrides:
show in class Component
 o hide
 public void hide()
Overrides:
hide in class Component
 o getLocation
 public Point getLocation()
Returns the location of this component.

Overrides:
getLocation in class Component
 o location
 public Point location()
Returns the location of this component.

Overrides:
location in class Component
 o getSize
 public Dimension getSize()
Returns the size of this component.

Overrides:
getSize in class Component
 o size
 public Dimension size()
Returns the size of this component.

Overrides:
size in class Component
 o getBounds
 public Rectangle getBounds()
Returns the bounds of this component.

Overrides:
getBounds in class Component
 o bounds
 public Rectangle bounds()
Overrides:
bounds in class Component
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Moves and resizes this component.

Overrides:
setBounds in class Component
 o reshape
 public void reshape(int x,
                     int y,
                     int width,
                     int height)
Moves and resizes this component.

Overrides:
reshape in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class Container
 o preferredSize
 public Dimension preferredSize()
Returns the preferred size of this component.

Overrides:
preferredSize in class Container
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class Container
 o minimumSize
 public Dimension minimumSize()
Returns the minimum size of this component.

Overrides:
minimumSize in class Container
 o doLayout
 public void doLayout()
Lays out this component.

Overrides:
doLayout in class Container
 o layout
 public void layout()
Lays out this component.

Overrides:
layout in class Container
 o getInsets
 public Insets getInsets()
Returns the insets of this component.

Overrides:
getInsets in class Container
 o insets
 public Insets insets()
Returns the insets of this component.

Overrides:
insets in class Container
 o update
 public void update(Graphics g)
Updates this component.

Overrides:
update in class Container
 o repaintNow
 public void repaintNow()
Paints this component and all of its subcomponents immediately.

 o requestFocus
 public void requestFocus()
Requests that this component get the input focus.

For the sun.awt.windows.WWindowPeer#getFocusPeer() bug (it exists in the JDK for Windows 95/NT version 1.1.4 or before), if a lightwight component is focus traversable, an application will be hung up.

Overrides:
requestFocus in class Component
See Also:
HAS_FOCUS_BUG
 o addNotify
 public void addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created.

The component state is checked for avoiding the JDK bug.

Overrides:
addNotify in class Container
See Also:
checkComponentState
 o getFrame
 public Frame getFrame()
Returns the top fram of this component.


All Packages  Class Hierarchy  This Package  Previous  Next  Index