Class tea.set.Book
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.Book

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----tea.set.Folder
                                   |
                                   +----tea.set.Book

public class Book
extends Folder
Book is an interface similar to a regular book. Pages (Components) can be added to the Book container. Each page belongs to a chapter, which has a tag associated with it. The interface of Book is built on top of Folder and has same set of functions. If a chapter has multiple pages, four arrow buttons are shown at the top of the page. The double left arrow flips display to the first page of the chapter. The left arrow button flips to the previous page of the chapter. The right and double right arrow button flips to the next and last page of the chapter respectively. Any AWT component can be used as a page.
See Also:
Folder

Constructor Index

 o Book()
Constructs an empty Book.
 o Book(int)
Constructs a Book with specified style.

Method Index

 o add(String, Component)
Add a page to a chapter.

Constructors

 o Book
  public Book()
Constructs an empty Book.
 o Book
  public Book(int style)
Constructs a Book with specified style. @See Folder for available styles.
Parameters:
style - folder styles.
See Also:
Folder

Methods

 o add
  public Component add(String name,
                       Component comp)
Add a page to a chapter. The name parameter is the chapter name. If the chapter does not exist, a new chapter (folder) is created. Otherwise the page is appended to the existing chapter.
Parameters:
name - tab string for this component.
comp - component to serve as the content of this tabbed page.
Returns:
this component.
Overrides:
add in class Folder

All Packages  Class Hierarchy  This Package  Previous  Next  Index