Class RelatedItemExtensionColumn
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.RelatedItemExtensionColumn
- All Implemented Interfaces:
DynamicActionAttributes
,ListColumnAction<Annotatable,
,Object> Action
Related item column that get values from an extension.
- Since:
- 3.19.4
- Author:
- nicklas
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.basedb.clients.web.extensions.list.RelatedItemColumn
RelatedItemColumn.Specification
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ListColumnAction<Annotatable,
?> static final String
The named subcontext to use when using the extensions. -
Constructor Summary
ConstructorDescriptionRelatedItemExtensionColumn
(DbControl dc, int index, RelatedItemColumn.Specification spec, RelatedItemHelper helper, ListColumnAction<Annotatable, ?> action) -
Method Summary
Modifier and TypeMethodDescriptiongetExportValue
(RelatedItemHelper helper, Annotatable item, SourceItemTransformer preTransform) Alternate implementation for loading data.getValue
(RelatedItemHelper helper, Annotatable item, SourceItemTransformer preTransform) Alternate implementation for loading data.Methods inherited from class net.sf.basedb.clients.web.extensions.list.RelatedItemColumn
create, 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
-
SUBCONTEXT
The named subcontext to use when using the extensions.- See Also:
-
action
-
-
Constructor Details
-
RelatedItemExtensionColumn
RelatedItemExtensionColumn(DbControl dc, int index, RelatedItemColumn.Specification spec, RelatedItemHelper helper, ListColumnAction<Annotatable, ?> action)
-
-
Method Details
-
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
-
getExportValue
public Object getExportValue(RelatedItemHelper helper, Annotatable item, SourceItemTransformer preTransform) Description copied from class:RelatedItemColumn
Alternate implementation for loading data. The default implementation simply call theRelatedItemColumn.getValue(RelatedItemHelper, Annotatable, SourceItemTransformer)
method.- Overrides:
getExportValue
in classRelatedItemColumn
-