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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
All Implemented Interfaces:
Content, ObjectContent
Direct Known Subclasses:
CollectionElement, ObjectActionContent, ObjectParameterImpl, OneToManyFieldElementImpl, OneToOneFieldImpl, RootObject

public abstract class AbstractObjectContent
extends AbstractContent
implements ObjectContent


Nested Class Summary
static class AbstractObjectContent.DebugClearResolvedOption
           
static class AbstractObjectContent.ExplorationClone
           
static class AbstractObjectContent.ExplorationInstances
           
 
Constructor Summary
AbstractObjectContent()
           
 
Method Summary
abstract  Consent canClear()
           
 Consent canDrop(Content sourceContent)
          Determines if the specified content can be drop on this content.
abstract  Consent canSet(NakedObject dragSource)
           
abstract  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.
 NakedObject drop(Content sourceContent)
          Implements the response to the dropping of the specified content onto this content.
 java.lang.String getIconName()
          The name of the icon to use to respresent the object represented by this content.
 Image getIconPicture(int iconHeight)
          The icon to use to respresent the object represented by this content.
abstract  NakedObject getObject()
           
 boolean isPersistable()
          Returns true if the object represented by this content can be persisted.
 void parseTextEntry(java.lang.String entryText)
           
abstract  void setObject(NakedObject object)
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
isCollection, isObject, isTextParseable, viewMenuOptions, windowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
debugDetails, getDescription, getHelp, getId, getNaked, getOptions, getSpecification, isCollection, isObject, isOptionEnabled, isTextParseable, isTransient, title, viewMenuOptions, windowTitle
 

Constructor Detail

AbstractObjectContent

public AbstractObjectContent()
Method Detail

canClear

public abstract Consent canClear()
Specified by:
canClear in interface ObjectContent

canDrop

public Consent canDrop(Content sourceContent)
Description copied from interface: Content
Determines if the specified content can be drop on this content.

Specified by:
canDrop in interface Content

canSet

public abstract Consent canSet(NakedObject dragSource)
Specified by:
canSet in interface ObjectContent

clear

public abstract void clear()
Specified by:
clear in interface ObjectContent

drop

public NakedObject drop(Content sourceContent)
Description copied from interface: Content
Implements the response to the dropping of the specified content onto this content.

Specified by:
drop in interface Content

getObject

public abstract NakedObject getObject()
Specified by:
getObject in interface ObjectContent

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 AbstractContent

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 AbstractContent
See Also:
Content.viewMenuOptions(UserActionSet)

parseTextEntry

public void parseTextEntry(java.lang.String entryText)
Specified by:
parseTextEntry in interface Content

setObject

public abstract void setObject(NakedObject object)
Specified by:
setObject in interface ObjectContent

getIconName

public java.lang.String getIconName()
Description copied from interface: Content
The name of the icon to use to respresent the object represented by this content.

Specified by:
getIconName in interface Content

getIconPicture

public Image getIconPicture(int iconHeight)
Description copied from interface: Content
The icon to use to respresent the object represented by this content.

Specified by:
getIconPicture in interface Content


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