org.nakedobjects.plugins.dnd
Interface Content

All Known Subinterfaces:
ActionContent, FieldContent, MessageContent, ObjectContent, ObjectParameter, OneToManyField, OneToManyFieldElement, OneToOneField, ParameterContent, TextParseableContent, TextParseableField, TextParseableParameter
All Known Implementing Classes:
AbstractCollectionContent, AbstractContent, AbstractObjectContent, AbstractTextParsableContent, CollectionActionContent, CollectionElement, ExceptionMessageContent, NullContent, ObjectActionContent, ObjectParameterImpl, OneToManyFieldElementImpl, OneToManyFieldImpl, OneToOneFieldImpl, OptionContent, PerspectiveContent, RootCollection, RootObject, ServiceObject, TextMessageContent, TextParseableFieldImpl, TextParseableParameterImpl

public interface Content


Method Summary
 Consent canDrop(Content sourceContent)
          Determines if the specified content can be drop on this content.
 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)
           
 NakedObject drop(Content sourceContent)
          Implements the response to the dropping of the specified content onto this content.
 java.lang.String getDescription()
           
 java.lang.String getHelp()
           
 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.
 java.lang.String getId()
           
 NakedObject getNaked()
          The object represented by this content.
 NakedObject[] getOptions()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 boolean isCollection()
          Returns true if this content represents a NakedCollection.
 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 isTextParseable()
           
 boolean isTransient()
          Returns true if the object represented by this content is transient; has not been persisted yet.
 void parseTextEntry(java.lang.String entryText)
           
 java.lang.String title()
           
 void viewMenuOptions(UserActionSet options)
          Allows this content to add menu options to the set of menu options the user will see for this view.
 java.lang.String windowTitle()
           
 

Method Detail

canDrop

Consent canDrop(Content sourceContent)
Determines if the specified content can be drop on this content.


contentMenuOptions

void contentMenuOptions(UserActionSet options)
Allows this content to add menu options to the set of menu options the user will see for this content.

See Also:
viewMenuOptions(UserActionSet)

debugDetails

void debugDetails(DebugString debug)

drop

NakedObject drop(Content sourceContent)
Implements the response to the dropping of the specified content onto this content.


getDescription

java.lang.String getDescription()

getHelp

java.lang.String getHelp()

getIconName

java.lang.String getIconName()
The name of the icon to use to respresent the object represented by this content.


getIconPicture

Image getIconPicture(int iconHeight)
The icon to use to respresent the object represented by this content.


getId

java.lang.String getId()

getNaked

NakedObject getNaked()
The object represented by this content.


getOptions

NakedObject[] getOptions()

getSpecification

NakedObjectSpecification getSpecification()
The specification of the object represented by this content.


isCollection

boolean isCollection()
Returns true if this content represents a NakedCollection.


isObject

boolean isObject()
Returns true if this content represents a NakedObject.


isPersistable

boolean isPersistable()
Returns true if the object represented by this content can be persisted.


isOptionEnabled

boolean isOptionEnabled()

isTransient

boolean isTransient()
Returns true if the object represented by this content is transient; has not been persisted yet.


isTextParseable

boolean isTextParseable()

parseTextEntry

void parseTextEntry(java.lang.String entryText)

title

java.lang.String title()

viewMenuOptions

void viewMenuOptions(UserActionSet options)
Allows this content to add menu options to the set of menu options the user will see for this view.

See Also:
contentMenuOptions(UserActionSet)

windowTitle

java.lang.String windowTitle()


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