Class AbstractBlockWidgetData<T extends AbstractBlockWidgetData<T,V,S,SX>,V extends BlockValuesInterface,S extends BlockSlotsInterface,SX extends BlockStylesInterface>
java.lang.Object
com.kingsrook.qqq.backend.core.model.dashboard.widgets.QWidgetData
com.kingsrook.qqq.backend.core.model.dashboard.widgets.blocks.AbstractBlockWidgetData<T,V,S,SX>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AudioBlockData,BigNumberBlockData,ButtonBlockData,CompositeWidgetData,DividerBlockData,IconBlockData,ImageBlockData,InputFieldBlockData,NumberIconBadgeBlockData,ProgressBarBlockData,TableSubRowDetailRowBlockData,TextBlockData,UpOrDownNumberBlockData
public abstract class AbstractBlockWidgetData<T extends AbstractBlockWidgetData<T,V,S,SX>,V extends BlockValuesInterface,S extends BlockSlotsInterface,SX extends BlockStylesInterface>
extends QWidgetData
Base class for the data returned in rendering a block of a specific type.
The type parameters define the structure of the block's data, and should
generally be defined along with a sub-class of this class, in a block-specific
sub-package.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddTooltip(S key, BlockTooltip value) voidaddTooltip(S key, String value) Getter for blockIdabstract StringGetter for conditionalgetLink()Getter for linkGetter for linkMapGetter for stylesGetter for tooltipGetter for tooltipMapfinal StringgetType()Getter for typeGetter for valuesvoidsetBlockId(String blockId) Setter for blockIdvoidsetConditional(String conditional) Setter for conditionalvoidSetter for linkvoidsetLinkMap(Map<S, BlockLink> linkMap) Setter for linkMapvoidSetter for stylesvoidsetTooltip(BlockTooltip tooltip) Setter for tooltipvoidsetTooltipMap(Map<S, BlockTooltip> tooltipMap) Setter for tooltipMapvoidSetter for valueswithBlockId(String blockId) Fluent setter for blockIdwithConditional(String conditional) Fluent setter for conditionalFluent setter for linkFluent setter for linkwithLinkMap(Map<S, BlockLink> linkMap) Fluent setter for linkMapwithStyles(SX styles) Fluent setter for styleswithTooltip(BlockTooltip tooltip) Fluent setter for tooltipFluent setter for tooltipwithTooltip(String tooltip) Fluent setter for tooltipwithTooltip(S key, BlockTooltip value) withTooltip(S key, String value) withTooltipMap(Map<S, BlockTooltip> tooltipMap) Fluent setter for tooltipMapwithValues(V values) Fluent setter for valuesMethods inherited from class com.kingsrook.qqq.backend.core.model.dashboard.widgets.QWidgetData
getCsvData, getDropdownDataList, getDropdownDefaultValueList, getDropdownLabelList, getDropdownNameList, getDropdownNeedsSelectedText, getFooterHTML, getHasPermission, getLabel, getSublabel, setCsvData, setDropdownDataList, setDropdownDefaultValueList, setDropdownLabelList, setDropdownNameList, setDropdownNeedsSelectedText, setFooterHTML, setHasPermission, setLabel, setSublabel, withCsvData, withDropdownDataList, withDropdownDefaultValueList, withDropdownLabelList, withDropdownNameList, withDropdownNeedsSelectedText, withFooterHTML, withHasPermission, withLabel, withSublabel
-
Constructor Details
-
AbstractBlockWidgetData
public AbstractBlockWidgetData()
-
-
Method Details
-
getType
Description copied from class:QWidgetDataGetter for type- Specified by:
getTypein classQWidgetData
-
getBlockTypeName
-
withTooltip
-
addTooltip
-
withTooltip
-
addTooltip
-
getTooltipMap
Getter for tooltipMap -
setTooltipMap
Setter for tooltipMap -
withTooltipMap
Fluent setter for tooltipMap -
getTooltip
Getter for tooltip -
setTooltip
Setter for tooltip -
withTooltip
-
withTooltip
Fluent setter for tooltip -
withTooltip
Fluent setter for tooltip -
withLink
-
addLink
-
withLink
-
addLink
-
getLinkMap
-
setLinkMap
-
withLinkMap
-
getLink
Getter for link -
setLink
Setter for link -
withLink
-
withLink
-
getValues
Getter for values -
setValues
Setter for values -
withValues
-
getStyles
Getter for styles -
setStyles
Setter for styles -
withStyles
-
getBlockId
Getter for blockId -
setBlockId
Setter for blockId -
withBlockId
-
getConditional
Getter for conditional -
setConditional
Setter for conditional -
withConditional
Fluent setter for conditional
-