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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractCollectionContent
All Implemented Interfaces:
CollectionContent, Content
Direct Known Subclasses:
CollectionActionContent, OneToManyFieldImpl, RootCollection

public abstract class AbstractCollectionContent
extends AbstractContent
implements CollectionContent


Constructor Summary
AbstractCollectionContent()
           
 
Method Summary
 java.util.Enumeration allElements()
           
 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[] elements()
           
abstract  NakedObject getCollection()
           
 java.lang.String getDescription()
           
 NakedObjectSpecification getElementSpecification()
           
 NakedObjectAssociation getFieldSortOrder()
           
 Image getIconPicture(int iconHeight)
          The icon to use to respresent the object represented by this content.
 NakedObject[] getOptions()
           
 boolean getOrderByElement()
           
 boolean getReverseSortOrder()
           
 boolean isOptionEnabled()
           
 void parseTextEntry(java.lang.String entryText)
           
 void setOrder(Comparator order)
           
 void setOrderByElement()
           
 void setOrderByField(NakedObjectAssociation field)
           
 void viewMenuOptions(UserActionSet options)
          Allows this content to add menu options to the set of menu options the user will see for this view.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
isCollection, isObject, isPersistable, isTextParseable, 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, drop, getHelp, getIconName, getId, getNaked, getSpecification, isTransient, title
 

Constructor Detail

AbstractCollectionContent

public AbstractCollectionContent()
Method Detail

allElements

public final java.util.Enumeration allElements()
Specified by:
allElements in interface CollectionContent

debugDetails

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

elements

public NakedObject[] elements()
Specified by:
elements in interface CollectionContent

getCollection

public abstract NakedObject getCollection()
Specified by:
getCollection in interface CollectionContent

getElementSpecification

public NakedObjectSpecification getElementSpecification()
Specified by:
getElementSpecification in interface CollectionContent

getDescription

public java.lang.String getDescription()
Specified by:
getDescription 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 CollectionContent
Specified by:
contentMenuOptions in interface Content
Overrides:
contentMenuOptions in class AbstractContent
See Also:
Content.viewMenuOptions(UserActionSet)

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 CollectionContent
Specified by:
viewMenuOptions in interface Content
Overrides:
viewMenuOptions in class AbstractContent
See Also:
Content.contentMenuOptions(UserActionSet)

parseTextEntry

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

setOrder

public void setOrder(Comparator order)
Specified by:
setOrder in interface CollectionContent

setOrderByField

public void setOrderByField(NakedObjectAssociation field)
Specified by:
setOrderByField in interface CollectionContent

setOrderByElement

public void setOrderByElement()
Specified by:
setOrderByElement in interface CollectionContent

getFieldSortOrder

public NakedObjectAssociation getFieldSortOrder()
Specified by:
getFieldSortOrder in interface CollectionContent

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 CollectionContent
Specified by:
getIconPicture in interface Content

getOrderByElement

public boolean getOrderByElement()
Specified by:
getOrderByElement in interface CollectionContent

getReverseSortOrder

public boolean getReverseSortOrder()
Specified by:
getReverseSortOrder in interface CollectionContent

isOptionEnabled

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

getOptions

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


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