Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.lucane.plugins.reunion
Class Reunion  view Reunion download Reunion.java

java.lang.Object
  extended byorg.lucane.client.Plugin
      extended byorg.lucane.plugins.reunion.Reunion
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.KeyListener, org.lucane.common.ObjectListener, java.lang.Runnable, java.awt.event.WindowListener

public class Reunion
extends org.lucane.client.Plugin
implements java.awt.event.ActionListener, java.awt.event.KeyListener, org.lucane.common.ObjectListener


Field Summary
private  javax.swing.JButton btnDlg
           
private  org.lucane.common.ConnectInfo coordinator
           
private  javax.swing.JFrame dialog
           
private  boolean exited
           
private  javax.swing.JFrame frame
           
private  org.lucane.common.ConnectInfo[] friends
           
private  javax.swing.JLabel lblInfo
           
private  javax.swing.JList lstUsers
           
protected  org.lucane.common.ObjectConnection ocCoordinator
           
protected  org.lucane.common.ObjectConnection[] ocFriends
           
private  java.lang.String subject
           
(package private)  javax.swing.JTextArea txtRead
           
private  javax.swing.JTextField txtSend
           
private  javax.swing.JTextField txtSubject
           
private  javax.swing.DefaultListModel users
           
 
Fields inherited from class org.lucane.client.Plugin
bundle, starter
 
Constructor Summary
Reunion()
           
Reunion(org.lucane.common.ConnectInfo[] friends, boolean starter)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This method is invoked when an action occurs.
 void addUser(java.lang.String user)
           
 void delUser(java.lang.String user)
           
 void end()
           
 void follow()
          Used by the PluginLoader when a plugin is loaded after a network query.
 org.lucane.client.Plugin init(org.lucane.common.ConnectInfo[] friends, boolean starter)
          Used by the PluginLoader to initialize the plugin with adequate parameters
private  void initMainFrame()
           
 void keyPressed(java.awt.event.KeyEvent ke)
          This method is called when a key is pressed.
 void keyReleased(java.awt.event.KeyEvent e)
          This method is called when a key is released.
 void keyTyped(java.awt.event.KeyEvent e)
          This method is called when a key is typed.
 void load(org.lucane.common.ObjectConnection oc, org.lucane.common.ConnectInfo who, java.lang.String data)
          Used by the PluginLoader to load a plugin previously initialized with a command String and a Socket to communicate with.
 void objectRead(java.lang.Object o)
           
private  void process(java.lang.String msg)
           
private  void saveReunion()
           
private  void shareMessage(java.lang.String msg)
           
 void start()
          Used when a plugin is started (ie.
 void windowClosing(java.awt.event.WindowEvent we)
          Useful to exit() properly.
 
Methods inherited from class org.lucane.client.Plugin
exit, getAuthor, getCategory, getDirectory, getEmail, getIcon, getName, getTitle, getToolTip, getVersion, run, setLocale, tr, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinator

private org.lucane.common.ConnectInfo coordinator

friends

private org.lucane.common.ConnectInfo[] friends

subject

private java.lang.String subject

ocCoordinator

protected org.lucane.common.ObjectConnection ocCoordinator

ocFriends

protected org.lucane.common.ObjectConnection[] ocFriends

dialog

private javax.swing.JFrame dialog

lblInfo

private javax.swing.JLabel lblInfo

txtSubject

private javax.swing.JTextField txtSubject

btnDlg

private javax.swing.JButton btnDlg

frame

private javax.swing.JFrame frame

txtSend

private javax.swing.JTextField txtSend

lstUsers

private javax.swing.JList lstUsers

users

private javax.swing.DefaultListModel users

txtRead

javax.swing.JTextArea txtRead

exited

private boolean exited
Constructor Detail

Reunion

public Reunion()

Reunion

public Reunion(org.lucane.common.ConnectInfo[] friends,
               boolean starter)
Method Detail

init

public org.lucane.client.Plugin init(org.lucane.common.ConnectInfo[] friends,
                                     boolean starter)
Description copied from class: org.lucane.client.Plugin
Used by the PluginLoader to initialize the plugin with adequate parameters


load

public void load(org.lucane.common.ObjectConnection oc,
                 org.lucane.common.ConnectInfo who,
                 java.lang.String data)
Description copied from class: org.lucane.client.Plugin
Used by the PluginLoader to load a plugin previously initialized with a command String and a Socket to communicate with.


start

public void start()
Description copied from class: org.lucane.client.Plugin
Used when a plugin is started (ie. not loaded afeter a network request). For example, it is called when a user wants to send a mesage to another. It allows the plugin developpeur to ask for other parameters interactively.


follow

public void follow()
Description copied from class: org.lucane.client.Plugin
Used by the PluginLoader when a plugin is loaded after a network query.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Description copied from class: org.lucane.client.Plugin
Useful to exit() properly. Must be used as WindowListener for graphical plugins. Example : JFrame jf = new JFrame(); jf.addWindowListener(this);

Specified by:
windowClosing in interface java.awt.event.WindowListener

initMainFrame

private void initMainFrame()

keyPressed

public void keyPressed(java.awt.event.KeyEvent ke)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is released.

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is typed. A key is considered typed when it and all modifiers have been pressed and released, mapping to a single virtual key.

Specified by:
keyTyped in interface java.awt.event.KeyListener

addUser

public void addUser(java.lang.String user)

delUser

public void delUser(java.lang.String user)

end

public void end()

saveReunion

private void saveReunion()

objectRead

public void objectRead(java.lang.Object o)
Specified by:
objectRead in interface org.lucane.common.ObjectListener

shareMessage

private void shareMessage(java.lang.String msg)

process

private void process(java.lang.String msg)