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

Quick Search    Search Deep

org.lucane.plugins.maininterface
Class MainInterface  view MainInterface download MainInterface.java

java.lang.Object
  extended byorg.lucane.client.Plugin
      extended byorg.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


Field Summary
private  java.util.Vector buttons
           
private  javax.swing.JComboBox cmbGroups
           
private  org.lucane.client.Communicator commu
           
private  javax.swing.JFrame frame
           
private  javax.swing.JList lstUsers
           
private  javax.swing.JMenuBar mnuBar
           
private  javax.swing.JMenuItem mnuExit
           
private  javax.swing.JMenu mnuExtends
           
private  javax.swing.JMenu mnuMain
           
private  java.util.Vector names
           
private static int NB_BUTTONS
           
private  org.lucane.client.Client parent
           
private  org.lucane.client.PluginLoader ploader
           
private  javax.swing.JPanel pnlPlugins
           
private  javax.swing.JPanel pnlUsers
           
private  org.lucane.common.ConnectInfo service
           
 
Fields inherited from class org.lucane.client.Plugin
bundle, starter
 
Constructor Summary
MainInterface()
          Void contructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This method is invoked when an action occurs.
private  void cleanExit()
           
 void follow()
          This is called if you are not starting the plugin.
 org.lucane.client.Plugin init(org.lucane.common.ConnectInfo[] friends, boolean starter)
          Used by the PluginLoader to initialize the plugin with adequate parameters
 void load(org.lucane.common.ObjectConnection friend, org.lucane.common.ConnectInfo who, java.lang.String command)
          Load the plugin from a network request.
 void start()
          Show a dialog asking for the friend name
 void userListChanged(java.util.Vector logins)
          The list has changed
 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

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
Constructor Detail

MainInterface

public MainInterface()
Void contructor. Used by PluginLoader

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 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()