Class JDPPopupComponent

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

public class JDPPopupComponent
extends Panel
Class JDPPopupComponent represents a class for displaying a popup component.


Constructor Index

 o JDPPopupComponent(JDPUser, Container)
Creates a Popup Component.
 o JDPPopupComponent(JDPUser, Panel)
Creates a Popup Component.

Method Index

 o display(int, int)
Show the popup at the requested co-ordinates.
 o display(int, int, int)
Show the popup at the requested co-ordinates.
 o handleEvent(Event)
 o paint(Graphics)
 o setEventListener(Component)
Designate the component to receive events from components on the popup.
 o update(Graphics)

Constructors

 o JDPPopupComponent
 public JDPPopupComponent(JDPUser user,
                          Panel targetPanel)
Creates a Popup Component.

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

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 display
 public void display(int xpos,
                     int ypos)
Show the popup at the requested co-ordinates.

Parameters:
xPostion - the x postion to display the popup at.
yPostion - the y postion to display the popup at.
 o display
 public void display(int xpos,
                     int ypos,
                     int altYpos)
Show the popup at the requested co-ordinates.

Parameters:
xPostion - the x postion to display the popup at.
yPostion - the y postion to display the popup at.
altYPostion - the alternate y postion to display the popup at if it wont fit on the screen.
 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 setEventListener
 public void setEventListener(Component comp)
Designate the component to receive events from components on the popup.

Parameters:
comp - the component to receive events.
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component