package com.github.easyadmin.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.github.easyadmin.request.ClipboardSendRequest;
import com.github.easyadmin.util.FlavorHandler;

public class ClipboardReceiveListener implements ActionListener {
	private String hostName;
	
	public ClipboardReceiveListener(String hostName)
	{
		this.hostName = hostName;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		ClipboardSendRequest request = ClipboardSendRequest.makeClipboardRequest(hostName);
		FlavorHandler handler = request.getFlavorHandler();
		handler.setClipboard();
	}
}
