|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of interface that will be wrapped.public interface AutoBean<T>
A controller for an implementation of a bean interface.
| Method Summary | ||
|---|---|---|
void |
accept(AutoBeanVisitor visitor)
Accept an AutoBeanVisitor. |
|
T |
as()
Returns a proxy implementation of the T interface which will
delegate to the underlying wrapped object, if any. |
|
AutoBean<T> |
clone(boolean deep)
Creates a copy of the AutoBean. |
|
|
getTag(java.lang.String tagName)
Retrieve a tag value that was previously provided to setTag(String, Object). |
|
boolean |
isFrozen()
Returns the value most recently passed to setFrozen(boolean), or false if it has never been called. |
|
boolean |
isWrapper()
Returns true if the AutoBean was provided with an external
object. |
|
void |
setFrozen(boolean frozen)
Disallows any method calls other than getters. |
|
void |
setTag(java.lang.String tagName,
java.lang.Object value)
A tag is an arbitrary piece of external metadata to be associated with the wrapped value. |
|
T |
unwrap()
If the AutoBean wraps an object, return the underlying object. |
|
| Method Detail |
|---|
void accept(AutoBeanVisitor visitor)
visitor - an AutoBeanVisitorT as()
T interface which will
delegate to the underlying wrapped object, if any.
AutoBean<T> clone(boolean deep)
If the AutoBean has tags, the tags will be copied into the cloned AutoBean.
If any of the tag values are AutoBeans, they will not be cloned, regardless
of the value of deep.
deep - indicates if all referenced AutoBeans should be cloned
AutoBean
java.lang.IllegalStateException - if the AutoBean is a wrapper type<Q> Q getTag(java.lang.String tagName)
setTag(String, Object).
tagName - the tag name
setTag(String, Object)boolean isFrozen()
setFrozen(boolean), or false if it has never been called.
true if this instance is frozenboolean isWrapper()
true if the AutoBean was provided with an external
object.
true if this instance is a wrappervoid setFrozen(boolean frozen)
UnsupportedOperationException.
frozen - if true, freeze this instance
void setTag(java.lang.String tagName,
java.lang.Object value)
tagName - the tag namevalue - the wrapped valuegetTag(String)T unwrap()
java.lang.IllegalStateException - if the AutoBean is not a wrapper
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||