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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.ServiceObject
All Implemented Interfaces:
Content

public class ServiceObject
extends AbstractContent


Constructor Summary
ServiceObject(NakedObject adapter)
           
 
Method Summary
 Consent canClear()
           
 Consent canDrop(Content sourceContent)
          Determines if the specified content can be drop on this content.
 Consent canSet(NakedObject dragSource)
           
 void clear()
           
 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 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 parseTextEntry(java.lang.String entryText)
           
 void setObject(NakedObject object)
           
 java.lang.String title()
           
 java.lang.String toString()
           
 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()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
contentMenuOptions, isCollection, isPersistable, isTextParseable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceObject

public ServiceObject(NakedObject adapter)
Method Detail

canClear

public Consent canClear()

canSet

public Consent canSet(NakedObject dragSource)

clear

public void clear()

debugDetails

public void debugDetails(DebugString debug)

getNaked

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


getDescription

public java.lang.String getDescription()

getHelp

public java.lang.String getHelp()

getId

public java.lang.String getId()

getObject

public NakedObject getObject()

getOptions

public NakedObject[] getOptions()

getSpecification

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


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

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)

title

public java.lang.String title()

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

canDrop

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


drop

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


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.


getIconPicture

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


parseTextEntry

public void parseTextEntry(java.lang.String entryText)

viewMenuOptions

public void viewMenuOptions(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 view.

Specified by:
viewMenuOptions in interface Content
Overrides:
viewMenuOptions in class AbstractContent
See Also:
Content.contentMenuOptions(UserActionSet)


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