See on Tõrva Gümnaasiumi vana veebilehe arhiiv. Uus veebileht: https://torva.edu.ee/

AWTChanList (PJIRC project)

Lisamaterjalide loend

Algne fail: vana_veeb/pjirc/doc/javadoc/irc/gui/AWTChanList.html.

========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========

irc.gui
Class AWTChanList

java.lang.Object
  |
  +--irc.gui.AWTChanList
All Implemented Interfaces:
java.awt.event.AdjustmentListener, ChanListListener, Comparator, java.util.EventListener, StyledListListener, java.awt.event.WindowListener

public class AWTChanList
extends java.lang.Object
implements ChanListListener, java.awt.event.WindowListener, java.awt.event.AdjustmentListener, StyledListListener, Comparator

The AWT channel list.


Field Summary
protected  java.awt.Frame _frame
           
protected  java.awt.Scrollbar _hscroll
           
protected  ChanList _list
           
protected  java.awt.Panel _panel
           
protected  StyledList _slist
           
protected  java.awt.Scrollbar _vscroll
           
 
Constructor Summary
AWTChanList(IRCConfiguration config, ChanList list)
          Create a new AWTChanList.
 
Method Summary
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
           
 void channelAdded(ChannelInfo item)
          A new channel has been added in the channel list.
 void channelBegin()
          A new listing has began.
 void channelEnd()
          The current listing is terminated.
 void channelEvent(StyledList lis, java.lang.String chan, java.awt.event.MouseEvent e)
          A mouse event has occured on a channel.
 void close()
          Close this channel list.
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two objects.
 void copyEvent(StyledList lis, java.lang.String txt, java.awt.event.MouseEvent e)
          A copy event has occured on a channel.
 ChanList getChanList()
          Get the source chanlist.
 void nickEvent(StyledList lis, java.lang.String nick, java.awt.event.MouseEvent e)
          A nick event has occured on a channel.
 void setTitle(java.lang.String title)
          Set this chanlist title.
 void URLEvent(StyledList lis, java.lang.String url, java.awt.event.MouseEvent e)
          An url event has occured on a channel.
 void virtualSizeChanged(StyledList lis)
          The logical width or height of the list has changed.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_list

protected ChanList _list

_frame

protected java.awt.Frame _frame

_hscroll

protected java.awt.Scrollbar _hscroll

_vscroll

protected java.awt.Scrollbar _vscroll

_slist

protected StyledList _slist

_panel

protected java.awt.Panel _panel
Constructor Detail

AWTChanList

public AWTChanList(IRCConfiguration config,
                   ChanList list)
Create a new AWTChanList.

Parameters:
config - the global irc configuration.
list - the source channel list.

Method Detail

setTitle

public void setTitle(java.lang.String title)
Set this chanlist title.

Parameters:
title - new chanlist title.


getChanList

public ChanList getChanList()
Get the source chanlist.

Returns:
source chanlist.


channelBegin

public void channelBegin()
Description copied from interface: ChanListListener
A new listing has began.

Specified by:
channelBegin in interface ChanListListener


channelEnd

public void channelEnd()
Description copied from interface: ChanListListener
The current listing is terminated.

Specified by:
channelEnd in interface ChanListListener


channelAdded

public void channelAdded(ChannelInfo item)
Description copied from interface: ChanListListener
A new channel has been added in the channel list.

Specified by:
channelAdded in interface ChanListListener
Parameters:
item - the newly added item.


compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Description copied from interface: Comparator
Compare two objects.

Specified by:
compare in interface Comparator
Parameters:
o1 - first object.
o2 - second object.
Returns:
negative if a lesser than b, positive if a greater than b, and zero if a equals b.


close

public void close()
Close this channel list.


windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener

channelEvent

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

Specified by:
channelEvent in interface StyledListListener
Parameters:
lis - the source list.
chan - the channel name.
e - the mouse event associated with this event.


URLEvent

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

Specified by:
URLEvent in interface StyledListListener
Parameters:
lis - the source list.
url - the url name.
e - the mouse event associated with this event.


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
Parameters:
lis - the source list.
nick - the nick name.
e - the mouse event associated with this event.


copyEvent

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

Specified by:
copyEvent in interface StyledListListener
Parameters:
lis - the source list.
txt - the copied text.
e - the mouse event associated with this event.


virtualSizeChanged

public void virtualSizeChanged(StyledList lis)
Description copied from interface: StyledListListener
The logical width or height of the list has changed.

Specified by:
virtualSizeChanged in interface StyledListListener
Parameters:
lis - the source list.