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

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

public class CollectionElement
extends AbstractObjectContent


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
AbstractObjectContent.DebugClearResolvedOption, AbstractObjectContent.ExplorationClone, AbstractObjectContent.ExplorationInstances
 
Constructor Summary
CollectionElement(NakedObject adapter)
           
 
Method Summary
 Consent canClear()
           
 Consent canSet(NakedObject dragSource)
           
 void clear()
           
 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()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 boolean isObject()
          Returns true if this content represents a NakedObject.
 boolean isOptionEnabled()
           
 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, contentMenuOptions, drop, getIconName, getIconPicture, isPersistable, 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
isCollection, isTextParseable, viewMenuOptions
 

Constructor Detail

CollectionElement

public CollectionElement(NakedObject adapter)
Method Detail

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

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

clear

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

debugDetails

public void debugDetails(DebugString debug)

getId

public java.lang.String getId()

getDescription

public java.lang.String getDescription()

getHelp

public java.lang.String getHelp()

getObject

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

getNaked

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


getSpecification

public NakedObjectSpecification getSpecification()
Description copied from interface: Content
The specification of the object represented by this 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.


setObject

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

title

public java.lang.String title()

windowTitle

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

toString

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

getOptions

public NakedObject[] getOptions()


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