org.vizzini.ui.game
Class TokenUISupport

java.lang.Object
  extended by org.vizzini.ui.game.TokenUISupport
All Implemented Interfaces:
IStateful, ITokenUI

public class TokenUISupport
extends Object
implements ITokenUI

Provides support for token user interfaces in the game framework.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Nested Class Summary
(package private) static class TokenUISupport.MyStatefulSupport
          Provides a concrete implementation of StatefulSupport.
 
Constructor Summary
TokenUISupport()
           
 
Method Summary
 void configure(Properties properties, int index)
          Configure this token.
 IState getAbsoluteState()
          Return the absolute state.
 IState getState()
          Return the state.
 IStateful getStatefulParent()
          Return the parent.
protected  StatefulSupport getStatefulSupport()
          Create a stateful support object.
 IToken getToken()
          Return the token.
 void setStatefulParent(IStateful parent)
          Set the parent.
 void setToken(IToken token)
          Set the associated token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenUISupport

public TokenUISupport()
Method Detail

configure

public void configure(Properties properties,
                      int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this token.

Specified by:
configure in interface ITokenUI
Parameters:
properties - Source of configuration information.
index - Index of this token's properties.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.3

getAbsoluteState

public IState getAbsoluteState()
Return the absolute state.

Specified by:
getAbsoluteState in interface IStateful
Since:
v0.2

getState

public IState getState()
Return the state.

Specified by:
getState in interface IStateful
Since:
v0.2

getStatefulParent

public IStateful getStatefulParent()
Return the parent.

Specified by:
getStatefulParent in interface IStateful
Since:
v0.2

getToken

public IToken getToken()
Return the token.

Specified by:
getToken in interface ITokenUI
Since:
v0.1

setStatefulParent

public void setStatefulParent(IStateful parent)
Set the parent.

Specified by:
setStatefulParent in interface IStateful
Since:
v0.2

setToken

public void setToken(IToken token)
Set the associated token.

Specified by:
setToken in interface ITokenUI
Parameters:
token - The associated token.
Since:
v0.1

getStatefulSupport

protected StatefulSupport getStatefulSupport()
Create a stateful support object.

Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02