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)
-
CANCEL_LABEL
-
-
constraint
-
-
layout
-
-
RESET_LABEL
-
-
USE_LABEL
-
-
PrefFrame(String)
- Contructor for preferences frames.
-
PrefFrame(String, PrefGroup)
- Contructor for preferences frames with owner.
-
actionPerformed(ActionEvent)
- This is the method responsible to deal with one of the frame
buttons (cancel,reset,use).
-
add(Component, GridBagConstraints)
- This method rewrite the standard add() method of the component
class for PrefFrame.
-
addButtons()
- This method adds the use,cancel and reset buttons to the frame.
-
setOwner(PrefGroup)
- Set the group owning this frame.
USE_LABEL
public static final String USE_LABEL
CANCEL_LABEL
public static final String CANCEL_LABEL
RESET_LABEL
public static final String RESET_LABEL
layout
public GridBagLayout layout
constraint
public GridBagConstraints constraint
PrefFrame
public PrefFrame(String title)
- Contructor for preferences frames.
- Parameters:
- title - is the name of the frame.
- Returns:
- a new object.
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.
setOwner
public void setOwner(PrefGroup owner)
- Set the group owning this frame.
- Parameters:
- owner - is the group owning this frame.
- Returns:
- none.
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.
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.
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