Class Column

java.lang.Object
com.adobe.cq.inbox.ui.column.Column

public final class Column extends Object
A column in the inbox.Each column should be backed by a ColumnProvider
  • Constructor Details

    • Column

      public Column(@Nonnull String name, String title)
      Create a new Column
      Parameters:
      name - name of the column
      title - title of the column
    • Column

      public Column(@Nonnull String name, String title, @Nonnull String templateResourcePath, @Nonnull String templateName)
      Create a new Column which is based on sightly template
      Parameters:
      name - name of the column
      title - title of the column
      templateResourcePath - path of the resource containing the sightly template to render the column
      templateName - name of the sightly template to render the column
    • Column

      public Column(@Nonnull String name, String title, @Nonnull String type)
      Create a new Column of the given type
      Parameters:
      name - name of the column
      title - title of the column
      type - fully qualified class name of the class representing the type of the data associated with the column
    • Column

      public Column(@Nonnull String name, String title, @Nonnull String type, @Nonnull String templateResourcePath, @Nonnull String templateName)
      Create a new Column based on sightly template and of given type
      Parameters:
      name - name of the column
      title - title of the column
      type - fully qualified class name of the class representing the type of the data associated with the column
      templateResourcePath - path of the resource containing the sightly template to render the column
      templateName - name of the sightly template to render the column
  • Method Details

    • getName

      public String getName()
      Name of the column. Name is used to uniquely identify a column
      Returns:
      column name
    • getTitle

      public String getTitle()
      The display name of the column
      Returns:
      column title
    • getType

      public 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. java.lang.String The column will be sortable for following types java.lang.String java.lang.Boolean java.lang.Long java.lang.Double java.util.Date
      Returns:
      column type
    • getTemplateResourcePath

      public String getTemplateResourcePath()
      Path of the resource containing the sightly template to render the column
      Returns:
    • getTemplateName

      public 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>
      Returns: