|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sillyview.StringBufferView
public class StringBufferView
A StringBuffer that has a backing WidgetModel to provide its data. Useful mostly for debugging and servlets.
Field Summary |
---|
Fields inherited from interface net.sourceforge.sillyview.WidgetView |
---|
FALSE, TITLE, TRUE |
Constructor Summary | |
---|---|
StringBufferView(WidgetModel model)
Creates a new StringBufferView instance. |
Method Summary | |
---|---|
void |
addTokens(Map<Object,Object> props)
Adds all the name/value pairs and then updates the model. |
boolean |
equals(Object o)
Uses StringBuffer.equals() to test for equality. |
WidgetModel |
getModel()
Returns the backing model. |
Object |
getValue(Object key)
Gets the value of the named token. |
void |
setModel(WidgetModel newModel)
Sets the backing model. |
void |
setToken(Object key,
Object value)
Sets the named token to the given value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringBufferView(WidgetModel model)
StringBufferView
instance.
model
- a WidgetModel
valueMethod Detail |
---|
public void addTokens(Map<Object,Object> props)
addTokens
in interface WidgetView
props
- a Map
valuepublic void setToken(Object key, Object value)
setToken
in interface WidgetView
key
- an Object
valuevalue
- an Object
valuepublic Object getValue(Object key)
getValue
in interface WidgetView
key
- an Object
value
Object
valuepublic WidgetModel getModel()
getModel
in interface WidgetView
WidgetModel
valuepublic void setModel(WidgetModel newModel)
setModel
in interface WidgetView
newModel
- a WidgetModel
valuepublic boolean equals(Object o)
equals
in class Object
o
- an Object
value
boolean
valuepublic String toString()
toString
in class Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |