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

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.OneToOneFieldImpl
All Implemented Interfaces:
Content, FieldContent, ObjectContent, OneToOneField

public class OneToOneFieldImpl
extends AbstractObjectContent
implements OneToOneField


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
AbstractObjectContent.DebugClearResolvedOption, AbstractObjectContent.ExplorationClone, AbstractObjectContent.ExplorationInstances
 
Constructor Summary
OneToOneFieldImpl(NakedObject parentAdapter, NakedObject adapter, OneToOneAssociation association)
           
 
Method Summary
 Consent canClear()
           
 Consent canSet(NakedObject adapter)
           
 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()
           
 NakedObjectAssociation getField()
           
 java.lang.String getFieldName()
           
 java.lang.String getHelp()
           
 java.lang.String getId()
           
 NakedObject getNaked()
          The object represented by this content.
 NakedObject getObject()
           
 NakedObject[] getOptions()
           
 NakedObject getParent()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 Consent isEditable()
           
 boolean isMandatory()
           
 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 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()
           
 java.lang.String windowTitle()
           
 
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
 
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
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
canDrop, drop, getIconName, getIconPicture, isCollection, isTextParseable, parseTextEntry, viewMenuOptions
 

Constructor Detail

OneToOneFieldImpl

public OneToOneFieldImpl(NakedObject parentAdapter,
                         NakedObject adapter,
                         OneToOneAssociation association)
Method Detail

canClear

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

canSet

public Consent canSet(NakedObject adapter)
Specified by:
canSet in interface ObjectContent
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

getFieldName

public java.lang.String getFieldName()
Specified by:
getFieldName in interface FieldContent

getField

public NakedObjectAssociation getField()
Specified by:
getField in interface FieldContent

isEditable

public Consent isEditable()
Specified by:
isEditable in interface FieldContent
Specified by:
isEditable in interface OneToOneField

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

getParent

public NakedObject getParent()
Specified by:
getParent in interface FieldContent

getSpecification

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

Specified by:
getSpecification in interface Content

isMandatory

public boolean isMandatory()
Specified by:
isMandatory in interface FieldContent

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

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

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 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

windowTitle

public java.lang.String windowTitle()
Specified by:
windowTitle in interface Content
Overrides:
windowTitle in class AbstractContent

getId

public java.lang.String getId()
Specified by:
getId 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


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