org.nakedobjects.plugins.dnd.viewer.content
Class OneToOneFieldImpl
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
org.nakedobjects.plugins.dnd.viewer.content.OneToOneFieldImpl
- All Implemented Interfaces:
- Content, FieldContent, ObjectContent, OneToOneField
public class OneToOneFieldImpl
- extends AbstractObjectContent
- implements OneToOneField
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OneToOneFieldImpl
public OneToOneFieldImpl(NakedObject parentAdapter,
NakedObject adapter,
OneToOneAssociation association)
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.