|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Role public interface GadgetSource
Reads the gadgets for the dashboard macro which is being executed.
| Method Summary | |
|---|---|
List<org.xwiki.rendering.block.Block> |
getDashboardSourceMetadata(String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Get the metadata about this dashboard source, such as source document fullname, gadget add url, gadget remove url, etc, to pass to the client. |
List<Gadget> |
getGadgets(String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Reads the gadgets for the passed macro transformation context. |
boolean |
isEditing()
|
| Method Detail |
|---|
List<Gadget> getGadgets(String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
throws Exception
source - the source to read dashboard gadgets from (a document serialized reference)context - the dashboard macro transformation context
Exception - in case anything goes wrong reading data, the exception should be translated by the dashboard
macro caller into a macro execution exception
List<org.xwiki.rendering.block.Block> getDashboardSourceMetadata(String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
source - the source to read dashboard gadgets from (a document serialized reference)context - the dashboard macro transformation context
boolean isEditing()
true if the the current context is in edit mode (gadgets can be edited -- positions, parameters,
adding gadgets etc), false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||