mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add withSectionOfFields
This commit is contained in:
@ -802,4 +802,24 @@ public class QTableMetaData implements QAppChildMetaData, Serializable
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluently add a section and fields in that section.
|
||||
*******************************************************************************/
|
||||
public QTableMetaData withSectionOfFields(QFieldSection fieldSection, QFieldMetaData... fields)
|
||||
{
|
||||
withSection(fieldSection);
|
||||
|
||||
List<String> fieldNames = new ArrayList<>();
|
||||
for(QFieldMetaData field : fields)
|
||||
{
|
||||
withField(field);
|
||||
fieldNames.add(field.getName());
|
||||
}
|
||||
|
||||
fieldSection.setFieldNames(fieldNames);
|
||||
|
||||
return (this);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user