view rep/REPActionEvent.java @ 218:827c439d0da4

*** empty log message ***
author pin
date Sun, 31 Aug 2008 07:53:28 +0900
parents e8f716498caf
children
line wrap: on
line source

package rep;

import rep.channel.REPSocketChannel;

public class REPActionEvent<P> implements SessionManagerEvent{

	private REPSocketChannel<P> editorChannel;
	private int sid;
	private int eid;
	private SessionManager manager;

	public REPActionEvent(EditorPlus<P> plus, SessionPlus plus2, SessionManager manager) {
		this.editorChannel = plus.getChannel();
		this.eid = plus.getEID();
		this.sid = plus2.getSID();
		this.manager = manager;
	}

	public REPSocketChannel<P> getEditorChannel() {
		return editorChannel;
	}

	public int getSID() {
		return sid;
	}

	public int getEID() {
		return eid;
	}

	public void exec() {
		manager.selectSession(this);
	}

}