Class RelatedItemPropertyColumn
java.lang.Object
net.sf.basedb.clients.web.extensions.DynamicActionAttributeSupport
net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean<Annotatable,Object>
net.sf.basedb.clients.web.extensions.list.RelatedItemColumn
net.sf.basedb.clients.web.extensions.list.RelatedItemPropertyColumn
- All Implemented Interfaces:
DynamicActionAttributes
,ListColumnAction<Annotatable,
,Object> Action
Related item column that get values from parent or child items by specifying
a "property path". See
Metadata
.- Since:
- 3.16, 3.17
- Author:
- nicklas
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.basedb.clients.web.extensions.list.RelatedItemColumn
RelatedItemColumn.Specification
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRelatedItemPropertyColumn
(DbControl dc, int index, RelatedItemColumn.Specification spec, RelatedItemHelper helper, Metadata.PropertyPath<? super Annotatable, ?> property) -
Method Summary
Modifier and TypeMethodDescriptiongetValue
(RelatedItemHelper helper, Annotatable item, SourceItemTransformer preTransform) Alternate implementation for loading data.private static String
pathToTitle
(String path) Convert some paths to a more user-friendly title instead.Methods inherited from class net.sf.basedb.clients.web.extensions.list.RelatedItemColumn
create, getExportValue, getExportValue, getRelatedItems, getSpecification, getTransformer, getValue, isLazy
Methods inherited from class net.sf.basedb.clients.web.extensions.list.AbstractListColumnBean
getCellClass, getCellStyle, getClazz, getCollectionFormatter, getDisableOverflowCheck, getEnumeration, getExportFormatter, getExportProperty, getExportTitle, getFilterClass, getFilterProperty, getFilterText, getFormatter, getId, getProperty, getSortProperty, getStyle, getSubtitle, getTitle, getTooltip, getValueType, isExportable, isFilterable, isSortable, setCellClass, setCellStyle, setClazz, setCollectionFormatter, setDisableOverflowCheck, setEnumeration, setExportable, setExportFormatter, setExportProperty, setExportTitle, setFilterable, setFilterClass, setFilterProperty, setFilterText, setFormatter, setId, setProperty, setSortable, setSortProperty, setStyle, setSubtitle, setTitle, setTooltip, setValueType
Methods inherited from class net.sf.basedb.clients.web.extensions.DynamicActionAttributeSupport
addAttributes, getAttributesString, getDynamicActionAttributes, setDynamicActionAttributesSource, setDynamicAttribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.basedb.clients.web.extensions.list.ListColumnAction
getDynamicActionAttributes
-
Field Details
-
pathTitles
-
property
-
-
Constructor Details
-
RelatedItemPropertyColumn
RelatedItemPropertyColumn(DbControl dc, int index, RelatedItemColumn.Specification spec, RelatedItemHelper helper, Metadata.PropertyPath<? super Annotatable, ?> property)
-
-
Method Details
-
pathToTitle
Convert some paths to a more user-friendly title instead. -
getValue
public Object getValue(RelatedItemHelper helper, Annotatable item, SourceItemTransformer preTransform) Description copied from class:RelatedItemColumn
Alternate implementation for loading data. The item is normally an item of the expected source type, but if a preTransform is present, the item may be of different type and must be processed with theSourceItemTransformer.transform(net.sf.basedb.util.listable.TransformContext, Set)
method first. In most cases, implementation should simply callRelatedItemColumn.getRelatedItems(Annotatable, SourceItemTransformer)
to load the final target items.- Specified by:
getValue
in classRelatedItemColumn
-