All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ca.bc.europa.awt.Folder

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----ca.bc.europa.awt.Folder

public class Folder
extends Container

The Folder class creates a tabbed folder.

The folder tabs are Images, an ImageFilter is used to modify tab images to create a second image. The second image is used to reflect the unselected state of the tab.

See Also:
Component, Runnable

Constructor Index

 o Folder(int, int, int, int)
Create a Folder.
 o Folder(int, int, int, int, ImageFilter)
Create a Folder.

Method Index

 o add(Component, String, Image)
Add a new card to the end of the folder.
 o add(Component, String, int, Image)
Add a new card to a specifed location in the folder.
 o getPreferredSize()
Get the preferred size of the component.
 o show(int)
Show the specified card.
 o show(String)
Show the specified card.

Constructors

 o Folder
 public Folder(int tw,
               int th,
               int w,
               int h,
               ImageFilter unFilter)
Create a Folder.

Parameters:
tw - The width of a single tab.
th - The height of a single tab.
w - The width of the entire component.
h - The height of the card.
unFilter - An image filter applied to tabs in the background.
 o Folder
 public Folder(int tw,
               int th,
               int w,
               int h)
Create a Folder. Use the default selection effect, a Bright(70).

Parameters:
tw - The width of a single tab.
th - The height of a single tab.
w - The width of the entire component.
h - The height of the card.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Get the preferred size of the component.

Overrides:
getPreferredSize in class Container
 o show
 public void show(int card)
Show the specified card.

Parameters:
card - The card number, 0 up.
 o show
 public void show(String name)
Show the specified card.

Parameters:
name - The name of the card to be shown.
 o add
 public void add(Component comp,
                 String name,
                 int position,
                 Image tab)
Add a new card to a specifed location in the folder.

Parameters:
comp - The component to place on the card.
name - The name of the new card.
position - The position of the new card relative to existing cards.
tab - The tab image.
 o add
 public void add(Component comp,
                 String name,
                 Image tab)
Add a new card to the end of the folder.

Parameters:
comp - The component to place on the card.
name - The name of the new card.
tab - The tab image.

All Packages  Class Hierarchy  This Package  Previous  Next  Index