Package org.xwiki.livedata
Class LiveDataLayoutDescriptor
- java.lang.Object
-
- org.xwiki.livedata.WithParameters
-
- org.xwiki.livedata.BaseDescriptor
-
- org.xwiki.livedata.LiveDataLayoutDescriptor
-
public class LiveDataLayoutDescriptor extends BaseDescriptor
Holds the layout configuration.- Since:
- 12.10
- Version:
- $Id: 9847427507182fff91ae23688badc0f5d01045db $
-
-
Constructor Summary
Constructors Constructor Description LiveDataLayoutDescriptor()Default constructor.LiveDataLayoutDescriptor(String id)Creates a descriptor for the layout with the given id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getIcon()StringgetName()voidinitialize()Preventnullvalues where it's possible.voidsetIcon(Map<String,Object> icon)Set the icon meta data.voidsetName(String name)Set the layout pretty name.-
Methods inherited from class org.xwiki.livedata.BaseDescriptor
equals, getId, hashCode, setId, toString
-
Methods inherited from class org.xwiki.livedata.WithParameters
getParameters, setParameter
-
-
-
-
Constructor Detail
-
LiveDataLayoutDescriptor
public LiveDataLayoutDescriptor()
Default constructor.
-
LiveDataLayoutDescriptor
public LiveDataLayoutDescriptor(String id)
Creates a descriptor for the layout with the given id.- Parameters:
id- the layout id
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the layout pretty name
-
setName
public void setName(String name)
Set the layout pretty name.- Parameters:
name- the new layout name
-
setIcon
public void setIcon(Map<String,Object> icon)
Set the icon meta data.- Parameters:
icon- the icon meta data
-
initialize
public void initialize()
Preventnullvalues where it's possible.
-
-