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.
-
JDPPopupMessage(JDPUser, Container)
- Creates a Popup message.
-
JDPPopupMessage(JDPUser, Panel)
- Creates a Popup message.
-
addComponent(Component, String, String)
- Register a component with this class.
-
handleEvent(Event)
-
-
layout()
-
-
paint(Graphics)
-
-
removeAllComponents()
- Remove all the components that are currently registered with this class.
-
removeComponent(Component)
- Remove a specific component from this class.
-
setTarget(Container)
- Set the handle of the panel that this one is attached to.
-
update(Graphics)
-
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.
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.
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.
removeAllComponents
public void removeAllComponents()
- Remove all the components that are currently registered with this class.
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
removeComponent
public void removeComponent(Component thisComponent)
- Remove a specific component from this class.
- Parameters:
- component - the component to remove from mouse events.
layout
public void layout()
- Overrides:
- layout in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- Overrides:
- update in class Component
handleEvent
public boolean handleEvent(Event evt)
- Overrides:
- handleEvent in class Component