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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractCollectionContent
          extended by org.nakedobjects.plugins.dnd.viewer.content.CollectionActionContent
All Implemented Interfaces:
ActionContent, CollectionContent, Content

public class CollectionActionContent
extends AbstractCollectionContent
implements ActionContent


Constructor Summary
CollectionActionContent(ActionHelper invocation)
           
 
Method Summary
 Consent canDrop(Content sourceContent)
          Determines if the specified content can be drop on this content.
 void debugDetails(DebugString debug)
           
 Consent disabled()
           
 NakedObject drop(Content sourceContent)
          Implements the response to the dropping of the specified content onto this content.
 NakedObject[] elements()
           
 NakedObject execute()
           
 java.lang.String getActionName()
           
 NakedObject getCollection()
           
 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.
 java.lang.String getId()
           
 NakedObject getNaked()
          The object represented by this content.
 int getNoParameters()
           
 ParameterContent getParameterContent(int index)
           
 NakedObject getParameterObject(int index)
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 boolean isTransient()
          Returns true if the object represented by this content is transient; has not been persisted yet.
 java.lang.String title()
           
 java.lang.String windowTitle()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractCollectionContent
allElements, contentMenuOptions, getElementSpecification, getFieldSortOrder, getIconPicture, getOptions, getOrderByElement, getReverseSortOrder, isOptionEnabled, parseTextEntry, setOrder, setOrderByElement, setOrderByField, viewMenuOptions
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
isCollection, isObject, isPersistable, isTextParseable
 
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
contentMenuOptions, getIconPicture, getOptions, isCollection, isObject, isOptionEnabled, isPersistable, isTextParseable, parseTextEntry, viewMenuOptions
 

Constructor Detail

CollectionActionContent

public CollectionActionContent(ActionHelper invocation)
Method Detail

debugDetails

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

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

disabled

public Consent disabled()
Specified by:
disabled in interface ActionContent

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

elements

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

execute

public NakedObject execute()
Specified by:
execute in interface ActionContent

getActionName

public java.lang.String getActionName()
Specified by:
getActionName in interface ActionContent

getCollection

public NakedObject getCollection()
Specified by:
getCollection in interface CollectionContent
Specified by:
getCollection in class AbstractCollectionContent

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ActionContent
Specified by:
getDescription in interface Content
Overrides:
getDescription in class AbstractCollectionContent

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

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

getNoParameters

public int getNoParameters()
Specified by:
getNoParameters in interface ActionContent

getParameterContent

public ParameterContent getParameterContent(int index)
Specified by:
getParameterContent in interface ActionContent

getParameterObject

public NakedObject getParameterObject(int index)
Specified by:
getParameterObject in interface ActionContent

getSpecification

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

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

title

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

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.