fi.hut.tml.xsmiles
Class BrowserLogic
java.lang.Object
fi.hut.tml.xsmiles.BrowserLogic
- public class BrowserLogic
- extends java.lang.Object
Not only contains enumeration, but also browser logic, on what is done when
state changes.
FIXME! BrowserLogic could contain timeouts when transitioning from one state
to another..
The "enumeration" values for the browser state (of type int).
- Author:
- Juha, (Jukka Heinonen)
|
Method Summary |
int |
getState()
?@return The current state of the browser |
java.lang.String |
getStateString(int i)
Gets the state string corresponging to the integer value of the browser
state. |
void |
setState(int s)
|
void |
setState(int s,
java.lang.String text)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIALIZINGBROWSER
public static final int INITIALIZINGBROWSER
- See Also:
- Constant Field Values
RETRIEVINGDOCUMENT
public static final int RETRIEVINGDOCUMENT
- See Also:
- Constant Field Values
RETRIEVINGCOMPONENT
public static final int RETRIEVINGCOMPONENT
- See Also:
- Constant Field Values
INITIALIZINGCOMPONENT
public static final int INITIALIZINGCOMPONENT
- See Also:
- Constant Field Values
RETRIEVINGCONTENTDATA
public static final int RETRIEVINGCONTENTDATA
- See Also:
- Constant Field Values
DISPLAYINGCONTENT
public static final int DISPLAYINGCONTENT
- See Also:
- Constant Field Values
STOPPED
public static final int STOPPED
- See Also:
- Constant Field Values
READY
public static final int READY
- See Also:
- Constant Field Values
ERROROCCURED
public static final int ERROROCCURED
- See Also:
- Constant Field Values
RETRIEVINGERRORDOCUMENT
public static final int RETRIEVINGERRORDOCUMENT
- See Also:
- Constant Field Values
RETRIEVINGSECONDARYDOCUMENT
public static final int RETRIEVINGSECONDARYDOCUMENT
- See Also:
- Constant Field Values
SHUTTINGDOWN
public static final int SHUTTINGDOWN
- See Also:
- Constant Field Values
NOT_STOPPABLE
public static final int NOT_STOPPABLE
- See Also:
- Constant Field Values
ACTIVATING_MLFC
public static final int ACTIVATING_MLFC
- See Also:
- Constant Field Values
INITIALIZING_MLFC
public static final int INITIALIZING_MLFC
- See Also:
- Constant Field Values
BrowserLogic
public BrowserLogic(BrowserWindow b)
setState
public void setState(int s)
setState
public void setState(int s,
java.lang.String text)
- Parameters:
s - Change the state of the browser.text - A descriptor of what is happening can be used to pass state
change description related strings. (not mandatory)
getState
public int getState()
- ?@return The current state of the browser
getStateString
public java.lang.String getStateString(int i)
- Gets the state string corresponging to the integer value of the browser
state.
- Returns:
- state string
X-Smiles 1.2