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

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.TextParseableParameterImpl
All Implemented Interfaces:
Content, ParameterContent, TextParseableContent, TextParseableParameter

public class TextParseableParameterImpl
extends AbstractTextParsableContent
implements TextParseableParameter


Constructor Summary
TextParseableParameterImpl(ParseableEntryActionParameter nakedObjectActionParameters, NakedObject nakedObject, NakedObject[] options, int i, ActionHelper invocation)
           
 
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()
           
 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()
           
 int getMaximumLength()
           
 NakedObject getNaked()
          The object represented by this content.
 int getNoLines()
           
 NakedObject[] getOptions()
           
 java.lang.String getParameterName()
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 int getTypicalLineLength()
           
 Consent isEditable()
           
 boolean isEmpty()
           
 boolean isOptionEnabled()
           
 boolean isRequired()
           
 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()
           
 java.lang.String titleString(NakedObject value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractTextParsableContent
isPersistable, titleString
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
contentMenuOptions, isCollection, isObject, viewMenuOptions, windowTitle
 
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, isCollection, isObject, isPersistable, viewMenuOptions, windowTitle
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
contentMenuOptions, isCollection, isObject, isPersistable, viewMenuOptions, windowTitle
 

Constructor Detail

TextParseableParameterImpl

public TextParseableParameterImpl(ParseableEntryActionParameter nakedObjectActionParameters,
                                  NakedObject nakedObject,
                                  NakedObject[] options,
                                  int i,
                                  ActionHelper invocation)
Method Detail

debugDetails

public void debugDetails(DebugString debug)
Specified by:
debugDetails in interface Content

entryComplete

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

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
Overrides:
getIconPicture in class AbstractTextParsableContent

getNaked

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

Specified by:
getNaked in interface Content

getNoLines

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

getOptions

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

isEmpty

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

isRequired

public boolean isRequired()
Specified by:
isRequired in interface ParameterContent

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

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
Overrides:
isTransient in class AbstractTextParsableContent

isTextParseable

public boolean isTextParseable()
Specified by:
isTextParseable in interface Content
Overrides:
isTextParseable in class AbstractTextParsableContent

isOptionEnabled

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

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

getParameterName

public java.lang.String getParameterName()
Specified by:
getParameterName in interface ParameterContent

getSpecification

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

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

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

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
Throws:
InvalidEntryException - - turns the parameter red if invalid.

getDescription

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

getHelp

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

getId

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

isEditable

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

getMaximumLength

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

getTypicalLineLength

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


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