Class AnyLinkColumn
java.lang.Object
net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean<BasicItem,Object>
net.sf.basedb.clients.web.extensions.list.AnyLinkColumn
- All Implemented Interfaces:
ListColumnAction<BasicItem,
,Object> Action
A column action implementation that finds an item linked with
a any-to-any link.
- Since:
- 3.17
- Author:
- nicklas
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FileViewerUtil
private final int
private final String
private final Metadata.PropertyPath<BasicItem,
?> private final Item
-
Constructor Summary
ConstructorDescriptionAnyLinkColumn
(int index, String id, String linkName, Item targetType, Metadata.PropertyPath<BasicItem, ?> property, FileViewerUtil fileViewer) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.final Object
Get the value that should be displayed in the column.Methods inherited from class net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean
getCellClass, getCellStyle, getClazz, getCollectionFormatter, getDisableOverflowCheck, getEnumeration, getExportFormatter, getExportProperty, getExportTitle, getExportValue, getFilterProperty, getFormatter, getId, getProperty, getSortProperty, getStyle, getSubtitle, getTitle, getTooltip, getValueType, isExportable, isFilterable, isSortable, setCellClass, setCellStyle, setClazz, setCollectionFormatter, setDisableOverflowCheck, setEnumeration, setExportable, setExportFormatter, setExportProperty, setExportTitle, setFilterable, setFilterProperty, setFormatter, setId, setProperty, setSortable, setSortProperty, setStyle, setSubtitle, setTitle, setTooltip, setValueType
-
Field Details
-
index
private final int index -
linkName
-
targetType
-
property
-
fileViewer
-
-
Constructor Details
-
AnyLinkColumn
AnyLinkColumn(int index, String id, String linkName, Item targetType, Metadata.PropertyPath<BasicItem, ?> property, FileViewerUtil fileViewer)
-
-
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
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 fromListColumnAction.getFormatter()
.- Parameters:
dc
- An open DbControl than can be used to query the databaseitem
- The current item- Returns:
- The value that should be displayed
-