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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractTextParsableContent
          extended by org.nakedobjects.plugins.dnd.viewer.content.TextParseableFieldImpl
All Implemented Interfaces:
Content, FieldContent, TextParseableContent, TextParseableField

public class TextParseableFieldImpl
extends AbstractTextParsableContent
implements TextParseableField


Constructor Summary
TextParseableFieldImpl(NakedObject parent, NakedObject object, OneToOneAssociation association)
           
 
Method Summary
 boolean canClear()
           
 Consent canDrop(Content sourceContent)
          Determines if the specified content can be drop on this content.
 boolean canWrap()
           
 void clear()
           
 void debugDetails(DebugString debug)
           
 NakedObject drop(Content sourceContent)
          Implements the response to the dropping of the specified content onto this content.
 void entryComplete()
           
 java.lang.String getDescription()
           
 NakedObjectAssociation getField()
           
 java.lang.String getFieldName()
           
 java.lang.String getHelp()
           
 java.lang.String getIconName()
          The name of the icon to use to respresent the object represented by this content.
 java.lang.String getId()
           
 int getMaximumLength()
           
 NakedObject getNaked()
          The object represented by this content.
 int getNoLines()
           
 NakedObject[] getOptions()
           
 NakedObject getParent()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 int getTypicalLineLength()
           
 Consent isEditable()
           
 boolean isEmpty()
           
 boolean isMandatory()
           
 boolean isOptionEnabled()
           
 void parseTextEntry(java.lang.String entryText)
           
 java.lang.String title()
           
 java.lang.String titleString(NakedObject value)
           
 java.lang.String toString()
           
 java.lang.String windowTitle()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractTextParsableContent
getIconPicture, isPersistable, isTextParseable, isTransient, titleString
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
contentMenuOptions, isCollection, isObject, 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
contentMenuOptions, getIconPicture, isCollection, isObject, isPersistable, isTextParseable, isTransient, viewMenuOptions
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
contentMenuOptions, getIconPicture, isCollection, isObject, isPersistable, isTextParseable, isTransient, viewMenuOptions
 

Constructor Detail

TextParseableFieldImpl

public TextParseableFieldImpl(NakedObject parent,
                              NakedObject object,
                              OneToOneAssociation association)
Method Detail

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

canClear

public boolean canClear()
Specified by:
canClear in interface TextParseableContent

canWrap

public boolean canWrap()
Specified by:
canWrap in interface TextParseableContent

clear

public void clear()
Specified by:
clear in interface TextParseableContent
Specified by:
clear in class AbstractTextParsableContent

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

entryComplete

public void entryComplete()
Specified by:
entryComplete in interface TextParseableContent
Specified by:
entryComplete in class AbstractTextParsableContent

getDescription

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

getHelp

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

getFieldName

public java.lang.String getFieldName()
Specified by:
getFieldName in interface FieldContent

getField

public NakedObjectAssociation getField()
Specified by:
getField in interface FieldContent

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

getNaked

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

Specified by:
getNaked in interface Content

getId

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

getOptions

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

getMaximumLength

public int getMaximumLength()
Specified by:
getMaximumLength in interface TextParseableContent

getTypicalLineLength

public int getTypicalLineLength()
Specified by:
getTypicalLineLength in interface TextParseableContent

getNoLines

public int getNoLines()
Specified by:
getNoLines in interface TextParseableContent

getParent

public NakedObject getParent()
Specified by:
getParent in interface FieldContent

getSpecification

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

Specified by:
getSpecification in interface Content

isEditable

public Consent isEditable()
Specified by:
isEditable in interface FieldContent
Specified by:
isEditable in interface TextParseableContent
Specified by:
isEditable in class AbstractTextParsableContent

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TextParseableContent
Specified by:
isEmpty in class AbstractTextParsableContent

isMandatory

public boolean isMandatory()
Specified by:
isMandatory in interface FieldContent

isOptionEnabled

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

titleString

public java.lang.String titleString(NakedObject value)
Specified by:
titleString in interface TextParseableContent

parseTextEntry

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

title

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

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


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