view rep/SelectButtonEvent.java @ 287:1ff8bfc0a99a test-editor

*** empty log message ***
author kono
date Sun, 28 Sep 2008 15:46:36 +0900
parents 526ee0354067
children 77f443f6dc9f
line wrap: on
line source

package rep;

import rep.channel.REPSocketChannel;

public class SelectButtonEvent implements SessionManagerEvent{

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

	public SelectButtonEvent(Editor editor, Session session, SessionManagerEventListener listener) {
		this.editorChannel = editor.getChannel();
		this.eid = editor.getEID();
		this.sid = session.getSID();
		this.manager = (SessionManager)listener;
	}

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

	public int getSID() {
		return sid;
	}

	public int getEID() {
		return eid;
	}

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

}