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
,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 TypeMethodDescriptionvoid
void
void
addTooltip
(S key, BlockTooltip value) void
addTooltip
(S key, String value) Getter for blockIdabstract String
Getter for conditionalgetLink()
Getter for linkGetter for linkMapGetter for stylesGetter for tooltipGetter for tooltipMapfinal String
getType()
Getter for typeGetter for valuesvoid
setBlockId
(String blockId) Setter for blockIdvoid
setConditional
(String conditional) Setter for conditionalvoid
Setter for linkvoid
setLinkMap
(Map<S, BlockLink> linkMap) Setter for linkMapvoid
Setter for stylesvoid
setTooltip
(BlockTooltip tooltip) Setter for tooltipvoid
setTooltipMap
(Map<S, BlockTooltip> tooltipMap) Setter for tooltipMapvoid
Setter 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:QWidgetData
Getter for type- Specified by:
getType
in 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
-