mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-551 Add defaultValue to frontend field meta data
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
package com.kingsrook.qqq.backend.core.model.metadata.frontend;
|
package com.kingsrook.qqq.backend.core.model.metadata.frontend;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
@ -46,6 +47,7 @@ public class QFrontendFieldMetaData
|
|||||||
private boolean isHeavy;
|
private boolean isHeavy;
|
||||||
private String possibleValueSourceName;
|
private String possibleValueSourceName;
|
||||||
private String displayFormat;
|
private String displayFormat;
|
||||||
|
private Serializable defaultValue;
|
||||||
|
|
||||||
private List<FieldAdornment> adornments;
|
private List<FieldAdornment> adornments;
|
||||||
|
|
||||||
@ -69,6 +71,7 @@ public class QFrontendFieldMetaData
|
|||||||
this.possibleValueSourceName = fieldMetaData.getPossibleValueSourceName();
|
this.possibleValueSourceName = fieldMetaData.getPossibleValueSourceName();
|
||||||
this.displayFormat = fieldMetaData.getDisplayFormat();
|
this.displayFormat = fieldMetaData.getDisplayFormat();
|
||||||
this.adornments = fieldMetaData.getAdornments();
|
this.adornments = fieldMetaData.getAdornments();
|
||||||
|
this.defaultValue = fieldMetaData.getDefaultValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -170,4 +173,14 @@ public class QFrontendFieldMetaData
|
|||||||
return possibleValueSourceName;
|
return possibleValueSourceName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for defaultValue
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public Serializable getDefaultValue()
|
||||||
|
{
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user