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
-
Folder(int, int, int, int)
- Create a Folder.
-
Folder(int, int, int, int, ImageFilter)
- Create a Folder.
-
add(Component, String, Image)
- Add a new card to the end of the folder.
-
add(Component, String, int, Image)
- Add a new card to a specifed location in the folder.
-
getPreferredSize()
- Get the preferred size of the component.
-
show(int)
- Show the specified card.
-
show(String)
- Show the specified card.
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.
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.
getPreferredSize
public Dimension getPreferredSize()
- Get the preferred size of the component.
- Overrides:
- getPreferredSize in class Container
show
public void show(int card)
- Show the specified card.
- Parameters:
- card - The card number, 0 up.
show
public void show(String name)
- Show the specified card.
- Parameters:
- name - The name of the card to be shown.
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.
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