Package lmnd.controller

Source Code of lmnd.controller.SendController

package lmnd.controller;

import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import lmnd.view.FileListPanel;
import lmnd.view.SendDialog;

/**
*
*/
public class SendController implements ActionListener {

        private FileListPanel[] panels;

        public SendController() {}

        public void setPanels(FileListPanel[] panels) {
                this.panels = panels;
        }

        public void actionPerformed(ActionEvent event) {
                Container parent = getRoot();
                SendDialog dialog = new SendDialog(parent, this.panels);
        }

        private Container getRoot() {
                JPanel panel = panels[0];
                Container root = panel.getRootPane();
                return root;
        }
}
TOP

Related Classes of lmnd.controller.SendController

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.