@Unstable public class LiveDataPropertyDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LiveDataPropertyDescriptor.DisplayerDescriptor
Holds the displayer configuration.
|
static class |
LiveDataPropertyDescriptor.FilterDescriptor
Holds the filter configuration.
|
static class |
LiveDataPropertyDescriptor.OperatorDescriptor
An operator to use when filtering the live data.
|
Constructor and Description |
---|
LiveDataPropertyDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
LiveDataPropertyDescriptor.DisplayerDescriptor |
getDisplayer() |
LiveDataPropertyDescriptor.FilterDescriptor |
getFilter() |
Map<String,Object> |
getIcon() |
String |
getId() |
String |
getName() |
String |
getStyleName() |
String |
getType() |
void |
initialize()
Prevent
null values where it's possible. |
Boolean |
isEditable() |
Boolean |
isFilterable() |
Boolean |
isSortable() |
Boolean |
isVisible() |
void |
setDescription(String description)
Sets the property description.
|
void |
setDisplayer(LiveDataPropertyDescriptor.DisplayerDescriptor displayer)
Sets the displayer configuration.
|
void |
setEditable(Boolean editable)
Sets whether the user can edit the values of this property or not.
|
void |
setFilter(LiveDataPropertyDescriptor.FilterDescriptor filter)
Sets the filter configuration.
|
void |
setFilterable(Boolean filterable)
Sets whether the user can filter by this property or not.
|
void |
setIcon(Map<String,Object> icon)
Sets the icon meta data.
|
void |
setId(String id)
Set the property id.
|
void |
setName(String name)
Sets the property pretty name.
|
void |
setSortable(Boolean sortable)
Sets whether this property can be used to sort the live data.
|
void |
setStyleName(String styleName)
Sets the CSS class name to add to the element used to display this property.
|
void |
setType(String type)
Sets the property type.
|
void |
setVisible(Boolean visible)
Sets whether this property should be displayed or not.
|
public String getId()
public void setId(String id)
id
- the new property idpublic String getName()
public void setName(String name)
name
- the new pretty namepublic String getDescription()
public void setDescription(String description)
description
- the new property descriptionpublic String getType()
public void setType(String type)
type
- the new property typepublic Boolean isSortable()
null
to inherit from the
property type descriptorpublic void setSortable(Boolean sortable)
sortable
- whether this property can be used to sort the live data; pass null
to inherit from the
property type descriptorpublic String getStyleName()
public void setStyleName(String styleName)
styleName
- the new style namepublic void setIcon(Map<String,Object> icon)
icon
- the new icon meta datapublic Boolean isVisible()
null
in which case
the value should be inherited from the property type descriptorpublic void setVisible(Boolean visible)
null
to inherit from the property type
descriptor.visible
- true
to display this property, false
to hide it, null
to inherit from the
property type descriptorpublic LiveDataPropertyDescriptor.DisplayerDescriptor getDisplayer()
public void setDisplayer(LiveDataPropertyDescriptor.DisplayerDescriptor displayer)
displayer
- the new displayer configurationpublic Boolean isFilterable()
null
in which case
the value should be inherited from the property type descriptorpublic void setFilterable(Boolean filterable)
null
to inherit from the property type
descriptor.filterable
- true
if the user can filter by this property, false
if the user can't filter by
this property, null
to inherit from the property descriptor typepublic LiveDataPropertyDescriptor.FilterDescriptor getFilter()
public void setFilter(LiveDataPropertyDescriptor.FilterDescriptor filter)
filter
- the new filter configurationpublic Boolean isEditable()
null
in
which case the value should be inherited from the property type descriptorpublic void setEditable(Boolean editable)
null
to inherit from the property
type descriptor.editable
- true
if the user can edit the values of this property, false
if the user
shouldn't be able to edit the property values, null
to inherit from the property descriptor
typepublic void initialize()
null
values where it's possible.Copyright © 2004–2021 XWiki. All rights reserved.