irc.gui
Class AWTChannel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--irc.gui.AWTSource
                          |
                          +--irc.gui.AWTChannel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, AWTStyleSelectorExListener, ChannelListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, MouseWheelPanelListener, PixxNickListListener, PixxScrollBarListener, java.io.Serializable, SourceListener, StyledListListener, java.awt.event.WindowListener

public class AWTChannel
extends AWTSource
implements ChannelListener, PixxNickListListener

The AWT Channel.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class irc.gui.AWTSource
_ircConfiguration, _list, _panel, _scroll, _selector, _source, _strippedTitle, _styler, _textField, _title, _topToBottom
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AWTChannel(IRCConfiguration config, Channel c)
          Create a new AWTChannel.
 
Method Summary
 void ASLEventOccured(java.lang.String nick, java.lang.String info)
          An ASL event occured.
 void doLayout()
           
 void eventOccured(java.lang.String nick, java.awt.event.MouseEvent e)
          Some mouse event occured on a nick.
 void modeApply(java.lang.String mode, java.lang.String from)
          Channel mode applied.
 void nickChanged(java.lang.String oldNick, java.lang.String newNick)
          Nick changed.
 void nickEvent(StyledList lis, java.lang.String nick, java.awt.event.MouseEvent e)
          A nick event has occured on a channel.
 void nickJoin(java.lang.String nick, java.lang.String mode)
          A new nick has joined.
 void nickKick(java.lang.String nick, java.lang.String by, java.lang.String reason)
          A nick has been kicked.
 void nickModeApply(java.lang.String nick, java.lang.String mode, java.lang.String from)
          Nick mode applied.
 void nickPart(java.lang.String nick, java.lang.String reason)
          A nick has part.
 void nickQuit(java.lang.String nick, java.lang.String reason)
          A nick has quit.
 void nickSet(java.lang.String[] nicks, java.lang.String[] modes)
          The channel has changed all its nick list.
 void nickWhoisUpdated(java.lang.String nick, java.lang.String whois)
          Whois bufferised information has been updated.
 void release()
          Release this object.
 void setVisible(boolean b)
           
 void topicChanged(java.lang.String topic, java.lang.String by)
          The topic has been changed.
 
Methods inherited from class irc.gui.AWTSource
action, actionPerformed, activate, addAWTSourceListener, channelEvent, checkSound, clear, copyEvent, focusGained, focusLost, fontSelected, getColorContext, getFieldText, getPreferredSize, getShortTitle, getSource, getStrippedTitle, getText, getText, getText, getText, getTitle, isActive, leave, messageReceived, mouseWheelMoved, needHighLight, noticeReceived, print, print, print, removeAWTSourceListener, reportReceived, setFieldText, setTitle, toString, URLEvent, validateText, valueChanged, virtualSizeChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface irc.SourceListener
action, activate, clear, messageReceived, noticeReceived, reportReceived
 

Constructor Detail

AWTChannel

public AWTChannel(IRCConfiguration config,
                  Channel c)
Create a new AWTChannel.

Parameters:
config - the global irc configuration.
Method Detail

release

public void release()
Description copied from class: AWTSource
Release this object. No further call may be performed on this object.

Overrides:
release in class AWTSource

doLayout

public void doLayout()
Overrides:
doLayout in class java.awt.Container

setVisible

public void setVisible(boolean b)
Overrides:
setVisible in class AWTSource

nickSet

public void nickSet(java.lang.String[] nicks,
                    java.lang.String[] modes)
Description copied from interface: ChannelListener
The channel has changed all its nick list.

Specified by:
nickSet in interface ChannelListener
Parameters:
nicks - new nicks.
modes - new modes.

nickJoin

public void nickJoin(java.lang.String nick,
                     java.lang.String mode)
Description copied from interface: ChannelListener
A new nick has joined.

Specified by:
nickJoin in interface ChannelListener
Parameters:
nick - the nick who joined.
mode - nick mode.

nickPart

public void nickPart(java.lang.String nick,
                     java.lang.String reason)
Description copied from interface: ChannelListener
A nick has part.

Specified by:
nickPart in interface ChannelListener
Parameters:
nick - the nick who part.
reason - reason.

nickKick

public void nickKick(java.lang.String nick,
                     java.lang.String by,
                     java.lang.String reason)
Description copied from interface: ChannelListener
A nick has been kicked.

Specified by:
nickKick in interface ChannelListener
Parameters:
nick - the nick who has been kicked.
by - the nick who kicked.
reason - kick reason.

nickQuit

public void nickQuit(java.lang.String nick,
                     java.lang.String reason)
Description copied from interface: ChannelListener
A nick has quit.

Specified by:
nickQuit in interface ChannelListener
Parameters:
nick - the nick who quit.
reason - reason.

topicChanged

public void topicChanged(java.lang.String topic,
                         java.lang.String by)
Description copied from interface: ChannelListener
The topic has been changed.

Specified by:
topicChanged in interface ChannelListener
Parameters:
topic - new topic.
by - user who changed topic.

modeApply

public void modeApply(java.lang.String mode,
                      java.lang.String from)
Description copied from interface: ChannelListener
Channel mode applied.

Specified by:
modeApply in interface ChannelListener
Parameters:
mode - applied mode.
from - user who applied mode.

nickModeApply

public void nickModeApply(java.lang.String nick,
                          java.lang.String mode,
                          java.lang.String from)
Description copied from interface: ChannelListener
Nick mode applied.

Specified by:
nickModeApply in interface ChannelListener
Parameters:
nick - user on wich mode applied.
mode - applied mode.
from - user who applied mode.

nickChanged

public void nickChanged(java.lang.String oldNick,
                        java.lang.String newNick)
Description copied from interface: ChannelListener
Nick changed.

Specified by:
nickChanged in interface ChannelListener
Parameters:
oldNick - old nick.
newNick - new nick.

nickWhoisUpdated

public void nickWhoisUpdated(java.lang.String nick,
                             java.lang.String whois)
Description copied from interface: ChannelListener
Whois bufferised information has been updated.

Specified by:
nickWhoisUpdated in interface ChannelListener
Parameters:
nick - nick on wich new whois information is available.
whois - whois string for nick.

eventOccured

public void eventOccured(java.lang.String nick,
                         java.awt.event.MouseEvent e)
Description copied from interface: PixxNickListListener
Some mouse event occured on a nick.

Specified by:
eventOccured in interface PixxNickListListener
Parameters:
nick - the nick.
e - the mouse event.

ASLEventOccured

public void ASLEventOccured(java.lang.String nick,
                            java.lang.String info)
Description copied from interface: PixxNickListListener
An ASL event occured.

Specified by:
ASLEventOccured in interface PixxNickListListener
Parameters:
nick - the nickname.
info - the nick name whois information string.

nickEvent

public void nickEvent(StyledList lis,
                      java.lang.String nick,
                      java.awt.event.MouseEvent e)
Description copied from interface: StyledListListener
A nick event has occured on a channel.

Specified by:
nickEvent in interface StyledListListener
Overrides:
nickEvent in class AWTSource
Parameters:
lis - the source list.
nick - the nick name.
e - the mouse event associated with this event.