@DesignerControl(defaultWidth=3)
@DocumentedComponent(category=INPUTS_AND_VALIDATION,
value="InputText component is responsible for displaying simple field, where user can write some data plus label representing this field.",
icon="fa fa-edit")
@Control(parents={PanelGroup.class,Column.class,ColumnOptimized.class,Tab.class,Row.class,pl.fhframework.model.forms.Form.class,Repeater.class,Group.class},
invalidParents=Table.class,
canBeDesigned=true)
@OverridenPropertyAnnotations(property="modelBinding",
designerXmlProperty=@DesignerXMLProperty(allowedTypes=java.lang.String.class,commonUse=true,previewValueProvider=InputFieldDesignerPreviewProvider.class,priority=80,functionalArea=CONTENT))
public class InputText
extends BaseInputFieldWithKeySupport
implements pl.fhframework.tools.loading.IBodyXml
LABEL_ATTR, MESSAGE_FOR_FIELD_ATTR, ON_CHANGE_ATTR, PRESENTATION_STYLE_ATTR, RAW_VALUE_ATTR, REQUIRED_ATTR, VALIDATION_LABEL_ATTR, validationManager, validConversion, VALUE_ATTRCONFIRATION_MSG_ATTR| Constructor and Description |
|---|
InputText(pl.fhframework.model.forms.Form form) |
| Modifier and Type | Method and Description |
|---|---|
InputText |
createNewSameComponent()
Create a new component of the same type.
|
protected pl.fhframework.validation.ValidationManager<BaseInputField> |
createValidationManager() |
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
BaseInputField baseClone)
Copies values of attributes with replaced iterators in bindings and actions to a new component of the same type.
|
String |
getBodyAttributeName() |
Optional<pl.fhframework.binding.ActionBinding> |
getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData) |
Optional<String> |
getOptionalFormatter() |
void |
init() |
void |
setBody(String body) |
void |
setOnInput(pl.fhframework.binding.ActionBinding onInput) |
pl.fhframework.binding.IActionCallbackContext |
setOnInput(pl.fhframework.binding.IActionCallback onInput) |
pl.fhframework.model.dto.ElementChanges |
updateView() |
setOnKeyEvent, setOnKeyEventcalculateAvailability, calculatePresentationStyle, checkBinding, convertMainValueToString, convertToRaw, getAllBingings, getTargetModelBinding, prepareComponentAfterValidation, processCoversionException, processLabelBinding, processPresentationStyle, processStylesAndHints, processValidationForThisComponent, processValueBinding, setLabelModelBindingAdHoc, setModelBindingAdHoc, setOnChange, setOnChange, updateModel, validategetConfirmationMsg, 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, waitgetKeyEvent, getKeyEventHandler, getKeyEventHandlers, getOnKeyEvent, initKeyHandlers, setKeyEvent, setKeyEventHandlersgetIcon, getIconAlignment, getIconBinding, resolveIconBindingupdateBinding, updateBinding, updateBindingForValue, updateBindingForValuegetId, getLabel, getModelBinding, getPresentationStyle, getValidationLabelModelBinding, skipSettingPresentationdoCopy, getCopy, getCopypublic void init()
init in class BaseInputFieldWithKeySupportpublic Optional<pl.fhframework.binding.ActionBinding> getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData)
getEventHandler in interface pl.fhframework.events.IEventSourcegetEventHandler in class BaseInputFieldWithKeySupportpublic Optional<String> getOptionalFormatter()
getOptionalFormatter in interface pl.fhframework.model.forms.Boundablepublic InputText createNewSameComponent()
TableComponentcreateNewSameComponent in interface TableComponent<BaseInputField>public void doCopy(Table table, Map<String,String> iteratorReplacements, BaseInputField baseClone)
TableComponentdoCopy in interface TableComponent<BaseInputField>doCopy in class BaseInputFieldtable - tableiteratorReplacements - iterator replacementsbaseClone - a new component of the same typepublic void setBody(String body)
setBody in interface pl.fhframework.tools.loading.IBodyXmlpublic String getBodyAttributeName()
getBodyAttributeName in interface pl.fhframework.tools.loading.IBodyXmlpublic pl.fhframework.model.dto.ElementChanges updateView()
updateView in class BaseInputFieldprotected pl.fhframework.validation.ValidationManager<BaseInputField> createValidationManager()
createValidationManager in class BaseInputFieldpublic void setOnInput(pl.fhframework.binding.ActionBinding onInput)
public pl.fhframework.binding.IActionCallbackContext setOnInput(pl.fhframework.binding.IActionCallback onInput)
Copyright © 2019. All rights reserved.