All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.headlessviewer.applib.ViewObject Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.headlessviewer.applib;

/**
 * Implemented by all objects that have been viewed as per
 * {@link HeadlessViewer#view(Object)}.
 */
public interface ViewObject {

	/**
	 * Programmatic equivalent of invoking save for a transient object (that is,
	 * like hitting the save button that the DnD viewer automatically
	 * renders.
	 */
	void save();

	/**
	 * Provide access to the underlying object.
	 * 
	 * 

* Used to unwrap objects used as arguments to actions (otherwise, end up * creating a {@link NakedObjectSpecification} for the CGLib-enhanced class, * not the original class). */ Object underlying(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy