public final class Column
extends java.lang.Object
ColumnProvider
Constructor and Description |
---|
Column(java.lang.String name,
java.lang.String title)
Create a new
Column |
Column(java.lang.String name,
java.lang.String title,
java.lang.String type)
Create a new
Column of the given type |
Column(java.lang.String name,
java.lang.String title,
java.lang.String templateResourcePath,
java.lang.String templateName)
Create a new
Column which is based on sightly template |
Column(java.lang.String name,
java.lang.String title,
java.lang.String type,
java.lang.String templateResourcePath,
java.lang.String templateName)
Create a new
Column based on sightly template and of given type |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Name of the column.
|
java.lang.String |
getTemplateName()
Name of the sightly template to render the column
The resource at
templateResourcePath may contain multiple sightly templates
The template accepts a parameter named item of type InboxItem
Sample template
<template data-sly-template.wftitle="${@ item}>">
<div>
${item.workflowTitle @ i18n, locale=request.locale}
</div>
</template>
|
java.lang.String |
getTemplateResourcePath()
Path of the resource containing the sightly template to render the column
|
java.lang.String |
getTitle()
The display name of the column
|
java.lang.String |
getType()
Fully qualified name of the class representing the type of the data associated with the column
Used for sorting on the column
e.g.
|
public Column(@Nonnull java.lang.String name, java.lang.String title)
Column
name
- name of the columntitle
- title of the columnpublic Column(@Nonnull java.lang.String name, java.lang.String title, @Nonnull java.lang.String templateResourcePath, @Nonnull java.lang.String templateName)
Column
which is based on sightly templatename
- name of the columntitle
- title of the columntemplateResourcePath
- path of the resource containing the sightly template to render the columntemplateName
- name of the sightly template to render the columnpublic Column(@Nonnull java.lang.String name, java.lang.String title, @Nonnull java.lang.String type)
Column
of the given typename
- name of the columntitle
- title of the columntype
- fully qualified class name of the class representing the type of the data associated with the columnpublic Column(@Nonnull java.lang.String name, java.lang.String title, @Nonnull java.lang.String type, @Nonnull java.lang.String templateResourcePath, @Nonnull java.lang.String templateName)
Column
based on sightly template and of given typename
- name of the columntitle
- title of the columntype
- fully qualified class name of the class representing the type of the data associated with the columntemplateResourcePath
- path of the resource containing the sightly template to render the columntemplateName
- name of the sightly template to render the columnpublic java.lang.String getName()
public java.lang.String getTitle()
public java.lang.String getType()
public java.lang.String getTemplateResourcePath()
public java.lang.String getTemplateName()
templateResourcePath
may contain multiple sightly templates
The template accepts a parameter named item
of type InboxItem
Sample template
<template data-sly-template.wftitle="${@ item}>">
<div>
${item.workflowTitle @ i18n, locale=request.locale}
</div>
</template>
Copyright © 2010 - 2020 Adobe. All Rights Reserved