/** Removes save cookie from the DO. */ final void removeSaveCookie() { DataObject dataObj = getDataObject(); // add Save cookie to the data object if (dataObj instanceof MultiDataObject) { if (dataObj.getCookie(SaveCookie.class) == this) { getCookieSet((MultiDataObject) dataObj).remove(this); } } }
/** * Constructor * * @param obj data object we belong to. The appropriate editor support is acquired as the * DataObject's EditorSupport.class cookie. */ public Editor(DataObject obj) { this(obj, (EditorSupport) obj.getCookie(EditorSupport.class)); }