org.nakedobjects.plugins.headless.viewer
Class DomainObjectContainerHeadlessViewer

java.lang.Object
  extended by org.nakedobjects.metamodel.services.container.DomainObjectContainerDefault
      extended by org.nakedobjects.plugins.headless.viewer.DomainObjectContainerHeadlessViewer
All Implemented Interfaces:
DomainObjectContainer, RuntimeContextAware, HeadlessViewer

public class DomainObjectContainerHeadlessViewer
extends DomainObjectContainerDefault
implements HeadlessViewer

A combined DomainObjectContainer and HeadlessViewer.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nakedobjects.plugins.headless.applib.HeadlessViewer
HeadlessViewer.ExecutionMode
 
Constructor Summary
DomainObjectContainerHeadlessViewer()
           
 
Method Summary
 boolean addInteractionListener(InteractionListener listener)
           
 java.util.List<InteractionListener> getListeners()
           
 boolean isView(java.lang.Object possibleView)
           
 void notifyListeners(InteractionEvent interactionEvent)
           
 boolean removeInteractionListener(InteractionListener listener)
           
 void setRuntimeContext(RuntimeContext runtimeContext)
          As per superclass, but also initializes the delegate HeadlessViewer.
<T> T
view(T domainObject)
           
<T> T
view(T domainObject, HeadlessViewer.ExecutionMode mode)
           
 
Methods inherited from class org.nakedobjects.metamodel.services.container.DomainObjectContainerDefault
allInstances, allMatches, allMatches, allMatches, allMatches, commit, doCreateTransientInstance, firstMatch, firstMatch, firstMatch, firstMatch, flush, getRuntimeContext, getUser, informUser, isPersistent, isValid, newInstance, newPersistentInstance, newTransientInstance, objectChanged, persist, persistIfNotAlready, raiseError, remove, resolve, resolve, uniqueMatch, uniqueMatch, uniqueMatch, uniqueMatch, validate, warnUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainObjectContainerHeadlessViewer

public DomainObjectContainerHeadlessViewer()
Method Detail

view

public <T> T view(T domainObject)
Specified by:
view in interface HeadlessViewer

view

public <T> T view(T domainObject,
                  HeadlessViewer.ExecutionMode mode)
Specified by:
view in interface HeadlessViewer

isView

public boolean isView(java.lang.Object possibleView)
Specified by:
isView in interface HeadlessViewer

getListeners

public java.util.List<InteractionListener> getListeners()
Specified by:
getListeners in interface HeadlessViewer

addInteractionListener

public boolean addInteractionListener(InteractionListener listener)
Specified by:
addInteractionListener in interface HeadlessViewer

removeInteractionListener

public boolean removeInteractionListener(InteractionListener listener)
Specified by:
removeInteractionListener in interface HeadlessViewer

notifyListeners

public void notifyListeners(InteractionEvent interactionEvent)
Specified by:
notifyListeners in interface HeadlessViewer

setRuntimeContext

public void setRuntimeContext(RuntimeContext runtimeContext)
As per superclass, but also initializes the delegate HeadlessViewer.

Specified by:
setRuntimeContext in interface RuntimeContextAware
Overrides:
setRuntimeContext in class DomainObjectContainerDefault


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