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.

Version:
1.0
Author:
T.J. Willis

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

Field Detail

TRUE

static final java.lang.String TRUE
Describe constant TRUE here.

See Also:
Constant Field Values

FALSE

static final java.lang.String FALSE
Describe constant FALSE here.

See Also:
Constant Field Values
Method Detail

getCurrentModel

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

Returns:
an Object value

getRawModel

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

Returns:
an Object value

setToken

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

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

getValue

java.lang.Object getValue(java.lang.Object key)
Describe getValue method here.

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

toString

java.lang.String toString()
Describe toString method here.

Overrides:
toString in class java.lang.Object
Returns:
a String value