All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.PrefFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----semper.preferences.PrefFrame

public class PrefFrame
extends Frame
implements ActionListener
This defines a frame for preferences editing. When a group is asked for display, each component is put according to some formatting constraints in this kind of frame. This allows to intercept events from the user while editing a preferences group.

Version:
$Revision: 1.14 $ $Date: 1998/04/07 12:45:40 $
Author:
Louis Salvail (CWI)

Variable Index

 o CANCEL_LABEL
 o constraint
 o layout
 o RESET_LABEL
 o USE_LABEL

Constructor Index

 o PrefFrame(String)
Contructor for preferences frames.
 o PrefFrame(String, PrefGroup)
Contructor for preferences frames with owner.

Method Index

 o actionPerformed(ActionEvent)
This is the method responsible to deal with one of the frame buttons (cancel,reset,use).
 o add(Component, GridBagConstraints)
This method rewrite the standard add() method of the component class for PrefFrame.
 o addButtons()
This method adds the use,cancel and reset buttons to the frame.
 o setOwner(PrefGroup)
Set the group owning this frame.

Variables

 o USE_LABEL
 public static final String USE_LABEL
 o CANCEL_LABEL
 public static final String CANCEL_LABEL
 o RESET_LABEL
 public static final String RESET_LABEL
 o layout
 public GridBagLayout layout
 o constraint
 public GridBagConstraints constraint

Constructors

 o PrefFrame
 public PrefFrame(String title)
Contructor for preferences frames.

Parameters:
title - is the name of the frame.
Returns:
a new object.
 o PrefFrame
 public PrefFrame(String title,
                  PrefGroup owner)
Contructor for preferences frames with owner.

Parameters:
title - is the name of the frame.
owner - is the group name to be displayed in this frame.
Returns:
a new object.

Methods

 o setOwner
 public void setOwner(PrefGroup owner)
Set the group owning this frame.

Parameters:
owner - is the group owning this frame.
Returns:
none.
 o add
 public Component add(Component comp,
                      GridBagConstraints csts)
This method rewrite the standard add() method of the component class for PrefFrame.

Parameters:
Component - to be added.
Returns:
I don't know, the java class description does not explain what is returned. However, I think the input component itself is returned.
 o actionPerformed
 public void actionPerformed(ActionEvent event)
This is the method responsible to deal with one of the frame buttons (cancel,reset,use).

Parameters:
event - is what occured.
 o addButtons
 public void addButtons()
This method adds the use,cancel and reset buttons to the frame. Must be called at least once when a frame is used to display a pref group. This frame is registered as an action listener for each button.


All Packages  Class Hierarchy  This Package  Previous  Next  Index