org.nakedobjects.plugins.dnd.viewer.content
Class ObjectParameterImpl

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
          extended by org.nakedobjects.plugins.dnd.viewer.content.ObjectParameterImpl
All Implemented Interfaces:
Content, ObjectContent, ObjectParameter, ParameterContent

public class ObjectParameterImpl
extends AbstractObjectContent
implements ObjectParameter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
AbstractObjectContent.DebugClearResolvedOption, AbstractObjectContent.ExplorationClone, AbstractObjectContent.ExplorationInstances
 
Constructor Summary
ObjectParameterImpl(ObjectParameterImpl content, NakedObject object)
           
ObjectParameterImpl(OneToOneActionParameter nakedObjectActionParameter, NakedObject adapter, NakedObject[] optionAdapters, int i, ActionHelper invocation)
           
 
Method Summary
 Consent canClear()
           
 Consent canSet(NakedObject dragSource)
           
 void clear()
           
 void contentMenuOptions(UserActionSet options)
          Allows this content to add menu options to the set of menu options the user will see for this content.
 void debugDetails(DebugString debug)
           
 java.lang.String getDescription()
           
 java.lang.String getHelp()
           
 java.lang.String getId()
           
 NakedObject getNaked()
          The object represented by this content.
 NakedObject getObject()
           
 NakedObject[] getOptions()
           
 java.lang.String getParameterName()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 boolean isObject()
          Returns true if this content represents a NakedObject.
 boolean isOptionEnabled()
           
 boolean isPersistable()
          Returns true if the object represented by this content can be persisted.
 boolean isRequired()
           
 boolean isTransient()
          Returns true if the object represented by this content is transient; has not been persisted yet.
 void setObject(NakedObject object)
           
 java.lang.String title()
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
canDrop, drop, getIconName, getIconPicture, parseTextEntry
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
isCollection, isTextParseable, viewMenuOptions, windowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
canDrop, drop, getIconName, getIconPicture, isCollection, isTextParseable, parseTextEntry, viewMenuOptions, windowTitle
 

Constructor Detail

ObjectParameterImpl

public ObjectParameterImpl(OneToOneActionParameter nakedObjectActionParameter,
                           NakedObject adapter,
                           NakedObject[] optionAdapters,
                           int i,
                           ActionHelper invocation)

ObjectParameterImpl

public ObjectParameterImpl(ObjectParameterImpl content,
                           NakedObject object)
Method Detail

canClear

public Consent canClear()
Specified by:
canClear in interface ObjectContent
Specified by:
canClear in class AbstractObjectContent

canSet

public Consent canSet(NakedObject dragSource)
Specified by:
canSet in interface ObjectContent
Specified by:
canSet in interface ObjectParameter
Specified by:
canSet in class AbstractObjectContent

clear

public void clear()
Specified by:
clear in interface ObjectContent
Specified by:
clear in class AbstractObjectContent

debugDetails

public void debugDetails(DebugString debug)
Specified by:
debugDetails in interface Content

getNaked

public NakedObject getNaked()
Description copied from interface: Content
The object represented by this content.

Specified by:
getNaked in interface Content

getObject

public NakedObject getObject()
Specified by:
getObject in interface ObjectContent
Specified by:
getObject in class AbstractObjectContent

getOptions

public NakedObject[] getOptions()
Specified by:
getOptions in interface Content

isObject

public boolean isObject()
Description copied from interface: Content
Returns true if this content represents a NakedObject.

Specified by:
isObject in interface Content
Overrides:
isObject in class AbstractContent

isRequired

public boolean isRequired()
Specified by:
isRequired in interface ParameterContent

isPersistable

public boolean isPersistable()
Description copied from interface: Content
Returns true if the object represented by this content can be persisted.

Specified by:
isPersistable in interface Content
Overrides:
isPersistable in class AbstractObjectContent

isOptionEnabled

public boolean isOptionEnabled()
Specified by:
isOptionEnabled in interface Content

isTransient

public boolean isTransient()
Description copied from interface: Content
Returns true if the object represented by this content is transient; has not been persisted yet.

Specified by:
isTransient in interface Content

contentMenuOptions

public void contentMenuOptions(UserActionSet options)
Description copied from interface: Content
Allows this content to add menu options to the set of menu options the user will see for this content.

Specified by:
contentMenuOptions in interface Content
Overrides:
contentMenuOptions in class AbstractObjectContent
See Also:
Content.viewMenuOptions(UserActionSet)

setObject

public void setObject(NakedObject object)
Specified by:
setObject in interface ObjectContent
Specified by:
setObject in interface ObjectParameter
Specified by:
setObject in class AbstractObjectContent

title

public java.lang.String title()
Specified by:
title in interface Content

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParameterName

public java.lang.String getParameterName()
Specified by:
getParameterName in interface ParameterContent

getSpecification

public NakedObjectSpecification getSpecification()
Description copied from interface: Content
The specification of the object represented by this content.

Specified by:
getSpecification in interface Content

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Content

getHelp

public java.lang.String getHelp()
Specified by:
getHelp in interface Content

getId

public java.lang.String getId()
Specified by:
getId in interface Content


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