annotate rep/ConnectButtonEvent.java @ 334:4fae49280699
Test pattern for Inter-Session Manager communication
author |
kono |
date |
Sun, 12 Oct 2008 14:38:58 +0900 |
parents |
18d6a7140fa3 |
children |
c78569ab5fce |
rev |
line source |
222
|
1 package rep;
|
|
2
|
|
3 public class ConnectButtonEvent implements SessionManagerEvent{
|
|
4
|
|
5 private String host;
|
|
6
|
334
|
7 public ConnectButtonEvent(String host) {
|
222
|
8 this.host = host;
|
|
9 }
|
|
10
|
|
11 public String getHost() {
|
|
12 return host;
|
|
13 }
|
|
14
|
334
|
15 public void exec(SessionManager manager) {
|
222
|
16 manager.connectSession(host);
|
|
17 }
|
|
18
|
|
19 }
|