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
-
addNotify()
- Notifies this component that it has been added to a container
and if a peer is required, it should be created.
-
bounds()
-
-
disable()
- Disables this component.
-
doLayout()
- Lays out this component.
-
enable()
- Enables this component.
-
enable(boolean)
-
-
getBounds()
- Returns the bounds of this component.
-
getFrame()
- Returns the top fram of this component.
-
getInsets()
- Returns the insets of this component.
-
getLocation()
- Returns the location of this component.
-
getMinimumSize()
- Returns the minimum size of this component.
-
getPreferredSize()
- Returns the preferred size of this component.
-
getSize()
- Returns the size of this component.
-
hide()
-
-
insets()
- Returns the insets of this component.
-
isDirectNotification()
- If true, notifies listeners directly without using the event queue.
-
isFocusTraversable()
- Checks if the keyboard focus traversal is enabled.
-
layout()
- Lays out this component.
-
location()
- Returns the location of this component.
-
minimumSize()
- Returns the minimum size of this component.
-
preferredSize()
- Returns the preferred size of this component.
-
repaintNow()
- Paints this component and all of its subcomponents immediately.
-
requestFocus()
- Requests that this component get the input focus.
-
reshape(int, int, int, int)
- Moves and resizes this component.
-
setBounds(int, int, int, int)
- Moves and resizes this component.
-
setEnabled(boolean)
- Enables or disables this component.
-
setFocusTraversable(boolean)
- Enables or disables the keyboard focus traversal.
-
setVisible(boolean)
- Shows or hides this component.
-
show()
-
-
show(boolean)
-
-
size()
- Returns the size of this component.
-
update(Graphics)
- Updates this component.
isFocusTraversable
public boolean isFocusTraversable()
- Checks if the keyboard focus traversal is enabled.
- Overrides:
- isFocusTraversable in class Component
setFocusTraversable
public void setFocusTraversable(boolean b)
- Enables or disables the keyboard focus traversal.
isDirectNotification
public boolean isDirectNotification()
- If true, notifies listeners directly without using the event queue.
setEnabled
public void setEnabled(boolean b)
- Enables or disables this component.
- Overrides:
- setEnabled in class Component
enable
public void enable()
- Enables this component.
- Overrides:
- enable in class Component
enable
public void enable(boolean b)
- Overrides:
- enable in class Component
disable
public void disable()
- Disables this component.
- Overrides:
- disable in class Component
setVisible
public void setVisible(boolean b)
- Shows or hides this component.
- Overrides:
- setVisible in class Component
show
public void show()
- Overrides:
- show in class Component
show
public void show(boolean b)
- Overrides:
- show in class Component
hide
public void hide()
- Overrides:
- hide in class Component
getLocation
public Point getLocation()
- Returns the location of this component.
- Overrides:
- getLocation in class Component
location
public Point location()
- Returns the location of this component.
- Overrides:
- location in class Component
getSize
public Dimension getSize()
- Returns the size of this component.
- Overrides:
- getSize in class Component
size
public Dimension size()
- Returns the size of this component.
- Overrides:
- size in class Component
getBounds
public Rectangle getBounds()
- Returns the bounds of this component.
- Overrides:
- getBounds in class Component
bounds
public Rectangle bounds()
- Overrides:
- bounds in class Component
setBounds
public void setBounds(int x,
int y,
int width,
int height)
- Moves and resizes this component.
- Overrides:
- setBounds in class Component
reshape
public void reshape(int x,
int y,
int width,
int height)
- Moves and resizes this component.
- Overrides:
- reshape in class Component
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this component.
- Overrides:
- getPreferredSize in class Container
preferredSize
public Dimension preferredSize()
- Returns the preferred size of this component.
- Overrides:
- preferredSize in class Container
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class Container
minimumSize
public Dimension minimumSize()
- Returns the minimum size of this component.
- Overrides:
- minimumSize in class Container
doLayout
public void doLayout()
- Lays out this component.
- Overrides:
- doLayout in class Container
layout
public void layout()
- Lays out this component.
- Overrides:
- layout in class Container
getInsets
public Insets getInsets()
- Returns the insets of this component.
- Overrides:
- getInsets in class Container
insets
public Insets insets()
- Returns the insets of this component.
- Overrides:
- insets in class Container
update
public void update(Graphics g)
- Updates this component.
- Overrides:
- update in class Container
repaintNow
public void repaintNow()
- Paints this component and all of its subcomponents immediately.
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
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
getFrame
public Frame getFrame()
- Returns the top fram of this component.
All Packages Class Hierarchy This Package Previous Next Index