org.nakedobjects.plugins.headless.applib
Interface ViewObject<T>


public interface ViewObject<T>

Implemented by all objects that have been viewed as per HeadlessViewer.view(Object).


Method Summary
 void save()
          Programmatic equivalent of invoking save for a transient object (that is, like hitting the save button that the DnD viewer automatically renders.
 java.lang.Object underlying()
          Provide access to the underlying object.
 

Method Detail

save

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


underlying

java.lang.Object underlying()
Provide access to the underlying object.

Used to unwrap objects used as arguments to actions (otherwise, end up creating a NakedObjectSpecification for the CGLib-enhanced class, not the original class).



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.