java.lang.Object
org.lucane.client.Plugin
org.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
| 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 |
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
Reunion
public Reunion()
Reunion
public Reunion(org.lucane.common.ConnectInfo[] friends,
boolean starter)
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)