org.nakedobjects.plugins.dnd.viewer.view.message
Class TextMessageContent

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.message.TextMessageContent
All Implemented Interfaces:
Content, MessageContent

public class TextMessageContent
extends java.lang.Object
implements MessageContent


Field Summary
protected  java.lang.String detail
           
protected  java.lang.String heading
           
protected  java.lang.String message
           
protected  java.lang.String title
           
 
Constructor Summary
TextMessageContent(java.lang.String title, java.lang.String message)
           
 
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 getDetail()
           
 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()
           
 java.lang.String getMessage()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

protected final java.lang.String message

heading

protected final java.lang.String heading

detail

protected final java.lang.String detail

title

protected final java.lang.String title
Constructor Detail

TextMessageContent

public TextMessageContent(java.lang.String title,
                          java.lang.String message)
Method Detail

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface MessageContent

getDetail

public java.lang.String getDetail()
Specified by:
getDetail in interface MessageContent

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

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

debugDetails

public void debugDetails(DebugString debug)
Specified by:
debugDetails in interface 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.

Specified by:
drop 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

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

getId

public java.lang.String getId()
Specified by:
getId in interface Content

getNaked

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

Specified by:
getNaked in interface Content

getOptions

public NakedObject[] getOptions()
Specified by:
getOptions in interface Content

getSpecification

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

Specified by:
getSpecification in interface Content

isCollection

public boolean isCollection()
Description copied from interface: Content
Returns true if this content represents a NakedCollection.

Specified by:
isCollection in interface Content

isObject

public boolean isObject()
Description copied from interface: Content
Returns true if this content represents a NakedObject.

Specified by:
isObject in interface Content

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

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

isTextParseable

public boolean isTextParseable()
Specified by:
isTextParseable in interface Content

parseTextEntry

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

title

public java.lang.String title()
Specified by:
title in interface Content

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

windowTitle

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


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