Package voxo.client.listeners

Source Code of voxo.client.listeners.ButtonLogoutListener

package voxo.client.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

import com.sun.org.apache.xpath.internal.operations.Bool;

import voxo.client.actions.LogoutAction;
import voxo.client.controllers.ClientController;
import voxo.client.views.MainView;

public class ButtonLogoutListener implements ActionListener {

  private ClientController  c;
  private MainView      j;

  public ButtonLogoutListener(MainView j, ClientController c) {
    this.c = c;
    this.j = j;
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    //Signaler le depart au srv
    new LogoutAction(c, c.getMe().getUsername(), j);
  }

}
TOP

Related Classes of voxo.client.listeners.ButtonLogoutListener

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.