@Component(value="ui_AttributeComponentProvider")
@Scope(value="prototype")
public class AttributeComponentProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CheckBox |
checkBox |
protected DateField<java.util.Date> |
dateField |
protected Frame |
frame |
protected boolean |
isFixedSize |
protected BoxLayout |
layout |
protected io.jmix.core.Messages |
messages |
protected boolean |
requestFocus |
protected TextField<java.lang.String> |
textField |
protected ThemeConstants |
themeConstants |
protected java.lang.String |
type |
protected UiComponents |
uiComponents |
protected java.lang.Object |
value |
Constructor and Description |
---|
AttributeComponentProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
addRow(java.lang.Object value,
ComponentContainer parent,
boolean isReadOnly) |
AttributeComponentProvider |
build() |
java.lang.Object |
getAttributeValue(boolean allowNull) |
Component |
getComponent() |
protected java.util.List<java.lang.String> |
getValuesFromArrayLayout(BoxLayout layout) |
protected void |
initArrayLayout(java.lang.Object value,
boolean isFixedSize,
boolean isReadOnly) |
protected java.util.List |
objectToStringArray(java.lang.Object value) |
AttributeComponentProvider |
requestFocus(boolean requestFocus) |
void |
setThemeConstants(ThemeConstantsManager themeConstantsManager) |
AttributeComponentProvider |
withFixedSize(boolean isFixedSize) |
AttributeComponentProvider |
withFrame(Frame frame) |
AttributeComponentProvider |
withType(java.lang.String type) |
AttributeComponentProvider |
withValue(java.lang.Object value) |
protected CheckBox checkBox
protected TextField<java.lang.String> textField
protected DateField<java.util.Date> dateField
protected BoxLayout layout
protected java.lang.String type
protected Frame frame
protected java.lang.Object value
protected boolean requestFocus
protected boolean isFixedSize
@Autowired protected io.jmix.core.Messages messages
@Autowired protected UiComponents uiComponents
protected ThemeConstants themeConstants
@Autowired public void setThemeConstants(ThemeConstantsManager themeConstantsManager)
public AttributeComponentProvider withFrame(Frame frame)
public AttributeComponentProvider withType(java.lang.String type)
public AttributeComponentProvider withValue(java.lang.Object value)
public AttributeComponentProvider requestFocus(boolean requestFocus)
public AttributeComponentProvider withFixedSize(boolean isFixedSize)
public AttributeComponentProvider build()
protected void initArrayLayout(java.lang.Object value, boolean isFixedSize, boolean isReadOnly)
protected void addRow(java.lang.Object value, ComponentContainer parent, boolean isReadOnly)
protected java.util.List objectToStringArray(java.lang.Object value)
public Component getComponent()
public java.lang.Object getAttributeValue(boolean allowNull)
protected java.util.List<java.lang.String> getValuesFromArrayLayout(BoxLayout layout)