Class JDPPopupMessage

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPPopupMessage

public class JDPPopupMessage
extends Panel
Class JDPPopupMessage represents a class for displaying a popup message along with a message on the status bar.


Constructor Index

 o JDPPopupMessage(JDPUser, Container)
Creates a Popup message.
 o JDPPopupMessage(JDPUser, Panel)
Creates a Popup message.

Method Index

 o addComponent(Component, String, String)
Register a component with this class.
 o handleEvent(Event)
 o layout()
 o paint(Graphics)
 o removeAllComponents()
Remove all the components that are currently registered with this class.
 o removeComponent(Component)
Remove a specific component from this class.
 o setTarget(Container)
Set the handle of the panel that this one is attached to.
 o update(Graphics)

Constructors

 o JDPPopupMessage
 public JDPPopupMessage(JDPUser user,
                        Panel targetPanel)
Creates a Popup message.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
targetPanel - the parent panel that this one will be added to.
 o JDPPopupMessage
 public JDPPopupMessage(JDPUser user,
                        Container targetPanel)
Creates a Popup message.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
targetPanel - the parent panel that this one will be added to.

Methods

 o setTarget
 public void setTarget(Container targetPanel)
Set the handle of the panel that this one is attached to.

Parameters:
targetPanel - the parent panel that this one will be added to.
 o removeAllComponents
 public void removeAllComponents()
Remove all the components that are currently registered with this class.

 o addComponent
 public void addComponent(Component thisComponent,
                          String popupMessage,
                          String statusBarMessage)
Register a component with this class.

Parameters:
component - the component to check for mouse events.
popupMessage - the popup message to display if the mouse is over the component
statusBarMessage - the status bar message to display if the mouse is over the component
 o removeComponent
 public void removeComponent(Component thisComponent)
Remove a specific component from this class.

Parameters:
component - the component to remove from mouse events.
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o handleEvent
 public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component