java.lang.Object |
↳ |
org.apache.velocity.runtime.directive.Directive |
|
↳ |
com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective |
Class Overview
An ApplyDecorator directive for Sitemesh.
Example use:
#applyDecorator("mydecorator" "inline title")
The body goes here.
#end
The title attribute is optional.
Summary
Nested Classes |
class |
ApplyDecoratorDirective.DirectiveStack |
|
[Expand]
Inherited Constants |
From interface
org.apache.velocity.runtime.directive.DirectiveConstants
|
[Expand]
Inherited Fields |
From class
org.apache.velocity.runtime.directive.Directive
protected
RuntimeServices |
rsvc |
|
|
Public Methods |
void
|
addParameter(String paramName, Object paramValue)
|
String
|
getName()
Returns the name of the directive.
|
int
|
getType()
Tells velocity that this is a block-type directive.
|
void
|
init(RuntimeServices services, InternalContextAdapter adapter, Node node)
The directive is initialized.
|
boolean
|
render(InternalContextAdapter adapter, Writer writer, Node node)
Does the actual decoration.
|
[Expand]
Inherited Methods |
From class
org.apache.velocity.runtime.directive.Directive
int
|
getColumn()
|
int
|
getLine()
|
abstract
String
|
getName()
|
String
|
getTemplateName()
|
abstract
int
|
getType()
|
void
|
init(RuntimeServices arg0, InternalContextAdapter arg1, Node arg2)
|
abstract
boolean
|
render(InternalContextAdapter arg0, Writer arg1, Node arg2)
|
void
|
setLocation(int arg0, int arg1, String arg2)
|
void
|
setLocation(int arg0, int arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
public
static
final
String
STACK_KEY
Public Constructors
public
ApplyDecoratorDirective
()
Public Methods
public
void
addParameter
(String paramName, Object paramValue)
public
String
getName
()
Returns the name of the directive.
public
int
getType
()
Tells velocity that this is a block-type directive.
public
void
init
(RuntimeServices services, InternalContextAdapter adapter, Node node)
The directive is initialized.
Parameters
services
| Velocity runtime services. |
adapter
| context. |
node
| within the directive.
|
public
boolean
render
(InternalContextAdapter adapter, Writer writer, Node node)
Does the actual decoration.
Parameters
adapter
| the context. |
writer
| a writer instance to which to write the decorated text. |
node
| the node within our block.
|
Throws
IOException
| |
MethodInvocationException
| |
ParseErrorException
| |
ResourceNotFoundException
| |