java.lang.Object
org.lucane.client.Plugin
org.lucane.plugins.maininterface.MainInterface
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable, org.lucane.client.UserListListener, java.awt.event.WindowListener
- public class MainInterface
- extends org.lucane.client.Plugin
- implements java.awt.event.ActionListener, org.lucane.client.UserListListener
| 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 |
NB_BUTTONS
private static final int NB_BUTTONS
- See Also:
- Constant Field Values
service
private org.lucane.common.ConnectInfo service
buttons
private java.util.Vector buttons
names
private java.util.Vector names
parent
private org.lucane.client.Client parent
commu
private org.lucane.client.Communicator commu
ploader
private org.lucane.client.PluginLoader ploader
frame
private javax.swing.JFrame frame
pnlUsers
private javax.swing.JPanel pnlUsers
pnlPlugins
private javax.swing.JPanel pnlPlugins
cmbGroups
private javax.swing.JComboBox cmbGroups
lstUsers
private javax.swing.JList lstUsers
mnuBar
private javax.swing.JMenuBar mnuBar
mnuMain
private javax.swing.JMenu mnuMain
mnuExtends
private javax.swing.JMenu mnuExtends
mnuExit
private javax.swing.JMenuItem mnuExit
MainInterface
public MainInterface()
- Void contructor. Used by PluginLoader
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 friend,
org.lucane.common.ConnectInfo who,
java.lang.String command)
- Load the plugin from a network request.
start
public void start()
- Show a dialog asking for the friend name
follow
public void follow()
- This is called if you are not starting the plugin.
userListChanged
public void userListChanged(java.util.Vector logins)
- Description copied from interface:
org.lucane.client.UserListListener
- The list has changed
- Specified by:
userListChanged in interface org.lucane.client.UserListListener
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
cleanExit
private void cleanExit()