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
-
borderSize
-
-
exPadding
-
-
inPadding
-
-
style
-
-
TRBoxPanel()
- For more advanced use by derived classes.
-
TRBoxPanel(Component)
- Create a panel that is surrounded by a border.
-
TRBoxPanel(Component, String)
- Create a panel that is surrounded by a border.
-
TRBoxPanel(Component, String, TRBoxType)
- Create a panel that is surrounded by a border.
-
TRBoxPanel(Component, TRBoxType)
- Create a panel that is surrounded by a border.
-
TRBoxPanel(String, TRBoxType)
- Create a panel that is surrounded by a border.
-
TRBoxPanel(TRBoxType)
- Create a panel that is surrounded by a border.
-
add(String)
- Add a label to the panel.
-
addNotify()
-
-
insets()
- Used internally by the AWT to reserve space for the border.
-
minimumSize()
- Returns the minimum size of the button.
-
paint(Graphics)
- The "paint" method.
-
preferredSize()
- Returns the preferred size of the button.
-
setBorderSize(int)
- Set the size of the border.
-
setExternalPadding(int)
- Set the outside padding between border and the layout it is
placed within.
-
setInternalPadding(int)
- Set the padding between the panel and the border.
-
setStyle(TRBoxType)
- Set the style of the border.
-
setTitle(String)
-
-
update(Graphics)
-
style
protected TRBoxType style
inPadding
protected int inPadding
exPadding
protected int exPadding
borderSize
protected int borderSize
TRBoxPanel
protected TRBoxPanel()
- For more advanced use by derived classes.
- See Also:
- EZRadioButtons
TRBoxPanel
public TRBoxPanel(TRBoxType style)
- Create a panel that is surrounded by a border.
- Parameters:
- style - the style of the border
- See Also:
- EZBox
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
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
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
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
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
add
public void add(String s)
- Add a label to the panel.
- Parameters:
- s - the label
insets
public Insets insets()
- Used internally by the AWT to reserve space for the border.
- Overrides:
- insets in class Container
preferredSize
public Dimension preferredSize()
- Returns the preferred size of the button.
- Returns:
- the preferred size of this button
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Returns the minimum size of the button.
- Returns:
- the minimum size of this button
- Overrides:
- minimumSize in class Container
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
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
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
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
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- The "paint" method.
- Overrides:
- paint in class Container
setTitle
public void setTitle(String newTitle)
addNotify
public void addNotify()
- Overrides:
- addNotify in class Panel
All Packages Class Hierarchy This Package Previous Next Index