irc.gui
Class AWTDCCFile

java.lang.Object
  |
  +--irc.gui.AWTDCCFile
All Implemented Interfaces:
DCCFileListener, java.util.EventListener, java.awt.event.WindowListener

public class AWTDCCFile
extends java.lang.Object
implements DCCFileListener, java.awt.event.WindowListener

The AWT dcc file interface.


Field Summary
protected  AWTProgressBar _bar
           
protected  DCCFile _file
           
protected  java.awt.Frame _frame
           
 
Constructor Summary
AWTDCCFile(IRCConfiguration config, DCCFile file)
          Create a new AWTDCCFile.
 
Method Summary
 void activate()
          Activate this frame.
 void close()
          Close this transfert.
 void failed()
          The transfert failed.
 void finished()
          The transfert is finished sucessfully.
 DCCFile getFile()
          Get the source DCCFile.
 java.lang.String getText(int code)
          Get formatted text associated with the given text code, with no parameter.
 java.lang.String getText(int code, java.lang.String p1)
          Get formatted text associated with the given text code, with one parameter.
 java.lang.String getText(int code, java.lang.String p1, java.lang.String p2)
          Get formatted text associated with the given text code, with two parameters.
 java.lang.String getText(int code, java.lang.String p1, java.lang.String p2, java.lang.String p3)
          Get formatted text associated with the given text code, with three parameters.
 void release()
          Release this object.
 void transmitted(java.lang.Integer icount)
          Notify a transfert progression.
 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

_file

protected DCCFile _file

_frame

protected java.awt.Frame _frame

_bar

protected AWTProgressBar _bar
Constructor Detail

AWTDCCFile

public AWTDCCFile(IRCConfiguration config,
                  DCCFile file)
Create a new AWTDCCFile.

Parameters:
config - the global irc configuration.
file - the source DCCFile.
Method Detail

release

public void release()
Release this object.


getText

public java.lang.String getText(int code)
Get formatted text associated with the given text code, with no parameter.

Parameters:
code - text code.
Returns:
formatted text.

getText

public java.lang.String getText(int code,
                                java.lang.String p1)
Get formatted text associated with the given text code, with one parameter.

Parameters:
code - text code.
p1 - first parameter.
Returns:
formatted text.

getText

public java.lang.String getText(int code,
                                java.lang.String p1,
                                java.lang.String p2)
Get formatted text associated with the given text code, with two parameters.

Parameters:
code - text code.
p1 - first parameter.
p2 - second parameter.
Returns:
formatted text.

getText

public java.lang.String getText(int code,
                                java.lang.String p1,
                                java.lang.String p2,
                                java.lang.String p3)
Get formatted text associated with the given text code, with three parameters.

Parameters:
code - text code.
p1 - first parameter.
p2 - second parameter.
p3 - third parameter.
Returns:
formatted text.

getFile

public DCCFile getFile()
Get the source DCCFile.

Returns:
source DCCFile.

activate

public void activate()
Activate this frame.


close

public void close()
Close this transfert.


transmitted

public void transmitted(java.lang.Integer icount)
Description copied from interface: DCCFileListener
Notify a transfert progression.

Specified by:
transmitted in interface DCCFileListener
Parameters:
icount - amount of byte that are already transferred.

finished

public void finished()
Description copied from interface: DCCFileListener
The transfert is finished sucessfully.

Specified by:
finished in interface DCCFileListener

failed

public void failed()
Description copied from interface: DCCFileListener
The transfert failed.

Specified by:
failed in interface DCCFileListener

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