com.atlassian.renderer.macro.macros
Class AbstractPanelMacro
java.lang.Object
org.radeox.macro.BaseMacro
com.atlassian.renderer.macro.BaseMacro
com.atlassian.renderer.macro.macros.AbstractPanelMacro
- All Implemented Interfaces:
- Comparable, org.radeox.macro.Macro
- Direct Known Subclasses:
- PanelMacro
public abstract class AbstractPanelMacro
- extends BaseMacro
| Fields inherited from class org.radeox.macro.BaseMacro |
initialContext, paramDescription |
| Methods inherited from class org.radeox.macro.BaseMacro |
compareTo, getName, setInitialContext, toString |
| Methods inherited from interface org.radeox.macro.Macro |
getName, setInitialContext |
AbstractPanelMacro
public AbstractPanelMacro()
getParamDescription
public String[] getParamDescription()
- Specified by:
getParamDescription in interface org.radeox.macro.Macro- Overrides:
getParamDescription in class org.radeox.macro.BaseMacro
getPanelCSSClass
protected abstract String getPanelCSSClass()
getPanelHeaderCSSClass
protected abstract String getPanelHeaderCSSClass()
getPanelContentCSSClass
protected abstract String getPanelContentCSSClass()
getTitle
protected String getTitle(org.radeox.macro.parameter.MacroParameter macroParameter)
- What should the title of the panel be? Override in subclasses
- Parameters:
macroParameter - the macroParameter context for this macro
- Returns:
- the contents of the panel's title.
getBodyContent
protected String getBodyContent(org.radeox.macro.parameter.MacroParameter macroParameter)
- What should the body content of the panel be? Override in subclasses
- Parameters:
macroParameter - the macroParameter context for this macro
- Returns:
- the contents of the panel's body.
execute
public void execute(Writer writer,
org.radeox.macro.parameter.MacroParameter macroParameter)
throws IllegalArgumentException,
IOException
- Specified by:
execute in interface org.radeox.macro.Macro- Specified by:
execute in class org.radeox.macro.BaseMacro
- Throws:
IllegalArgumentException
IOException
writeHeader
protected void writeHeader(Writer writer,
String title,
String borderStyle,
String borderColor,
Integer borderWidth,
String titleBackgroundColor)
throws IOException
- Throws:
IOException
writeContent
protected void writeContent(Writer writer,
org.radeox.macro.parameter.MacroParameter macroParameter,
String content,
String backgroundColor)
throws IOException
- Throws:
IOException
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.