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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
      extended by org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
          extended by org.nakedobjects.plugins.dnd.viewer.content.ObjectActionContent
All Implemented Interfaces:
ActionContent, Content, ObjectContent

public class ObjectActionContent
extends AbstractObjectContent
implements ActionContent

Links an action on an object to a view.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
AbstractObjectContent.DebugClearResolvedOption, AbstractObjectContent.ExplorationClone, AbstractObjectContent.ExplorationInstances
 
Constructor Summary
ObjectActionContent(ActionHelper invocation)
           
 
Method Summary
 Consent canClear()
           
 Consent canSet(NakedObject dragSource)
           
 void clear()
           
 void debugDetails(DebugString debug)
           
 Consent disabled()
           
 NakedObject execute()
           
 java.lang.String getActionName()
           
 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()
           
 NakedObject getObject()
           
 NakedObject[] getOptions()
           
 ParameterContent getParameterContent(int index)
           
 NakedObject getParameterObject(int index)
           
 NakedObjectSpecification getSpecification()
          The specification of the object represented by this content.
 boolean isObject()
          Returns true if this content represents a NakedObject.
 boolean isOptionEnabled()
           
 boolean isPersistable()
          Can't persist actions
 boolean isTransient()
          Returns true if the object represented by this content is transient; has not been persisted yet.
 void setObject(NakedObject object)
           
 java.lang.String title()
           
 java.lang.String windowTitle()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractObjectContent
canDrop, contentMenuOptions, drop, getIconPicture, parseTextEntry
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent
isCollection, isTextParseable, viewMenuOptions
 
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, contentMenuOptions, drop, getIconPicture, isCollection, isTextParseable, parseTextEntry, viewMenuOptions
 

Constructor Detail

ObjectActionContent

public ObjectActionContent(ActionHelper invocation)
Method Detail

canClear

public Consent canClear()
Specified by:
canClear in interface ObjectContent
Specified by:
canClear in class AbstractObjectContent

canSet

public Consent canSet(NakedObject dragSource)
Specified by:
canSet in interface ObjectContent
Specified by:
canSet in class AbstractObjectContent

clear

public void clear()
Specified by:
clear in interface ObjectContent
Specified by:
clear in class AbstractObjectContent

debugDetails

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

disabled

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

execute

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

getActionName

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

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
Overrides:
getIconName in class AbstractObjectContent

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

getObject

public NakedObject getObject()
Specified by:
getObject in interface ObjectContent
Specified by:
getObject in class AbstractObjectContent

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

isPersistable

public boolean isPersistable()
Can't persist actions

Specified by:
isPersistable in interface Content
Overrides:
isPersistable in class AbstractObjectContent

isObject

public boolean isObject()
Description copied from interface: Content
Returns true if this content represents a NakedObject.

Specified by:
isObject in interface Content
Overrides:
isObject 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.

Specified by:
isTransient in interface Content

setObject

public void setObject(NakedObject object)
Specified by:
setObject in interface ObjectContent
Specified by:
setObject in class AbstractObjectContent

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

getId

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

getDescription

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

getHelp

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

getOptions

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

isOptionEnabled

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


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