mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-09 05:48:20 +00:00
Documentation
This commit is contained in:
parent
fb5384c726
commit
95d47e58f0
@ -492,12 +492,38 @@ public enum DbFieldType {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the name of the Thymeleaf fragments in the 'inputs.html'
|
||||||
|
* file, used to render an input field for this specific type.
|
||||||
|
* For example, a fragment using a file input is used for binary fields.
|
||||||
|
*
|
||||||
|
* For some types, the fragment to be used varies in different context.
|
||||||
|
*
|
||||||
|
* @param c the context in which this fragment has to be rendered
|
||||||
|
*/
|
||||||
public abstract String getFragmentName(FragmentContext c);
|
public abstract String getFragmentName(FragmentContext c);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse the value received through an HTML form into a instance
|
||||||
|
* of an object of this specific type. This usually involves a conversion
|
||||||
|
* from string, but, for example, files are sent as MultipartFile instead.
|
||||||
|
* @param value the value to parse
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public abstract Object parseValue(Object value);
|
public abstract Object parseValue(Object value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the Java class corresponding to this field type.
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public abstract Class<?> getJavaClass();
|
public abstract Class<?> getJavaClass();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of compare operators that can be used to compare
|
||||||
|
* two values for this field type. Used in the faceted search to provide
|
||||||
|
* more operators than just equality (e.g. after/before for dates).
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public abstract List<CompareOperator> getCompareOperators();
|
public abstract List<CompareOperator> getCompareOperators();
|
||||||
|
|
||||||
public boolean isRelationship() {
|
public boolean isRelationship() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user