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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractTextParsableContent
All Implemented Interfaces:
Content
Direct Known Subclasses:
TextParseableFieldImpl, TextParseableParameterImpl

public abstract class AbstractTextParsableContent
extends AbstractContent


Constructor Summary
AbstractTextParsableContent()
           
 
Method Summary
abstract  void clear()
           
abstract  void entryComplete()
           
 Image getIconPicture(int iconHeight)
          The icon to use to respresent the object represented by this content.
abstract  Consent isEditable()
           
abstract  boolean isEmpty()
           
 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.
abstract  void parseTextEntry(java.lang.String entryText)
           
protected  java.lang.String titleString(NakedObject propertyOrParamValue, FacetHolder propertyOrParam, FacetHolder propertyOrParamTypeSpecification)
           
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.Content
canDrop, debugDetails, drop, getDescription, getHelp, getIconName, getId, getNaked, getOptions, getSpecification, isOptionEnabled, title
 

Constructor Detail

AbstractTextParsableContent

public AbstractTextParsableContent()
Method Detail

clear

public abstract void clear()

entryComplete

public abstract void entryComplete()

getIconPicture

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


isEmpty

public abstract boolean isEmpty()

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
Overrides:
isPersistable in class AbstractContent

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.


parseTextEntry

public abstract void parseTextEntry(java.lang.String entryText)

isEditable

public abstract Consent isEditable()

isTextParseable

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

titleString

protected java.lang.String titleString(NakedObject propertyOrParamValue,
                                       FacetHolder propertyOrParam,
                                       FacetHolder propertyOrParamTypeSpecification)
Parameters:
propertyOrParamValue - the target property or parameter
propertyOrParam - the NakedObjectAssociation or ParseableEntryActionParameter
propertyOrParamTypeSpecification - the specification of the type of the property or parameter (for fallback).


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