All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.contrib.JCTitlePanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jclass.contrib.JCTitlePanel

public class JCTitlePanel
extends Panel
JCTitlePanel is an implementation of a panel that comes with an outline and a title. It is small, and produces a good display. To use JCTitlePanel, create a JCTitlePanel object, then add items to the JCTitlePanel.drawArea. The following is an example:
JCTitlePanel top = new JCTitlePanel("Cell Values", null);
top.drawArea.setLayout(new JCRowColLayout(1, -1));
top.drawArea.add(new Label("This is inside the panel"));
 


Variable Index

 o drawArea
The panel that should be used by users for drawing.

Constructor Index

 o JCTitlePanel(String, String)
This is the constructor.

Method Index

 o makeTitlePanel(Panel, String, boolean)
A convenience function for creating a title panel that is either laid out vertically or horizontally.

Variables

 o drawArea
 public JCOutlinePanel drawArea
The panel that should be used by users for drawing.

Constructors

 o JCTitlePanel
 public JCTitlePanel(String title,
                     String align)
This is the constructor.

Parameters:
title - the title of the title panel
align - the alignment of the title; if the alignment is "Right", the title is right-justified, otherwise, the title is left-justified

Methods

 o makeTitlePanel
 public static JCTitlePanel makeTitlePanel(Panel parent,
                                           String title,
                                           boolean horz)
A convenience function for creating a title panel that is either laid out vertically or horizontally. It saves on the .class file size. This was used in the creation of the spreadsheet demo, in particular, with the vertical and horizontal radio button groups.

Parameters:
parent - the parent panel
title - the title of the panel
horz - if true, the panel is laid out horizontally; otherwise, it is laid out vertically

All Packages  Class Hierarchy  This Package  Previous  Next  Index