All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.PrefPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----semper.preferences.PrefPanel

public class PrefPanel
extends Panel
implements Serializable
This class is used to contain field objects. The panel then catch the event corresponding to the user double-cliked during the mouse move over it. When this event is detected the information relative to the field contains in this panel is shown in a window.

Version:
$Revision: 1.12 $ $Date: 1997/09/26 16:29:37 $
Author:
Louis Salvail

Variable Index

 o _owner

Constructor Index

 o PrefPanel(PrefField)
Constructor.

Method Index

 o add(Component, boolean)
This method is the normal add method for panels with the possibility to put the new added subcomponent to the mouse listener of this panel.
 o getListener()
Returns the listener for all mouse events occuring in this panel.
 o getOwner()
This method returns the PrefField owning this panel.

Variables

 o _owner
 protected PrefField _owner

Constructors

 o PrefPanel
 public PrefPanel(PrefField f)
Constructor.

Parameters:
f - is the owner of that panel.
Returns:
the new object.

Methods

 o getOwner
 protected PrefField getOwner()
This method returns the PrefField owning this panel.

Returns:
the field.
 o getListener
 protected PanelListener getListener()
Returns the listener for all mouse events occuring in this panel.

Returns:
the panel listener for this panel.
 o add
 public void add(Component c,
                 boolean withListener)
This method is the normal add method for panels with the possibility to put the new added subcomponent to the mouse listener of this panel. This is used when double-clicking on the subcomponent should show the description associated to that field.

Parameters:
c - is the new component to be added.
withListener - tells whether or not the listener for this panel will also include the new subcomponent mouse events.

All Packages  Class Hierarchy  This Package  Previous  Next  Index