public abstract class Dto extends java.lang.Object implements java.io.Serializable, ObjectModificationsTracked<Dto>, HasValueProviderByPath<Dto>, DwModel
Modifier and Type | Field and Description |
---|---|
static <any> |
DISPLAY_STRING_VALUE_PROVIDER |
static java.lang.String |
GENERIC_CHANGE_EVENT_PROPERTY |
Constructor and Description |
---|
Dto()
Dummy constructor
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addInstanceChangedHandler(ObjectChangedEventHandler<Dto> handler)
listen to changes of this particular instance.
|
HandlerRegistration |
addObjectChangedHandler(ObjectChangedEventHandler<Dto> handler)
listen to changes of this object.
|
void |
clearModified() |
ListOfChanges |
commit() |
ListOfChanges |
commit(boolean keepOnTracking) |
void |
deepSet(ValueProvider valueProvider,
java.lang.Object value)
Sets the value of the underlying object if dto is a proxy.
|
void |
fireEvent(<any> event) |
void |
fireObjectChangedEvent() |
void |
fireObjectChangedEvent(ValueProvider vp) |
void |
fireObjectChangedEvent(ValueProvider vp,
java.lang.Object oldValue) |
java.lang.Long |
getDtoProxyId() |
DtoView |
getDtoView()
Returns the
DtoView that was used to generate this Dto. |
java.util.List<PropertyAccessor> |
getModifiedPropertyAccessors() |
java.util.List<PropertyAccessor> |
getPropertyAccessors() |
java.util.List<PropertyAccessor> |
getPropertyAccessorsByView(DtoView view) |
java.util.List<PropertyAccessor> |
getPropertyAccessorsForDtos() |
<any> |
getValueProviderByPath(java.lang.String path) |
boolean |
isDtoProxy() |
boolean |
isModified() |
boolean |
isSilenceEvents() |
boolean |
isTrackChanges() |
void |
markAsProxy(ClientDtoManagerService dtoManager,
java.lang.Long proxyId,
java.lang.Object dtoId,
DtoView restriction) |
void |
redo() |
void |
redo(int steps) |
ListOfChanges |
rollback() |
ListOfChanges |
rollback(int rollBackStep) |
void |
setDtoView(DtoView dtoView)
Sets the
DtoView that was used to generate this Dto. |
void |
silenceEvents(boolean silent) |
java.lang.String |
toDisplayTitle() |
BaseIcon |
toIcon() |
java.lang.String |
toTypeDescription() |
int |
trackChanges() |
void |
undo() |
void |
undo(int steps) |
public static final java.lang.String GENERIC_CHANGE_EVENT_PROPERTY
public static final <any> DISPLAY_STRING_VALUE_PROVIDER
public void setDtoView(DtoView dtoView)
DtoView
that was used to generate this Dto.dtoView
- public void markAsProxy(ClientDtoManagerService dtoManager, java.lang.Long proxyId, java.lang.Object dtoId, DtoView restriction)
public boolean isDtoProxy()
public java.lang.Long getDtoProxyId()
public void deepSet(ValueProvider valueProvider, java.lang.Object value)
public void clearModified()
public java.lang.String toDisplayTitle()
public java.lang.String toTypeDescription()
public BaseIcon toIcon()
public HandlerRegistration addInstanceChangedHandler(ObjectChangedEventHandler<Dto> handler)
HasObjectChangedEventHandler
addInstanceChangedHandler
in interface HasObjectChangedEventHandler<Dto>
public HandlerRegistration addObjectChangedHandler(ObjectChangedEventHandler<Dto> handler)
HasObjectChangedEventHandler
addObjectChangedHandler
in interface HasObjectChangedEventHandler<Dto>
public void fireEvent(<any> event)
public void fireObjectChangedEvent(ValueProvider vp, java.lang.Object oldValue)
public void fireObjectChangedEvent(ValueProvider vp)
public void fireObjectChangedEvent()
public java.util.List<PropertyAccessor> getPropertyAccessors()
public java.util.List<PropertyAccessor> getModifiedPropertyAccessors()
public java.util.List<PropertyAccessor> getPropertyAccessorsForDtos()
public java.util.List<PropertyAccessor> getPropertyAccessorsByView(DtoView view)
public <any> getValueProviderByPath(java.lang.String path)
getValueProviderByPath
in interface HasValueProviderByPath<Dto>
public void silenceEvents(boolean silent)
public boolean isSilenceEvents()
public boolean isModified()
isModified
in interface ObjectModificationsTracked<Dto>
public int trackChanges()
public boolean isTrackChanges()
public ListOfChanges rollback()
public ListOfChanges rollback(int rollBackStep)
public ListOfChanges commit()
public ListOfChanges commit(boolean keepOnTracking)
public void undo()
public void undo(int steps)
public void redo()
public void redo(int steps)