All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tropo.awt.TRBoxPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----tropo.awt.TRBoxPanel

public class TRBoxPanel
extends Panel
The Lumos version of a border, which is a panel that draws a raised or lowered border, or etched in or out. The panel is a BorderLayout.

 EZBoxPanel p = new EZBoxPanel( EZBoxType.RAISED);
 p.add( new Button("Clear"));
 

If you want to be fancy you can implement EZDrawsBoxPanel and call setDrawer to draw a custom border.

See Also:
EZDrawsBoxPanel

Variable Index

 o borderSize
 o exPadding
 o inPadding
 o style

Constructor Index

 o TRBoxPanel()
For more advanced use by derived classes.
 o TRBoxPanel(Component)
Create a panel that is surrounded by a border.
 o TRBoxPanel(Component, String)
Create a panel that is surrounded by a border.
 o TRBoxPanel(Component, String, TRBoxType)
Create a panel that is surrounded by a border.
 o TRBoxPanel(Component, TRBoxType)
Create a panel that is surrounded by a border.
 o TRBoxPanel(String, TRBoxType)
Create a panel that is surrounded by a border.
 o TRBoxPanel(TRBoxType)
Create a panel that is surrounded by a border.

Method Index

 o add(String)
Add a label to the panel.
 o addNotify()
 o insets()
Used internally by the AWT to reserve space for the border.
 o minimumSize()
Returns the minimum size of the button.
 o paint(Graphics)
The "paint" method.
 o preferredSize()
Returns the preferred size of the button.
 o setBorderSize(int)
Set the size of the border.
 o setExternalPadding(int)
Set the outside padding between border and the layout it is placed within.
 o setInternalPadding(int)
Set the padding between the panel and the border.
 o setStyle(TRBoxType)
Set the style of the border.
 o setTitle(String)
 o update(Graphics)

Variables

 o style
 protected TRBoxType style
 o inPadding
 protected int inPadding
 o exPadding
 protected int exPadding
 o borderSize
 protected int borderSize

Constructors

 o TRBoxPanel
 protected TRBoxPanel()
For more advanced use by derived classes.

See Also:
EZRadioButtons
 o TRBoxPanel
 public TRBoxPanel(TRBoxType style)
Create a panel that is surrounded by a border.

Parameters:
style - the style of the border
See Also:
EZBox
 o TRBoxPanel
 public TRBoxPanel(Component child)
Create a panel that is surrounded by a border.

Parameters:
child - the component to add to the panel
See Also:
TRBox
 o TRBoxPanel
 public TRBoxPanel(Component child,
                   String title)
Create a panel that is surrounded by a border.

Parameters:
child - the component to add to the panel
See Also:
TRBox
 o TRBoxPanel
 public TRBoxPanel(String title,
                   TRBoxType style)
Create a panel that is surrounded by a border.

Parameters:
child - the component to add to the panel
See Also:
TRBox
 o TRBoxPanel
 public TRBoxPanel(Component child,
                   TRBoxType style)
Create a panel that is surrounded by a border.

Parameters:
child - the component to add to the panel
style - the style of the border
See Also:
TRBox
 o TRBoxPanel
 public TRBoxPanel(Component child,
                   String title,
                   TRBoxType style)
Create a panel that is surrounded by a border.

Parameters:
child - the component to add to the panel
title - the title of the panel
style - the style of the border
See Also:
TRBox

Methods

 o add
 public void add(String s)
Add a label to the panel.

Parameters:
s - the label
 o insets
 public Insets insets()
Used internally by the AWT to reserve space for the border.

Overrides:
insets in class Container
 o preferredSize
 public Dimension preferredSize()
Returns the preferred size of the button.

Returns:
the preferred size of this button
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Returns the minimum size of the button.

Returns:
the minimum size of this button
Overrides:
minimumSize in class Container
 o setInternalPadding
 public void setInternalPadding(int pad)
Set the padding between the panel and the border. Default is 1.

Parameters:
pad - the internal padding between the border and panel
 o setExternalPadding
 public void setExternalPadding(int pad)
Set the outside padding between border and the layout it is placed within. The default is 0.

Parameters:
pad - the extenal padding between the border and the layout
 o setBorderSize
 public void setBorderSize(int size)
Set the size of the border. By default, the size of the border is 1 for RAISED or LOWERED. For ETCHED_IN and ETCHED_OUT, the size is always 2.

Parameters:
size - the size of the border
 o setStyle
 public void setStyle(TRBoxType style)
Set the style of the border. By default, it is TRBoxType.RAISED

Parameters:
style - the border style
See Also:
TRBox
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
The "paint" method.

Overrides:
paint in class Container
 o setTitle
 public void setTitle(String newTitle)
 o addNotify
 public void addNotify()
Overrides:
addNotify in class Panel

All Packages  Class Hierarchy  This Package  Previous  Next  Index