com.nurelm.nucontent.model
Class Image

java.lang.Object
  extended bycom.nurelm.nucontent.model.Node
      extended bycom.nurelm.nucontent.model.File
          extended bycom.nurelm.nucontent.model.Image
All Implemented Interfaces:
java.io.Serializable

public class Image
extends File
implements java.io.Serializable

Object representing a NuContent image.

Corresponds to the tag

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.nurelm.nucontent.model.File
name, shortDesc
 
Fields inherited from class com.nurelm.nucontent.model.Node
DEFAULT_NAME, DEFAULT_SHORT_DESC, id, isNewWindow, site, transientGeneration, transientIsBottomChildNode, transientIsChildNode, transientIsSelected, transientIsTopChildNode, version
 
Constructor Summary
protected Image()
          Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.
  Image(java.lang.String imageId, java.lang.String name, java.lang.String shortDesc, java.lang.String fileName)
          Creates a new Image object.
 
Method Summary
 java.lang.String getImageId()
          Returns this object's unique-per-page ID.
 
Methods inherited from class com.nurelm.nucontent.model.File
canBreed, getFileName, getName, getShortDesc, getURI, hasChildren, isChildLinkEditable, isChildLinkViewable, setFileName, setName, setShortDesc
 
Methods inherited from class com.nurelm.nucontent.model.Node
getId, getIsNewWindow, getTransientGeneration, getTransientIsBottomChildNode, getTransientIsChildNode, getTransientIsSelected, getTransientIsTopChildNode, getURI, getVersion, setIsNewWindow, setTransientGeneration, setTransientIsBottomChildNode, setTransientIsChildNode, setTransientIsSelected, setTransientIsTopChildNode, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

protected Image()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.


Image

public Image(java.lang.String imageId,
             java.lang.String name,
             java.lang.String shortDesc,
             java.lang.String fileName)
Creates a new Image object.

Parameters:
imageId - The ID of the Image - if not in a RepeatList, must be unique on the Page where it will be added. If in a RepeatList, then it must be unique within the RepeatItem in which it will be added.
name - The image's short descriptive name, which will be used as its alt tag within NuContent.
shortDesc - The image's description.
fileName - The file name corresponding to this image.
Method Detail

getImageId

public java.lang.String getImageId()
Returns this object's unique-per-page ID.

Returns:
This object's ID.