Class QFieldSection
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QFieldSection
- All Implemented Interfaces:
QMetaDataObject,Serializable,Cloneable
A section of fields - a logical grouping.
TODO - this class should be named QTableSection!
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Getter for alternativesGetter for fieldNamesGetter for gridColumnsGetter for helpContentsgetIcon()Getter for iconbooleanGetter for isHiddengetLabel()Getter for labelgetName()Getter for namegetTier()Getter for tierGetter for widgetNamevoidremoveHelpContent(Set<HelpRole> roles) remove a single helpContent based on its set of rolesvoidsetAlternatives(Map<QFieldSectionAlternativeTypeInterface, QFieldSection> alternatives) Setter for alternativesvoidsetFieldNames(List<String> fieldNames) Setter for fieldNamesvoidsetGridColumns(Integer gridColumns) Setter for gridColumnsvoidsetHelpContents(List<QHelpContent> helpContents) Setter for helpContentsvoidSetter for iconvoidsetIsHidden(boolean isHidden) Setter for isHiddenvoidSetter for labelvoidSetter for namevoidSetter for tiervoidsetWidgetName(String widgetName) Setter for widgetNamewithAlternative(QFieldSectionAlternativeTypeInterface type, QFieldSection alternative) Fluent setter for adding a single alternativewithAlternative(QFieldSectionAlternativeTypeInterface type, Consumer<QFieldSection> alternativeMaker) Fluent setter for adding a single alternative - which is a clone of the base section, with customizations performed by a lambda.withAlternatives(Map<QFieldSectionAlternativeTypeInterface, QFieldSection> alternatives) Fluent setter for alternativeswithFieldNames(List<String> fieldNames) Fluent setter for fieldNameswithGridColumns(Integer gridColumns) Fluent setter for gridColumnswithHelpContent(QHelpContent helpContent) Fluent setter for adding 1 helpContentwithHelpContents(List<QHelpContent> helpContents) Fluent setter for helpContentsFluent setter for iconwithIsHidden(boolean isHidden) Fluent Setter for isHiddenFluent setter for labelFluent setter for nameFluent setter for tierwithWidgetName(String widgetName) Fluent setter for widgetName
-
Constructor Details
-
QFieldSection
public QFieldSection() -
QFieldSection
-
QFieldSection
-
QFieldSection
-
-
Method Details
-
getName
Getter for name -
setName
Setter for name -
withName
Fluent setter for name -
getLabel
Getter for label -
setLabel
Setter for label -
withLabel
Fluent setter for label -
getTier
Getter for tier -
setTier
Setter for tier -
withTier
Fluent setter for tier -
getFieldNames
-
setFieldNames
-
withFieldNames
Fluent setter for fieldNames -
getIcon
Getter for icon -
setIcon
Setter for icon -
withIcon
Fluent setter for icon -
getIsHidden
public boolean getIsHidden()Getter for isHidden -
setIsHidden
public void setIsHidden(boolean isHidden) Setter for isHidden -
withIsHidden
Fluent Setter for isHidden -
getWidgetName
Getter for widgetName -
setWidgetName
Setter for widgetName -
withWidgetName
Fluent setter for widgetName -
getGridColumns
Getter for gridColumns -
setGridColumns
Setter for gridColumns -
withGridColumns
Fluent setter for gridColumns -
getHelpContents
Getter for helpContents -
setHelpContents
Setter for helpContents -
withHelpContents
Fluent setter for helpContents -
withHelpContent
Fluent setter for adding 1 helpContent -
removeHelpContent
-
clone
-
getAlternatives
Getter for alternatives- See Also:
-
setAlternatives
Setter for alternatives- See Also:
-
withAlternatives
public QFieldSection withAlternatives(Map<QFieldSectionAlternativeTypeInterface, QFieldSection> alternatives) Fluent setter for alternatives- Parameters:
alternatives- Alternative versions of the section, to be used as needed by various frontends, based on the type (keys in the map).- Returns:
- this
-
withAlternative
public QFieldSection withAlternative(QFieldSectionAlternativeTypeInterface type, QFieldSection alternative) Fluent setter for adding a single alternative- Parameters:
type- the type of alternative being addedalternative- the section that should be used for the specified type- Returns:
- this
-
withAlternative
public QFieldSection withAlternative(QFieldSectionAlternativeTypeInterface type, Consumer<QFieldSection> alternativeMaker) Fluent setter for adding a single alternative - which is a clone of the base section, with customizations performed by a lambda.e.g., to add (say) a virtual field, or otherwise change the field list, etc. So you don't have to fully re-create the section - you start with a clone.
- Parameters:
type- the type of alternative being addedalternativeMaker- lambada to modify a clone of this section.- Returns:
- this
-