All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.trumphurst.controls.CardPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.trumphurst.controls.CardPanel

public class CardPanel
extends Panel
implements ContainerListener
Lightweight container with a border, title, etc.


Variable Index

 o FLAT
 o NONE
 o RAISED
 o SUNKEN

Constructor Index

 o CardPanel()
Constructor.
 o CardPanel(int)
Constructor.

Method Index

 o add(Component, Object)
 o add(Component, Object, int)
 o componentAdded(ContainerEvent)
 o componentRemoved(ContainerEvent)
 o getInsets()
Returns the insets of the container.
 o insets()
Deprecated.
 o paint(Graphics)

Variables

 o NONE
 public static final int NONE
 o SUNKEN
 public static final int SUNKEN
 o RAISED
 public static final int RAISED
 o FLAT
 public static final int FLAT

Constructors

 o CardPanel
 public CardPanel(int border)
Constructor.

Parameters:
border - The border type to draw. Can use predefined BorderTypes shown below.
See Also:
SUNKEN, RAISED, FLAT, NONE
 o CardPanel
 public CardPanel()
Constructor. Uses standard raised border.

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o getInsets
 public Insets getInsets()
Returns the insets of the container. The insets indicate the size of the border of the container. A Frame, for example, will have a top inset that corresponds to the height of the Frame's title bar.

Overrides:
getInsets in class Container
See Also:
LayoutManager
 o insets
 public Insets insets()
Note: insets() is deprecated. As of JDK version 1.1, replaced by getInsets().

Overrides:
insets in class Container
 o add
 public void add(Component comp,
                 Object constraints)
Overrides:
add in class Container
 o add
 public void add(Component comp,
                 Object constraints,
                 int index)
Overrides:
add in class Container
 o componentAdded
 public void componentAdded(ContainerEvent e)
 o componentRemoved
 public void componentRemoved(ContainerEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index