|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.macro.AbstractMacro<DashboardMacroParameters>
org.xwiki.rendering.internal.macro.dashboard.DashboardMacro
@Component @Named(value="dashboard") @Singleton public class DashboardMacro
The dashboard macro, to display other macros as gadgets in a dashboard, using a container to include its contents.
| Field Summary | |
|---|---|
static java.lang.String |
ADD_URL
The identifier of the add url metadata. |
static java.lang.String |
EDIT_URL
The identifier of the edit url metadata. |
static java.lang.String |
GADGET_CONTAINER
The marker to set as class parameter for the gadget containers in this dashboard, i.e. |
static java.lang.String |
GADGET_CONTAINER_PREFIX
The prefix of the id of the gadget containers in this dashboard, i.e. |
static java.lang.String |
MACRO_NAME
The name of this macro. |
static java.lang.String |
METADATA
The identifier of the metadata block for this dashboard (class parameter of the generated XDOM container that holds the rest of the metadata). |
static java.lang.String |
REMOVE_URL
The identifier of the remove url metadata. |
static java.lang.String |
SOURCE_PAGE
The identifier of the source page metadata. |
static java.lang.String |
SOURCE_SPACE
The identifier of the source space metadata. |
static java.lang.String |
SOURCE_URL
The identifier of the source url metadata. |
static java.lang.String |
SOURCE_WIKI
The identifier of the source wiki metadata. |
| Fields inherited from class org.xwiki.rendering.macro.AbstractMacro |
|---|
beanManager, DEFAULT_CATEGORY_CONTENT, DEFAULT_CATEGORY_DEVELOPMENT, DEFAULT_CATEGORY_FORMATTING, DEFAULT_CATEGORY_NAVIGATION |
| Constructor Summary | |
|---|---|
DashboardMacro()
Instantiates the dashboard macro, setting the name, description and parameters type. |
|
| Method Summary | |
|---|---|
java.util.List<Block> |
execute(DashboardMacroParameters parameters,
java.lang.String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
|
protected DashboardRenderer |
getDashboardRenderer(java.lang.String layout)
|
protected GadgetRenderer |
getGadgetRenderer(boolean isEditing)
|
protected void |
includeResources(boolean editMode)
Includes the js and css resources for the dashboard macro. |
boolean |
supportsInlineMode()
|
| Methods inherited from class org.xwiki.rendering.macro.AbstractMacro |
|---|
compareTo, getDescriptor, getPriority, initialize, setDefaultCategory, setDescriptor, setPriority |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GADGET_CONTAINER
public static final java.lang.String GADGET_CONTAINER_PREFIX
public static final java.lang.String METADATA
public static final java.lang.String EDIT_URL
public static final java.lang.String ADD_URL
public static final java.lang.String REMOVE_URL
public static final java.lang.String SOURCE_PAGE
public static final java.lang.String SOURCE_SPACE
public static final java.lang.String SOURCE_WIKI
public static final java.lang.String SOURCE_URL
public static final java.lang.String MACRO_NAME
| Constructor Detail |
|---|
public DashboardMacro()
| Method Detail |
|---|
public java.util.List<Block> execute(DashboardMacroParameters parameters,
java.lang.String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
throws org.xwiki.rendering.macro.MacroExecutionException
org.xwiki.rendering.macro.MacroExecutionExceptionMacro.execute(java.lang.Object, java.lang.String,
org.xwiki.rendering.transformation.MacroTransformationContext)protected void includeResources(boolean editMode)
editMode - whether the dashboard is in edit mode or not (js resources need to be loaded only in edit mode)protected DashboardRenderer getDashboardRenderer(java.lang.String layout)
layout - the layout style parameter of this dashboard, to find the renderer for
protected GadgetRenderer getGadgetRenderer(boolean isEditing)
isEditing - whether this dashboard is in edit mode or in view mode
public boolean supportsInlineMode()
Macro.supportsInlineMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||