Mercurial > hg > RemoteEditor > REPSessionManager
annotate rep/ConnectButtonEvent.java @ 281:c3969dd625b2
GUIless test routine.
author | kono |
---|---|
date | Sat, 27 Sep 2008 22:55:13 +0900 |
parents | 18d6a7140fa3 |
children | 4fae49280699 |
rev | line source |
---|---|
222 | 1 package rep; |
2 | |
3 public class ConnectButtonEvent implements SessionManagerEvent{ | |
4 | |
5 private String host; | |
6 private SessionManager manager; | |
7 | |
8 public ConnectButtonEvent(SessionManagerEventListener listener, String host) { | |
9 this.manager = (SessionManager)listener; | |
10 this.host = host; | |
11 } | |
12 | |
13 public String getHost() { | |
14 return host; | |
15 } | |
16 | |
17 public void exec() { | |
18 manager.connectSession(host); | |
19 } | |
20 | |
21 } |