mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +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
|
public abstract class QWidgetData
|
||||||
{
|
{
|
||||||
private String label;
|
private String label;
|
||||||
|
private String footerHTML;
|
||||||
private List<String> dropdownNameList;
|
private List<String> dropdownNameList;
|
||||||
private List<String> dropdownLabelList;
|
private List<String> dropdownLabelList;
|
||||||
private Boolean hasPermission;
|
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
|
** Getter for dropdownLabelList
|
||||||
**
|
**
|
||||||
|
@ -42,6 +42,7 @@ public class QWidgetMetaData implements QWidgetMetaDataInterface
|
|||||||
protected String label;
|
protected String label;
|
||||||
protected String type;
|
protected String type;
|
||||||
protected String minHeight;
|
protected String minHeight;
|
||||||
|
protected String footerHTML;
|
||||||
protected boolean isCard;
|
protected boolean isCard;
|
||||||
protected Integer gridColumns;
|
protected Integer gridColumns;
|
||||||
protected QCodeReference codeReference;
|
protected QCodeReference codeReference;
|
||||||
@ -494,4 +495,38 @@ public class QWidgetMetaData implements QWidgetMetaDataInterface
|
|||||||
return (this);
|
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);
|
QWidgetMetaDataInterface withName(String name);
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for footerHTML
|
||||||
|
*******************************************************************************/
|
||||||
|
String getFooterHTML();
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for footerHTML
|
||||||
|
*******************************************************************************/
|
||||||
|
void setFooterHTML(String label);
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Getter for label
|
** Getter for label
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -44,6 +44,7 @@ public class QFrontendWidgetMetaData
|
|||||||
private final String type;
|
private final String type;
|
||||||
private final String icon;
|
private final String icon;
|
||||||
private final Integer gridColumns;
|
private final Integer gridColumns;
|
||||||
|
private final String footerHTML;
|
||||||
private final boolean isCard;
|
private final boolean isCard;
|
||||||
private final String minHeight;
|
private final String minHeight;
|
||||||
private final boolean storeDropdownSelections;
|
private final boolean storeDropdownSelections;
|
||||||
@ -68,6 +69,7 @@ public class QFrontendWidgetMetaData
|
|||||||
this.icon = widgetMetaData.getIcon();
|
this.icon = widgetMetaData.getIcon();
|
||||||
this.gridColumns = widgetMetaData.getGridColumns();
|
this.gridColumns = widgetMetaData.getGridColumns();
|
||||||
this.isCard = widgetMetaData.getIsCard();
|
this.isCard = widgetMetaData.getIsCard();
|
||||||
|
this.footerHTML = widgetMetaData.getFooterHTML();
|
||||||
this.minHeight = widgetMetaData.getMinHeight();
|
this.minHeight = widgetMetaData.getMinHeight();
|
||||||
this.dropdowns = widgetMetaData.getDropdowns();
|
this.dropdowns = widgetMetaData.getDropdowns();
|
||||||
this.storeDropdownSelections = widgetMetaData.getStoreDropdownSelections();
|
this.storeDropdownSelections = widgetMetaData.getStoreDropdownSelections();
|
||||||
@ -121,6 +123,17 @@ public class QFrontendWidgetMetaData
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for footerHTML
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public String getFooterHTML()
|
||||||
|
{
|
||||||
|
return footerHTML;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Getter for isCard
|
** Getter for isCard
|
||||||
**
|
**
|
||||||
|
Reference in New Issue
Block a user