Class AnyLinkColumn

All Implemented Interfaces:
DynamicActionAttributes, ListColumnAction<BasicItem,Object>, Action

public class AnyLinkColumn extends AbstractListColumnBean<BasicItem,Object>
A column action implementation that finds an item linked with a any-to-any link.
Since:
3.17
Author:
nicklas
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static AnyLinkColumn create(DbControl dc, int index, Item sourceType, String expr, FileViewerUtil fileViewer)
      For now, we assume that 'expr' is |linkName|ITEMTYPE|property ITEMTYPE and property are optional.
    • getValue

      public final Object getValue(DbControl dc, BasicItem item)
      Description copied from interface: ListColumnAction
      Get the value that should be displayed in the column. This method is called once for every item that is listed in the table. The returned value is then passed to the formatter (if any) that is retrieved from ListColumnAction.getFormatter().
      Parameters:
      dc - An open DbControl than can be used to query the database
      item - The current item
      Returns:
      The value that should be displayed