
Public Member Functions | |
| String | getResult () |
| void | setResult (String theResult) |
Static Public Member Functions | |
| static BlockingResult | getInstance () |
Private Member Functions | |
| BlockingResult () | |
Private Attributes | |
| String | theResult |
Static Private Attributes | |
| static BlockingResult | me |
Definition at line 20 of file BlockingResult.java.
| org::scilab::modules::gui::events::BlockingResult::BlockingResult | ( | ) | [inline, private] |
Constructor
Definition at line 29 of file BlockingResult.java.
References theResult.
Referenced by getInstance().
00029 { 00030 theResult = null; 00031 }

| static BlockingResult org::scilab::modules::gui::events::BlockingResult::getInstance | ( | ) | [inline, static] |
Get the current instance of BlockingResult
Definition at line 37 of file BlockingResult.java.
References BlockingResult(), and me.
00037 { 00038 if (me == null) { 00039 me = new BlockingResult(); 00040 } 00041 return me; 00042 }

| String org::scilab::modules::gui::events::BlockingResult::getResult | ( | ) | [inline] |
Get the user input (wait until it)
Definition at line 48 of file BlockingResult.java.
00048 { 00049 synchronized (me) { 00050 try { 00051 me.wait(); 00052 } catch (InterruptedException e) { 00053 // TODO Auto-generated catch block 00054 e.printStackTrace(); 00055 } 00056 } 00057 return me.theResult; 00058 }
| void org::scilab::modules::gui::events::BlockingResult::setResult | ( | String | theResult | ) | [inline] |
Set the result for this BlockingResult and notify
| theResult | the user input to set |
Definition at line 64 of file BlockingResult.java.
References me.
00064 { 00065 this.theResult = theResult; 00066 synchronized (me) { 00067 me.notify(); 00068 } 00069 }
BlockingResult org::scilab::modules::gui::events::BlockingResult::me [static, private] |
Definition at line 22 of file BlockingResult.java.
Referenced by getInstance(), getResult(), and setResult().
String org::scilab::modules::gui::events::BlockingResult::theResult [private] |
1.5.5