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.
-
FLAT
-
-
NONE
-
-
RAISED
-
-
SUNKEN
-
-
CardPanel()
-
Constructor.
-
CardPanel(int)
-
Constructor.
-
add(Component, Object)
-
-
add(Component, Object, int)
-
-
componentAdded(ContainerEvent)
-
-
componentRemoved(ContainerEvent)
-
-
getInsets()
- Returns the insets of the container.
-
insets()
-
Deprecated.
-
paint(Graphics)
-
NONE
public static final int NONE
SUNKEN
public static final int SUNKEN
RAISED
public static final int RAISED
FLAT
public static final int FLAT
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
CardPanel
public CardPanel()
- Constructor.
Uses standard raised border.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
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
insets
public Insets insets()
- Note: insets() is deprecated.
As of JDK version 1.1,
replaced by getInsets().
- Overrides:
- insets in class Container
add
public void add(Component comp,
Object constraints)
- Overrides:
- add in class Container
add
public void add(Component comp,
Object constraints,
int index)
- Overrides:
- add in class Container
componentAdded
public void componentAdded(ContainerEvent e)
componentRemoved
public void componentRemoved(ContainerEvent e)
All Packages Class Hierarchy This Package Previous Next Index