58 |
* Tells whether the Bean can run without a GUI or not. |
* Tells whether the Bean can run without a GUI or not. |
59 |
* @return false if Bean can run without a GUI, else true. |
* @return false if Bean can run without a GUI, else true. |
60 |
*/ |
*/ |
61 |
public abstract boolean needsGui(); |
boolean needsGui(); |
62 |
|
|
63 |
/** |
/** |
64 |
* Tells whether Bean is trying not to use the GUI. |
* Tells whether Bean is trying not to use the GUI. |
65 |
* If needsGui() is true, this method should always return false. |
* If needsGui() is true, this method should always return false. |
66 |
* @return true if definitely not using GUI, otherwise false. |
* @return true if definitely not using GUI, otherwise false. |
67 |
*/ |
*/ |
68 |
public abstract boolean avoidingGui(); |
boolean avoidingGui(); |
69 |
|
|
70 |
/** |
/** |
71 |
* Tells the Bean not to use GUI methods. |
* Tells the Bean not to use GUI methods. |
72 |
* If needsGUI() is false, then after this method is called, |
* If needsGUI() is false, then after this method is called, |
73 |
* avoidingGui() should return true. |
* avoidingGui() should return true. |
74 |
*/ |
*/ |
75 |
public abstract void dontUseGui(); |
void dontUseGui(); |
76 |
|
|
77 |
/** |
/** |
78 |
* Tells the Bean it may use the GUI. |
* Tells the Bean it may use the GUI. |
81 |
* false, avoidingGui() may return true or false after this method |
* false, avoidingGui() may return true or false after this method |
82 |
* is called. |
* is called. |
83 |
*/ |
*/ |
84 |
public abstract void okToUseGui(); |
void okToUseGui(); |
85 |
} |
} |