@DesignerControl(defaultWidth=2) public abstract class BaseInputField extends FormElementWithConfirmationSupport implements IChangeableByClient, Iconable, Boundable, IValidatedComponent, TableComponent<BaseInputField>, IHasBoundableLabel
| Modifier and Type | Field and Description |
|---|---|
protected static String |
LABEL_ATTR |
protected static String |
MESSAGE_FOR_FIELD_ATTR |
protected static String |
ON_CHANGE_ATTR |
protected static String |
PRESENTATION_STYLE_ATTR |
protected static String |
RAW_VALUE_ATTR |
protected static String |
REQUIRED_ATTR |
protected static String |
VALIDATION_LABEL_ATTR |
protected ValidationManager<BaseInputField> |
validationManager |
protected boolean |
validConversion |
protected static String |
VALUE_ATTR |
CONFIRATION_MSG_ATTRACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
BaseInputField(Form form) |
getConfirmationMsg, getConfirmationMsgBinding, getConfirmOnEvent, processConfirmationMsgBinding, setConfirmationMsg, setConfirmationMsgBinding, setConfirmOnEventgetHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHorizontalAlign, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, setHorizontalAlign, setInlineStyle, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPush, setStyleClasses, setVerticalAlign, setWidth, setWrapperStyle, tryParseAttributeInPixelOrPercentageUnit, tryParseAttributeInPixelUnit, tryParseAttributeInPixelUnitareModelValuesTheSame, areValuesTheSame, clone, convertBindingValueToString, convertBindingValueToString, convertValue, convertValueToString, convertValueToString, createAdHocModelBinding, equals, finalizeReading, generateId, getAccessibilityRules, getAvailability, getAvailabilityModelBinding, getAvailablityAffectingActions, getBindingContext, getEventProcessingForm, getForm, getGeneratedIdPrefix, getGroupingParentComponent, getId, getOnDesignerToolboxDrop, getRawId, getType, hashCode, isArtificial, isGeneratedId, isInitDone, isInvisible, isStopProcessingUpdateView, onProcessingFinish, onProcessingStart, postClone, preConfigureClear, prepareEventDataArgument, refreshAvailability, resetInitDone, setArtificial, setAvailability, setAvailabilityModelBinding, setBindingContext, setGroupingParentComponent, setId, setInvisible, setOnDesignerToolboxDrop, setOnDesignerToolboxDrop, setRawId, setStopProcessingUpdateView, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetIcon, getIconAlignment, getIconBinding, resolveIconBindinggetOptionalFormatter, updateBinding, updateBinding, updateBindingForValue, updateBindingForValuegetId, getLabel, getModelBinding, getPresentationStyle, getValidationLabelModelBinding, skipSettingPresentationcreateNewSameComponent, doCopy, getCopy, getCopygetLabelModelBindingisDesignActionAllowed, isDesignDeletableisModificationEventprotected static final String ON_CHANGE_ATTR
protected static final String RAW_VALUE_ATTR
protected static final String VALUE_ATTR
protected static final String REQUIRED_ATTR
protected static final String LABEL_ATTR
protected static final String VALIDATION_LABEL_ATTR
protected static final String PRESENTATION_STYLE_ATTR
protected static final String MESSAGE_FOR_FIELD_ATTR
protected ValidationManager<BaseInputField> validationManager
protected boolean validConversion
public BaseInputField(Form form)
public void init()
init in class FormElementWithConfirmationSupportpublic void updateModel(ValueChange valueChange)
updateModel in interface IChangeableByClientupdateModel in class FormElementWithConfirmationSupportprotected void processCoversionException(FhBindingException cfe)
public Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class Componentpublic ElementChanges updateView()
updateView in class FormElementWithConfirmationSupportprotected String convertToRaw(BindingResult<?> bindingResult)
protected boolean processValueBinding(ElementChanges elementChanges)
public void calculateAvailability()
calculateAvailability in class Componentprotected void checkBinding()
@Deprecated public void setModelBindingAdHoc(String binding)
@Deprecated public void setLabelModelBindingAdHoc(String labelBinding)
protected boolean processLabelBinding(ElementChanges elementChanges)
public void validate()
validate in interface IValidatedComponentpublic void prepareComponentAfterValidation(ElementChanges elementChanges)
prepareComponentAfterValidation in interface IValidatedComponentpublic List<ModelBinding> getAllBingings()
getAllBingings in interface IValidatedComponentprotected List<ConstraintViolation<BaseInputField>> processValidationForThisComponent()
protected ValidationManager<BaseInputField> createValidationManager()
protected void processStylesAndHints(ElementChanges elementChanges, List<FieldValidationResult> fieldValidationResults)
protected FormFieldHints processPresentationStyle(ElementChanges elementChanges, List<FieldValidationResult> fieldValidationResults)
protected ModelBinding getTargetModelBinding()
protected FormFieldHints calculatePresentationStyle(BindingResult bindingResult)
public void doCopy(Table table, Map<String,String> iteratorReplacements, BaseInputField inputFieldClone)
TableComponentdoCopy in interface TableComponent<BaseInputField>table - tableiteratorReplacements - iterator replacementsinputFieldClone - a new component of the same typeprotected String convertMainValueToString(Object value, Optional<String> converterName)
public void setOnChange(ActionBinding onChange)
public IActionCallbackContext setOnChange(IActionCallback onChange)
Copyright © 2020. All rights reserved.