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.
-
JDPPopupComponent(JDPUser, Container)
- Creates a Popup Component.
-
JDPPopupComponent(JDPUser, Panel)
- Creates a Popup Component.
-
display(int, int)
- Show the popup at the requested co-ordinates.
-
display(int, int, int)
- Show the popup at the requested co-ordinates.
-
handleEvent(Event)
-
-
paint(Graphics)
-
-
setEventListener(Component)
- Designate the component to receive events from components on the popup.
-
update(Graphics)
-
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.
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.
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.
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.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- Overrides:
- update in class Component
setEventListener
public void setEventListener(Component comp)
- Designate the component to receive events from components on the popup.
- Parameters:
- comp - the component to receive events.
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component