Package overit.geocall.basic.ui.control
Class InputText
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Input
overit.geocall.basic.ui.control.InputText
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,ValueValidator,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
InputCode,InputTextDataCollection
@Component
@Configurable
@ConfigurableAttribute(name="ROWS",label="Rows",type="LONG",properties={@Property(key="less",value="9223372036854775807"),@Property(key="greater",value="-9223372036854775808")}) @ConfigurableAttribute(name="COLS",label="Cols",type="LONG",properties={@Property(key="less",value="9223372036854775807"),@Property(key="greater",value="-9223372036854775808")})
@Ignore("SIZE")
public class InputText
extends Input
The class implements a textual InputText field. With this element it is possible
create a textual field having certain rows and columns, and a minimum and maximum
length of input.
- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanstatic final Stringprotected Stringprotected Stringstatic final StringFields inherited from class overit.geocall.basic.ui.control.Input
_autofocus, _da, _dao, _dao0, _defaultFocus, _event, _eventicon, _eventmsg, _eventparam, _eventprompt, _eventsnumber, _eventtitle, _ff, _fullSize, _hidden, _hinter, _hints, _hintsCache, _key, _label2, _letterCase, _maxlength, _msg, _msgCampoObbligatorio, _msgErroreCampo, _notnull, _numeric, _placeholder, _query, _roevent, _size, _value, autocomplete, configuredFullSize, configuredNotNull, configuredSize, FILTER_CRITERION_ATTRIBUTE, filterCriteria, FULL_SIZE_ATTRIBUTE, NOT_NULL_ATTRIBUTE, promptEmpty, SIZE_ATTRIBUTEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetCols()Gets the real cols value to apply.org.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Override the methodgetContentHtml(generationhandle, es).getRows()Gets the real rows value to apply.protected Stringnormalization(String value) voidSet the number of columns that the element must havevoidsetConfiguredProperty(Map<String, Serializable> properties) Apply the user's properties customization into the component.voidSet the maximum length of the text to insert in the field.voidSet the minimum length of the text to insert in the field.voidsetModelProperties(@NotNull DataAttribute dataAttribute) Sets the model properties based on the providedDataAttribute.voidSet the number of rows that the element must haveprotected voidsetup()Setup the Componentprotected voidprotected voidvalidateUnchangingValue(String name, Object value, Object published, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, buildDisplayScript, connect, control, getClassStyle, getConfigurableProperties, getDefaultValue, getDescriptionHtml, getFilterCriteriaToRemove, getFullSize, getGenerationHandle, getHIDDEN, getHiddenHtml, getHintsEventButton, getHintsFieldName, getHtml, getInsideEventButton, getInsideEventButton, getLetterCase, getNOTNULL, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, prepareName, prepareValue, queryHints, registerValidators, setAUTOCOMPLETE, setAUTOFOCUS, setDA, setDAO, setDAO0, setDEFAULTFOCUS, setEVENT, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setFILTERCRITERIA, setFULLSIZE, setHIDDEN, setHints, setHINTS, setHINTSCACHE, setICON, setIMPORTANT, setKEY, setLABEL2, setLETTERCASE, setMAXLENGTH, setMSG, setNAME, setNOTNULL, setNUMERIC, setPARAM, setPLACEHOLDER, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, setVALUE, validate, validateChangingValue, validateConcreteValue, validateNotNull, validateValueMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setDBLINK, setENABLED, setFUNCTION, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, appendAttribute, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBASIC, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setIdentity, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
ROWS_ATTRIBUTE
- See Also:
-
COLS_ATTRIBUTE
- See Also:
-
_rows
-
_cols
-
configuredRows
-
configuredCols
-
_max
-
_min
-
_spellcheck
protected boolean _spellcheck
-
-
Constructor Details
-
InputText
public InputText()
-
-
Method Details
-
setROWS
Set the number of rows that the element must have- Parameters:
sRows- Number of rows. It must be greater than 0.
-
getRows
Gets the real rows value to apply.
This method returns the value of the attribute based on if there is a user customization on the rows attribute. If there is no customization returns the default value.- Returns:
- the rows size value to apply
-
setCOLS
Set the number of columns that the element must have- Parameters:
sCols- Number of columns. It must be greater than 0.
-
getCols
Gets the real cols value to apply.
This method returns the value of the attribute based on if there is a user customization on the cols attribute. If there is no customization returns the default value.- Returns:
- the cols size value to apply
-
setMAX
Set the maximum length of the text to insert in the field.- Parameters:
sMaxChar- Maximum length. If value is lower of 0, the length is set to 1.
-
setMIN
Set the minimum length of the text to insert in the field.- Parameters:
sMinChar- Minimum length. If value is lower of 0, the length is set to 1.
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
getContentHtml
Override the methodgetContentHtml(generationhandle, es). It returns the html code that represents the active part of the input field, i.e. the field and the validation scripts.- Specified by:
getContentHtmlin interfaceArrangeable- Overrides:
getContentHtmlin classInput- Parameters:
generationhandle- the unique generating handlees- TheEntitySetto which the element belongs- Returns:
- The html code of the input field or null if the field don't have a graphical representation
-
validate
-
validateUnchangingValue
protected void validateUnchangingValue(String name, Object value, Object published, boolean strong, Map arriving) throws ValidationException - Overrides:
validateUnchangingValuein classInput- Throws:
ValidationException
-
control
-
normalization
-
setConfiguredProperty
Description copied from interface:overit.geocall.ux.configurability.UIConfigurableApply the user's properties customization into the component.- Specified by:
setConfiguredPropertyin interfaceoverit.geocall.ux.configurability.UIConfigurable- Overrides:
setConfiguredPropertyin classInput- Parameters:
properties- The map containing the configured properties to set
-
setModelProperties
Description copied from interface:overit.geocall.ux.edm.ModelConfigurableSets the model properties based on the providedDataAttribute.- Specified by:
setModelPropertiesin interfaceoverit.geocall.ux.edm.ModelConfigurable- Overrides:
setModelPropertiesin classInput- Parameters:
dataAttribute- a non-nullDataAttributeused to set model properties
-