com.j2biz.blogunity.render.macro
Class ImageMacro

java.lang.Object
  extended byorg.radeox.macro.BaseMacro
      extended bycom.j2biz.blogunity.render.macro.AbstractMacro
          extended bycom.j2biz.blogunity.render.macro.ImageMacro
All Implemented Interfaces:
Comparable, org.radeox.macro.Macro

public class ImageMacro
extends AbstractMacro

A simple macro that shows image. It can be used in two ways: - Show images from internet referenced by URL. (e.g. {image:http://www.mysite.com/image.gif} ) - Show images locally uploaded by the user into blog's intern "images"-directory. For example call: {image:image.gif} will load some image "image.gif" from "images"-directory of a current blog.


Field Summary
 
Fields inherited from class com.j2biz.blogunity.render.macro.AbstractMacro
base, webappName
 
Fields inherited from class org.radeox.macro.BaseMacro
description, initialContext, paramDescription
 
Constructor Summary
ImageMacro()
           
 
Method Summary
 void execute(Writer writer, org.radeox.macro.parameter.MacroParameter params)
           
 String getDescription()
           
 String getName()
           
 String[] getParamDescription()
           
 
Methods inherited from class com.j2biz.blogunity.render.macro.AbstractMacro
macroError, setInitialContext
 
Methods inherited from class org.radeox.macro.BaseMacro
compareTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageMacro

public ImageMacro()
Method Detail

getName

public String getName()

getDescription

public String getDescription()

getParamDescription

public String[] getParamDescription()

execute

public void execute(Writer writer,
                    org.radeox.macro.parameter.MacroParameter params)
             throws IllegalArgumentException,
                    IOException
Throws:
IllegalArgumentException
IOException


Copyright (c)j2biz.com