Class Fields
- java.lang.Object
-
- com.broadleafcommerce.metadata.dsl.core.utils.Fields
-
public final class Fields extends Object
- Author:
- Nick Crum (ncrum)
-
-
Method Summary
-
-
-
Method Detail
-
field
public static DefaultField field()
-
field
public static DefaultField field(String type)
-
string
public static DefaultField string()
- Returns:
- a field that renders a text input
-
text
public static DefaultField text()
Alias forstring()
.- Returns:
- a field that renders a text input
-
textArea
public static DefaultField textArea()
- Returns:
- a field that renders a textarea input
-
integer
public static DefaultField integer()
-
configurableInteger
public static DefaultIntegerField configurableInteger()
-
longInteger
public static DefaultField longInteger()
-
decimal
public static DefaultField decimal()
-
html
public static DefaultField html()
-
bool
public static DefaultField bool()
-
date
public static DefaultDateField date()
-
colorPicker
public static DefaultField colorPicker()
-
stringArray
public static DefaultField stringArray()
-
derived
public static DefaultDerivedField derived()
-
derivedSelect
public static DefaultDerivedSelectField derivedSelect()
-
derivedUrl
public static DefaultDerivedUrlField derivedUrl()
-
dynamic
public static DefaultDynamicField dynamic()
Creates a newDefaultDynamicField
.- Returns:
- a
DefaultDynamicField
-
phone
public static DefaultPhoneField phone()
Creates a newDefaultPhoneField
.- Returns:
- a
DefaultDynamicField
-
select
public static DefaultSelectField select()
-
fileInput
public static DefaultFileInputField fileInput()
-
money
public static DefaultMoneyField money()
-
lookup
public static DefaultLookupField lookup()
Creates a newLookupField
.
-
lookupOption
public static DefaultLookupField lookupOption()
Creates a newLookupField
withLookupField.optionSelection()
configured. This is useful in situations where the selection of an option should result in the option being stored as the field's value.- Returns:
- a
LookupField
-
lookupValue
public static DefaultLookupField lookupValue()
Creates a newLookupField
withLookupField.valueSelection()
configured. This is useful in situations where the selection of an option should result in only the option's value, or ID, being stored as the field's value.- Returns:
- a
LookupField
-
residentGrid
public static DefaultResidentGridField residentGrid()
-
residentMap
public static DefaultResidentMapField residentMap()
Creates a newResidentMapField
. This field is useful for managing a key-value map that is resident on the entity being managed.- Returns:
- a
ResidentMapField
-
customAttributesGrid
public static DefaultCustomAttributesGridField customAttributesGrid()
-
ruleBuilder
public static DefaultRuleBuilderField ruleBuilder()
-
queryBuilder
public static DefaultQueryBuilderField queryBuilder()
-
fieldArrayGrid
public static DefaultFieldArrayGridField fieldArrayGrid()
-
fieldArrayBlock
public static DefaultFieldArrayBlockField fieldArrayBlock()
-
-