mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CTLE-397: added ability to have footer HTML on widgets
This commit is contained in:
@ -33,6 +33,7 @@ import java.util.Map;
|
||||
public abstract class QWidgetData
|
||||
{
|
||||
private String label;
|
||||
private String footerHTML;
|
||||
private List<String> dropdownNameList;
|
||||
private List<String> dropdownLabelList;
|
||||
private Boolean hasPermission;
|
||||
@ -88,6 +89,40 @@ public abstract class QWidgetData
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public String getFooterHTML()
|
||||
{
|
||||
return footerHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public void setFooterHTML(String footerHTML)
|
||||
{
|
||||
this.footerHTML = footerHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public QWidgetData withFooterHTML(String footerHTML)
|
||||
{
|
||||
this.footerHTML = footerHTML;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for dropdownLabelList
|
||||
**
|
||||
|
@ -42,6 +42,7 @@ public class QWidgetMetaData implements QWidgetMetaDataInterface
|
||||
protected String label;
|
||||
protected String type;
|
||||
protected String minHeight;
|
||||
protected String footerHTML;
|
||||
protected boolean isCard;
|
||||
protected Integer gridColumns;
|
||||
protected QCodeReference codeReference;
|
||||
@ -494,4 +495,38 @@ public class QWidgetMetaData implements QWidgetMetaDataInterface
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public String getFooterHTML()
|
||||
{
|
||||
return footerHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public void setFooterHTML(String footerHTML)
|
||||
{
|
||||
this.footerHTML = footerHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public QWidgetMetaData withFooterHTML(String footerHTML)
|
||||
{
|
||||
this.footerHTML = footerHTML;
|
||||
return (this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,6 +51,16 @@ public interface QWidgetMetaDataInterface extends MetaDataWithPermissionRules
|
||||
*******************************************************************************/
|
||||
QWidgetMetaDataInterface withName(String name);
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for footerHTML
|
||||
*******************************************************************************/
|
||||
String getFooterHTML();
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for footerHTML
|
||||
*******************************************************************************/
|
||||
void setFooterHTML(String label);
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for label
|
||||
*******************************************************************************/
|
||||
|
@ -44,6 +44,7 @@ public class QFrontendWidgetMetaData
|
||||
private final String type;
|
||||
private final String icon;
|
||||
private final Integer gridColumns;
|
||||
private final String footerHTML;
|
||||
private final boolean isCard;
|
||||
private final String minHeight;
|
||||
private final boolean storeDropdownSelections;
|
||||
@ -68,6 +69,7 @@ public class QFrontendWidgetMetaData
|
||||
this.icon = widgetMetaData.getIcon();
|
||||
this.gridColumns = widgetMetaData.getGridColumns();
|
||||
this.isCard = widgetMetaData.getIsCard();
|
||||
this.footerHTML = widgetMetaData.getFooterHTML();
|
||||
this.minHeight = widgetMetaData.getMinHeight();
|
||||
this.dropdowns = widgetMetaData.getDropdowns();
|
||||
this.storeDropdownSelections = widgetMetaData.getStoreDropdownSelections();
|
||||
@ -121,6 +123,17 @@ public class QFrontendWidgetMetaData
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for footerHTML
|
||||
**
|
||||
*******************************************************************************/
|
||||
public String getFooterHTML()
|
||||
{
|
||||
return footerHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for isCard
|
||||
**
|
||||
|
Reference in New Issue
Block a user