irc.gui
Class NickMenuHandler
java.lang.Object
|
+--irc.IRCObject
|
+--irc.gui.NickMenuHandler
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- public class NickMenuHandler
- extends IRCObject
- implements java.awt.event.ActionListener
Popupmenu handling for nicknames.
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
popup(java.lang.String nick,
java.lang.String whois,
java.awt.Component c,
int x,
int y)
Open and handle a popup menu for a nickname. |
void |
release()
Release this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NickMenuHandler
public NickMenuHandler(IRCConfiguration config,
java.awt.Component parent,
Source source)
- Create a new NickMenuHandler.
- Parameters:
config
- the irc configuration.parent
- a parent component for the popup menu.source
- the source associated with this popup menu.
release
public void release()
- Description copied from class:
IRCObject
- Release this object. No further method call can be performed on this object.
- Overrides:
release
in class IRCObject
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
popup
public void popup(java.lang.String nick,
java.lang.String whois,
java.awt.Component c,
int x,
int y)
- Open and handle a popup menu for a nickname.
- Parameters:
nick
- the nickname.whois
- the whois or asl nickname information.c
- the component where the menu is to be displayed. This component
must be a child of the parent component for this menu.x
- x-position relative to c.y
- y-position relative to c.