public class Image extends Object implements WikiPlugin
Parameters :
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ALIGN
The parameter name for setting the align.
|
static String |
PARAM_ALT
The parameter name for setting the alt.
|
static String |
PARAM_BORDER
The parameter name for setting the border.
|
static String |
PARAM_CAPTION
The parameter name for setting the caption.
|
static String |
PARAM_CLASS
The parameter name for setting the class.
|
static String |
PARAM_HEIGHT
The parameter name for setting the height.
|
static String |
PARAM_LINK
The parameter name for setting the link.
|
static String |
PARAM_SRC
The parameter name for setting the src.
|
static String |
PARAM_STYLE
The parameter name for setting the style.
|
static String |
PARAM_TARGET
The parameter name for setting the target.
|
static String |
PARAM_TITLE
The parameter name for setting the title.
|
static String |
PARAM_WIDTH
The parameter name for setting the width.
|
CORE_PLUGINS_RESOURCEBUNDLE
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
String |
execute(WikiContext context,
Map<String,String> params)
This is the main entry point for any plugin.
|
public static final String PARAM_SRC
public static final String PARAM_ALIGN
public static final String PARAM_HEIGHT
public static final String PARAM_WIDTH
public static final String PARAM_ALT
public static final String PARAM_CAPTION
public static final String PARAM_LINK
public static final String PARAM_TARGET
public static final String PARAM_STYLE
public static final String PARAM_CLASS
public static final String PARAM_BORDER
public static final String PARAM_TITLE
public Image()
public String execute(WikiContext context, Map<String,String> params) throws PluginException
Note that it is preferred that the plugin returns XHTML-compliant HTML (i.e. close all tags, use <br /> instead of <br>, etc.
execute
in interface WikiPlugin
context
- The current WikiContext.params
- A Map which contains key-value pairs. Any
parameter that the user has specified on the
wiki page will contain String-String
parameters, but it is possible that at some future date,
JSPWiki will give you other things that are not Strings.PluginException
- In case anything goes wrong.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.