mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
QQQ-41: checkpoint commit for moving to next sprint
This commit is contained in:
@ -55,14 +55,14 @@ public class TableData implements QWidget
|
|||||||
private String title;
|
private String title;
|
||||||
private List<Column> columns;
|
private List<Column> columns;
|
||||||
private List<Map<String, Object>> rows;
|
private List<Map<String, Object>> rows;
|
||||||
private List<String> dropdownOptions;
|
private List<Map<String, String>> dropdownOptions;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public TableData(String title, List<Column> columns, List<Map<String, Object>> rows, List<String> dropdownOptions)
|
public TableData(String title, List<Column> columns, List<Map<String, Object>> rows, List<Map<String, String>> dropdownOptions)
|
||||||
{
|
{
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
setColumns(columns);
|
setColumns(columns);
|
||||||
@ -189,7 +189,7 @@ public class TableData implements QWidget
|
|||||||
** Getter for dropdownOptions
|
** Getter for dropdownOptions
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public List<String> getDropdownOptions()
|
public List<Map<String, String>> getDropdownOptions()
|
||||||
{
|
{
|
||||||
return dropdownOptions;
|
return dropdownOptions;
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ public class TableData implements QWidget
|
|||||||
** Setter for dropdownOptions
|
** Setter for dropdownOptions
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public void setDropdownOptions(List<String> dropdownOptions)
|
public void setDropdownOptions(List<Map<String, String>> dropdownOptions)
|
||||||
{
|
{
|
||||||
this.dropdownOptions = dropdownOptions;
|
this.dropdownOptions = dropdownOptions;
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ public class TableData implements QWidget
|
|||||||
** Fluent setter for dropdownOptions
|
** Fluent setter for dropdownOptions
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public TableData withDropdownOptions(List<String> dropdownOptions)
|
public TableData withDropdownOptions(List<Map<String, String>> dropdownOptions)
|
||||||
{
|
{
|
||||||
this.dropdownOptions = dropdownOptions;
|
this.dropdownOptions = dropdownOptions;
|
||||||
return (this);
|
return (this);
|
||||||
|
@ -24,6 +24,7 @@ package com.kingsrook.qqq.backend.core.utils;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigInteger;
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@ -115,6 +116,10 @@ public class ValueUtils
|
|||||||
{
|
{
|
||||||
return (i);
|
return (i);
|
||||||
}
|
}
|
||||||
|
else if(value instanceof BigInteger b)
|
||||||
|
{
|
||||||
|
return (b.intValue());
|
||||||
|
}
|
||||||
else if(value instanceof Long l)
|
else if(value instanceof Long l)
|
||||||
{
|
{
|
||||||
return Math.toIntExact(l);
|
return Math.toIntExact(l);
|
||||||
|
Reference in New Issue
Block a user