net.sourceforge.sillyview
Interface WidgetModel

All Known Implementing Classes:
VelocityModel

public interface WidgetModel

A base interface for models. Every model must be able to set a token, and get a token, as well as return its current state, it's unprocessed value, and a String representation of itself.


Field Summary
static String FALSE
          Describe constant FALSE here.
static String TRUE
          Describe constant TRUE here.
 
Method Summary
 Object getCurrentModel()
          Returns the current model, with tokens processed.
 Object getRawModel()
          Returns the current model, with tokens unprocessed.
 Object getValue(Object key)
          Describe getValue method here.
 void setToken(Object key, Object value)
          Describe setToken method here.
 String toString()
          Describe toString method here.
 

Field Detail

TRUE

static final String TRUE
Describe constant TRUE here.

See Also:
Constant Field Values

FALSE

static final String FALSE
Describe constant FALSE here.

See Also:
Constant Field Values
Method Detail

getCurrentModel

Object getCurrentModel()
Returns the current model, with tokens processed.

Returns:
an Object value

getRawModel

Object getRawModel()
Returns the current model, with tokens unprocessed.

Returns:
an Object value

setToken

void setToken(Object key,
              Object value)
Describe setToken method here.

Parameters:
key - an Object value
value - an Object value

getValue

Object getValue(Object key)
Describe getValue method here.

Parameters:
key - an Object value
Returns:
an Object value

toString

String toString()
Describe toString method here.

Overrides:
toString in class Object
Returns:
a String value