Class AbstractHTMLWidgetRenderer
java.lang.Object
com.kingsrook.qqq.backend.core.actions.dashboard.widgets.AbstractWidgetRenderer
com.kingsrook.qqq.backend.core.actions.dashboard.AbstractHTMLWidgetRenderer
Base class for rendering qqq HTML dashboard widgets
-
Field Summary
Fields inherited from class com.kingsrook.qqq.backend.core.actions.dashboard.widgets.AbstractWidgetRenderer
dateFormatter, valueFormatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTableFilterToListIfPermissed
(RenderWidgetInput input, String tableName, List<String> urls, QQueryFilter filter) static String
aHrefTableCreateChild
(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues) static String
aHrefTableCreateChild
(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues, Set<String> disabledFields) static String
aHrefTableFilterNoOfRecords
(String tableName, QQueryFilter filter, Integer noOfRecords, String singularLabel, String pluralLabel) static String
aHrefTableFilterNoOfRecords
(String tableName, QQueryFilter filter, Integer noOfRecords, String singularLabel, String pluralLabel, boolean onlyLinkCount) static String
aHrefViewRecord
(String tableName, Serializable id, String linkText) protected String
bulletItalics
(String text) protected String
bulletLink
(String href, String text) protected String
bulletNameLink
(String name, String href, String text) protected String
bulletNameValue
(String name, String value) static String
static String
getChipElement
(String icon, String label, String color) static String
getCountLink
(RenderWidgetInput input, String tableName, QQueryFilter filter, int count) static String
linkProcessForFilter
(AbstractActionInput input, String processName, QQueryFilter filter) Deprecated.static String
linkProcessForFilter
(String processName, QQueryFilter filter) static String
linkProcessForRecord
(AbstractActionInput input, String processName, Serializable recordId) Deprecated.static String
linkProcessForRecord
(String processName, Serializable recordId) static String
linkRecordEdit
(AbstractActionInput input, String tableName, Serializable recordId) Deprecated.static String
linkRecordEdit
(String tableName, Serializable recordId) static String
linkRecordView
(String tableName, Serializable recordId) static String
linkTableBulkLoad
(RenderWidgetInput input, String tableName) static String
linkTableBulkLoadChildren
(RenderWidgetInput input, String tableName) static String
linkTableCreate
(RenderWidgetInput input, String tableName) static String
linkTableCreateChild
(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues) static String
linkTableCreateChild
(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues, Set<String> disabledFields) static String
linkTableCreateWithDefaultValues
(RenderWidgetInput input, String tableName, Map<String, Serializable> defaultValues) static String
linkTableFilter
(String tableName, QQueryFilter filter) static String
linkTableFilterUnencoded
(RenderWidgetInput input, String tableName, QQueryFilter filter) static String
Methods inherited from class com.kingsrook.qqq.backend.core.actions.dashboard.widgets.AbstractWidgetRenderer
render, setupDropdowns
-
Constructor Details
-
AbstractHTMLWidgetRenderer
public AbstractHTMLWidgetRenderer()
-
-
Method Details
-
openTopLevelBulletList
-
closeTopLevelBulletList
-
bulletItalics
-
bulletLink
-
bulletNameLink
-
bulletNameValue
-
linkTableBulkLoad
- Throws:
QException
-
linkTableBulkLoadChildren
public static String linkTableBulkLoadChildren(RenderWidgetInput input, String tableName) throws QException - Throws:
QException
-
linkTableCreate
- Throws:
QException
-
linkTableCreateWithDefaultValues
public static String linkTableCreateWithDefaultValues(RenderWidgetInput input, String tableName, Map<String, Serializable> defaultValues) throws QException- Throws:
QException
-
getCountLink
public static String getCountLink(RenderWidgetInput input, String tableName, QQueryFilter filter, int count) throws QException - Throws:
QException
-
addTableFilterToListIfPermissed
public static void addTableFilterToListIfPermissed(RenderWidgetInput input, String tableName, List<String> urls, QQueryFilter filter) throws QException - Throws:
QException
-
linkTableFilterUnencoded
public static String linkTableFilterUnencoded(RenderWidgetInput input, String tableName, QQueryFilter filter) throws QException - Throws:
QException
-
linkTableFilter
- Throws:
QException
-
aHrefTableFilterNoOfRecords
public static String aHrefTableFilterNoOfRecords(String tableName, QQueryFilter filter, Integer noOfRecords, String singularLabel, String pluralLabel) throws QException - Throws:
QException
-
aHrefTableFilterNoOfRecords
public static String aHrefTableFilterNoOfRecords(String tableName, QQueryFilter filter, Integer noOfRecords, String singularLabel, String pluralLabel, boolean onlyLinkCount) throws QException - Throws:
QException
-
aHrefViewRecord
public static String aHrefViewRecord(String tableName, Serializable id, String linkText) throws QException - Throws:
QException
-
linkRecordEdit
@Deprecated(since="call one that doesn't take input param") public static String linkRecordEdit(AbstractActionInput input, String tableName, Serializable recordId) throws QException Deprecated.- Throws:
QException
-
linkRecordEdit
- Throws:
QException
-
linkRecordView
- Throws:
QException
-
linkProcessForFilter
@Deprecated(since="call one that doesn't take input param") public static String linkProcessForFilter(AbstractActionInput input, String processName, QQueryFilter filter) throws QException Deprecated.- Throws:
QException
-
linkProcessForFilter
public static String linkProcessForFilter(String processName, QQueryFilter filter) throws QException - Throws:
QException
-
linkProcessForRecord
@Deprecated(since="call one that doesn't take input param") public static String linkProcessForRecord(AbstractActionInput input, String processName, Serializable recordId) throws QException Deprecated.- Throws:
QException
-
linkProcessForRecord
public static String linkProcessForRecord(String processName, Serializable recordId) throws QException - Throws:
QException
-
linkTableCreateChild
public static String linkTableCreateChild(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues) throws QException- Throws:
QException
-
aHrefTableCreateChild
public static String aHrefTableCreateChild(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues) throws QException- Throws:
QException
-
linkTableCreateChild
public static String linkTableCreateChild(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues, Set<String> disabledFields) throws QException- Throws:
QException
-
getChipElement
- Throws:
QException
-
aHrefTableCreateChild
public static String aHrefTableCreateChild(RenderWidgetInput input, String childTableName, Map<String, Serializable> defaultValues, Set<String> disabledFields) throws QException- Throws:
QException
-