KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > gui > ResponseWrapper


1 package net.suberic.pooka.gui;
2
3 /**
4  * This is just a wrapper class for handling responses from other
5  * threads. We're doing it like this because of the old final problems
6  * in going between multiple threads.
7  */

8 class ResponseWrapper {
9
10   // the return values;
11
int mInt = -1;
12   boolean mBoolean = false;
13   String JavaDoc mString = "";
14
15   public void setInt(int pInt) {
16     mInt = pInt;
17   }
18
19   public int getInt() {
20     return mInt;
21   }
22
23   public void setBoolean(boolean pBoolean) {
24     mBoolean = pBoolean;
25   }
26
27   public boolean getBoolean() {
28     return mBoolean;
29   }
30
31   public void setString(String JavaDoc pString) {
32     mString = pString;
33   }
34
35   public String JavaDoc getString() {
36     return mString;
37   }
38 }
39
Popular Tags