public interface ClientDtoManagerService
Modifier and Type | Method and Description |
---|---|
<X extends Dto> |
deepClone(X dto)
Creates a propper clone.
|
<X extends Dto> |
detachDto(X dto)
Detaches Dtos from the manager.
|
<X extends Dto> |
detachDtos(java.util.Collection<X> dtos)
Detaches Dtos from the manager.
|
<X> X |
getProperty(Dto proxy,
ValueProvider valueProvider) |
<X extends Dto> |
newProxy(X dto)
Can for example be used to "clone" dtos.
|
void |
onDtoChange(Dto dto,
DtoListener listener) |
void |
onDtoChange(DtoListener listener) |
<X extends Dto> |
registerDto(X dto)
Registers a dto and returns a proxied object.
|
void |
registerDtoContainer(java.util.Collection<DtoContainer> result) |
void |
registerDtoContainer(DtoContainer container) |
<X extends Dto> |
registerDtos(java.util.Collection<X> dtos)
Registers a collections of dtos and returns proxied objects.
|
void |
removeChangeListener(Dto dto,
DtoListener listener) |
void |
removeDtoChangeListener(DtoListener listener) |
<X> void |
setProperty(Dto proxy,
ValueProvider property,
X value) |
<X extends Dto> |
unproxy(java.util.Collection<X> dtos) |
<X extends Dto> |
unproxy(X dto)
Turns a proxy back into a dto
|
<X extends Dto> X registerDto(X dto)
dto
- <X extends Dto> java.util.Collection<X> registerDtos(java.util.Collection<X> dtos)
dtos
- <X extends Dto> void detachDto(X dto)
As a consequence all listeners on that particular dto are detached.
If properties for a specific dto are requested
X
- dto
- <X extends Dto> void detachDtos(java.util.Collection<X> dtos)
X
- dtos
- detachDto(Dto)
void registerDtoContainer(DtoContainer container)
<X> X getProperty(Dto proxy, ValueProvider valueProvider)
<X> void setProperty(Dto proxy, ValueProvider property, X value)
void registerDtoContainer(java.util.Collection<DtoContainer> result)
void onDtoChange(Dto dto, DtoListener listener)
void removeChangeListener(Dto dto, DtoListener listener)
void onDtoChange(DtoListener listener)
void removeDtoChangeListener(DtoListener listener)
<X extends Dto> X newProxy(X dto)
X
- dto
- <X extends Dto> X deepClone(X dto)
X
- dto
- <X extends Dto> X unproxy(X dto)
X
- dto
- <X extends Dto> java.util.Collection<X> unproxy(java.util.Collection<X> dtos)