Class DeveloperPanelBlock
java.lang.Object
com.kingsrook.qqq.backend.core.model.developer.DeveloperPanelBlock
- All Implemented Interfaces:
Serializable
One generic block of content in a
DeveloperPanel. The type
says which of the other fields are used:
- KEY_VALUES -
items - TEXT -
text(plain text), with an optionaltone - CODE -
codein alanguage(e.g., json, sql, shell) - TABLE -
columnsandrows(all values as display strings) - LINKS -
links - ACTIONS -
actions(processes the frontend may launch for the record)
label shown as a sub-heading.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeveloperPanelBlockMake an ACTIONS block.static DeveloperPanelBlockMake a CODE block.Getter for actionsgetCode()Getter for codeGetter for columnsgetItems()Getter for itemsgetLabel()Getter for labelGetter for languagegetLinks()Getter for linksgetRows()Getter for rowsgetText()Getter for textgetTone()Getter for tonegetType()Getter for typestatic DeveloperPanelBlockMake a KEY_VALUES block.static DeveloperPanelBlockMake a LINKS block.voidsetActions(List<DeveloperPanelAction> actions) Setter for actionsvoidSetter for codevoidsetColumns(List<String> columns) Setter for columnsvoidsetItems(List<DeveloperPanelKeyValue> items) Setter for itemsvoidSetter for labelvoidsetLanguage(String language) Setter for languagevoidsetLinks(List<DeveloperPanelLink> links) Setter for linksvoidSetter for rowsvoidSetter for textvoidsetTone(DeveloperPanelTone tone) Setter for tonevoidSetter for typestatic DeveloperPanelBlockMake a TABLE block with the given column headings (add rows with withRow).static DeveloperPanelBlocktext(String text, DeveloperPanelTone tone) Make a TEXT block.withAction(DeveloperPanelAction action) Fluent adder for actions - adds one action.withActions(List<DeveloperPanelAction> actions) Fluent setter for actionsFluent setter for codewithColumns(List<String> columns) Fluent setter for columnsFluent adder for items - adds one item.Fluent adder for a KEY_VALUES item.withItems(List<DeveloperPanelKeyValue> items) Fluent setter for itemsFluent setter for labelwithLanguage(String language) Fluent setter for languagewithLink(DeveloperPanelLink link) Fluent adder for links - adds one link.withLinks(List<DeveloperPanelLink> links) Fluent setter for linksFluent adder for rows - adds one row.Fluent setter for rowsFluent setter for textwithTone(DeveloperPanelTone tone) Fluent setter for toneFluent setter for type
-
Constructor Details
-
DeveloperPanelBlock
public DeveloperPanelBlock()
-
-
Method Details
-
keyValues
Make a KEY_VALUES block. -
text
Make a TEXT block. -
code
Make a CODE block. -
table
Make a TABLE block with the given column headings (add rows with withRow). -
links
Make a LINKS block. -
actions
Make an ACTIONS block. -
withItem
Fluent adder for a KEY_VALUES item. -
getType
Getter for type -
setType
Setter for type -
withType
Fluent setter for type -
getLabel
Getter for label -
setLabel
Setter for label -
withLabel
Fluent setter for label -
getText
Getter for text -
setText
Setter for text -
withText
Fluent setter for text -
getTone
Getter for tone -
setTone
Setter for tone -
withTone
Fluent setter for tone -
getLanguage
Getter for language -
setLanguage
Setter for language -
withLanguage
Fluent setter for language -
getCode
Getter for code -
setCode
Setter for code -
withCode
Fluent setter for code -
getItems
Getter for items -
setItems
Setter for items -
withItems
Fluent setter for items -
withItem
Fluent adder for items - adds one item. -
getColumns
-
setColumns
-
withColumns
Fluent setter for columns -
getRows
-
setRows
-
withRows
Fluent setter for rows -
withRow
Fluent adder for rows - adds one row. -
getLinks
Getter for links -
setLinks
Setter for links -
withLinks
Fluent setter for links -
withLink
Fluent adder for links - adds one link. -
getActions
Getter for actions -
setActions
Setter for actions -
withActions
Fluent setter for actions -
withAction
Fluent adder for actions - adds one action.
-