public class EntityBrowser extends Object implements IBeanNavigator
| Modifier and Type | Field and Description |
|---|---|
protected de.tsl2.nano.bean.def.BeanDefinition<?> |
current |
protected Stack<de.tsl2.nano.bean.def.BeanDefinition<?>> |
navigation |
| Constructor and Description |
|---|
EntityBrowser(String name,
Stack<de.tsl2.nano.bean.def.BeanDefinition<?>> navigation)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(de.tsl2.nano.bean.def.BeanDefinition<?> bean)
adds new bean
|
EntityBrowser |
clone() |
de.tsl2.nano.bean.def.BeanDefinition<?> |
current()
current
|
boolean |
done()
done
|
de.tsl2.nano.bean.def.BeanDefinition<?> |
fromUrl(String uri)
evaluates, if a navigation item (bean) was clicked.
|
String |
getName()
getName
|
boolean |
isEmpty()
isEmtpy
|
de.tsl2.nano.bean.def.BeanDefinition<?> |
next(Object userResponseObject)
the next model may be a new bean model, if the response object is not null, not in the current navigation stack
and not a cancel action.
|
void |
setRoot(de.tsl2.nano.bean.def.BeanDefinition<?> rootBean) |
de.tsl2.nano.bean.def.BeanDefinition<?>[] |
toArray()
navigation stack
|
protected transient Stack<de.tsl2.nano.bean.def.BeanDefinition<?>> navigation
protected transient de.tsl2.nano.bean.def.BeanDefinition<?> current
public de.tsl2.nano.bean.def.BeanDefinition<?> next(Object userResponseObject)
next in interface IBeanNavigatoruserResponseObject - result of #processInput(String, Properties, Number)public de.tsl2.nano.bean.def.BeanDefinition<?> current()
IBeanNavigatorcurrent in interface IBeanNavigatorpublic de.tsl2.nano.bean.def.BeanDefinition<?>[] toArray()
toArray in interface IBeanNavigatorpublic de.tsl2.nano.bean.def.BeanDefinition<?> fromUrl(String uri)
fromUrl in interface IBeanNavigatoruri - uri to analyzepublic void add(de.tsl2.nano.bean.def.BeanDefinition<?> bean)
add in interface IBeanNavigatorbean - to addpublic String getName()
IBeanNavigatorgetName in interface IBeanNavigatorpublic boolean isEmpty()
IBeanNavigatorisEmpty in interface IBeanNavigatorpublic boolean done()
IBeanNavigatordone in interface IBeanNavigatorpublic void setRoot(de.tsl2.nano.bean.def.BeanDefinition<?> rootBean)
setRoot in interface IBeanNavigatorpublic EntityBrowser clone() throws CloneNotSupportedException
clone in interface IBeanNavigatorclone in class ObjectCloneNotSupportedExceptionCopyright © 2012–2020. All rights reserved.