fi.hut.tml.xsmiles
Class BrowserLogic

java.lang.Object
  extended byfi.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)

Field Summary
static int ACTIVATING_MLFC
           
static int DISPLAYINGCONTENT
           
static int ERROROCCURED
           
static int INITIALIZING_MLFC
           
static int INITIALIZINGBROWSER
           
static int INITIALIZINGCOMPONENT
           
static int NOT_STOPPABLE
           
static int READY
           
static int RETRIEVINGCOMPONENT
           
static int RETRIEVINGCONTENTDATA
           
static int RETRIEVINGDOCUMENT
           
static int RETRIEVINGERRORDOCUMENT
           
static int RETRIEVINGSECONDARYDOCUMENT
           
static int SHUTTINGDOWN
           
static int STOPPED
           
 
Constructor Summary
BrowserLogic(BrowserWindow b)
           
 
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
 

Field Detail

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
Constructor Detail

BrowserLogic

public BrowserLogic(BrowserWindow b)
Method Detail

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