Package overit.geocall.basic.ui.control
Class Output
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Output
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
MultiDecoder,OutputBarcode,OutputCheckBox,OutputCurrency,OutputDate,OutputDouble,OutputDTZ,OutputECS,OutputLong,OutputLookup,OutputProgress,OutputSpan,OutputStaticView,OutputSwitch,OutputTime,OutputTimeRange,OutputXML
This class, which extends
Control, implements the graphic user interface object that must be used
for the presentation of non-modifiable data. The contents of the output fields will not be passed as parameters
when you submit the Form that contains them.- 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 ListAttributeprotected ListAttributeprotected intprotected ListAttributeprotected ForeignFieldprotected booleanprotected Stringprotected intprotected ListAttributeprotected booleanprotected booleanprotected ListAttributeprotected ListAttributeprotected Stringprotected booleanprotected Stringprotected booleanprotected intprotected booleanFields 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 TypeMethodDescriptionorg.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Returns the html code that represents the active part of the component, i.e. the field and the validation scriptsorg.apache.ecs.ElementgetDescriptionHtml(Object generationhandle, EntitySet es) Returns the html code that represents the component description i.e. the formatted label of the fieldReturns the object to generate when the Arrangeable element is composed by more than one elementorg.apache.ecs.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Returns the hidden but active html part of an hidden componentorg.apache.ecs.ElementAbstract method that must be extended and returns the html code of the Componentprotected org.apache.ecs.Elementprotected StringvoidSets one or more events associated to the output field.voidSets one (or more) string that appear as messages for the events associated to the field (seesetEVENT()).voidSets one (or more) parameter for the events associated to the field (seesetEVENT()).voidSets one (or more) string that appear as prompt for the events associated to the field (seesetEVENT()).voidSets one (or more) string that appear as tooltip when the user positions the cursor over the button of an event associated to the field (seesetEVENT()).voidSets one (or more) icon that is associated to the button of an event associated to the field (seesetEVENT()).voidIndicates if the field is a key field.voidSets a second label right next the first one.voidSets the minimum length of the content.voidSets the name of the component.voidDefines if the value will never wrap to the next line, ie the text continues on the same line until a<br>tag is encounteredvoidsetNUMERIC(String s) Indicates if the field value should be considered as a numeric from the aspect point of view (right alignment and italic font)voidSets if the value returned by the prompt can be an empty string ""voidSets the size of the fieldvoidIndicates if the field is a strong field.protected voidsetStyle(org.apache.ecs.ElementAttributes d) voidSets the maximum displayed length of the content.voidSets forcibly the value of the outputvoidDefines if the value will never wrap to the next line, ie the text continues on the same line until a<br>tag is encounteredMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, 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, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setREGISTRYNAME, setTooltip, setup, 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
-
_minlength
protected int _minlength -
_value
-
_key
protected boolean _key -
_numeric
protected boolean _numeric -
_nowrap
protected boolean _nowrap -
truncate
protected int truncate -
_strong
protected boolean _strong -
_size
-
valueWrap
protected boolean valueWrap -
_event
-
_param
-
_msg
-
_prompt
-
promptEmpty
protected boolean promptEmpty -
_eventtitle
-
_eventicon
-
_eventsnumber
protected int _eventsnumber -
_ff
-
_label2
-
-
Constructor Details
-
Output
public Output()Creates a generic Output used to contains string values
-
-
Method Details
-
setVALUE
Sets forcibly the value of the output- Parameters:
s- The value of the output
-
setKEY
Indicates if the field is a key field.
At each key field is assigned a particular CSS style that makes it more evident inside the form, style based on the specific theme currently used- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setNUMERIC
Indicates if the field value should be considered as a numeric from the aspect point of view (right alignment and italic font)- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setNOWRAP
Defines if the value will never wrap to the next line, ie the text continues on the same line until a<br>tag is encountered- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setVALUEWRAP
Defines if the value will never wrap to the next line, ie the text continues on the same line until a<br>tag is encountered- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setSTRONG
Indicates if the field is a strong field.
At each strong field is assigned a particular CSS style that makes it more evident inside the form, style based on the specific theme currently used- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setTRUNCATE
Sets the maximum displayed length of the content. If the content is longer, it is truncated to the maximum length.- Parameters:
s- The maximum displayed length for the value, expressed in number of characters
-
setMINLENGTH
Sets the minimum length of the content. If the content is shorter, it will be filled with spaces, up to the minimum length.- Parameters:
s- The minimum length for the option. The default value is 10 characters.
-
setSIZE
Sets the size of the field- Parameters:
s- The integer that defines the size (expressed in em) of the field
-
setEVENT
Sets one or more events associated to the output field.
By setting an event, a button will be created inside the field, clicking on which the event will be triggered. Each button will have a default icon.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the name of an event associated to the field
-
setEVENTMSG
Sets one (or more) string that appear as messages for the events associated to the field (seesetEVENT()).
For the association event - message, it counts the position in which the attributes appear. If the messages are fewer than the events, the last message of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the msg attribute of an event associated to the field
-
setEVENTPARAM
Sets one (or more) parameter for the events associated to the field (seesetEVENT()).
For the association event - parameter, it counts the position in which the attributes appear. If the parameters are fewer than the events, the last parameter of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the param attribute of an event associated to the field
-
setEVENTPROMPT
Sets one (or more) string that appear as prompt for the events associated to the field (seesetEVENT()).
For the association event - prompt, it counts the position in which the attributes appear. If the prompts are fewer than the events, the last prompt of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the prompt attribute of an event associated to the field
-
setPROMPTEMPTY
Sets if the value returned by the prompt can be an empty string ""- Parameters:
s-trueif you want to allow to return an empty value by the prompt,falseotherwise.
-
setEVENTTITLE
Sets one (or more) string that appear as tooltip when the user positions the cursor over the button of an event associated to the field (seesetEVENT()).
For the association event - title, it counts the position in which the attributes appear. If the titles are fewer than the events, the last title of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the title attribute of an event associated to the field
-
setICON
Sets one (or more) icon that is associated to the button of an event associated to the field (seesetEVENT()).
For the association event button - icon, it counts the position in which the attributes appear. If the icons are fewer than the events, the last icon of the list is associated with all the remaining events.- Overrides:
setICONin classComponent- Parameters:
icon- AListAttributeof strings (separated by the character | ) each of which represents the path of an icon associated to a button of an event on the field
-
setLABEL2
Sets a second label right next the first one. If labelInLine istruethe separator will be " ", if isfalseit will be a simple " ". Using this method the string will be translated by theTeacher- Parameters:
s- The string that will appear as the second label
-
setNAME
Sets the name of the component. -
prepareValue
-
setStyle
protected void setStyle(org.apache.ecs.ElementAttributes d) -
getHtmlValue
-
getContentHtml
Description copied from interface:ArrangeableReturns the html code that represents the active part of the component, i.e. the field and the validation scripts- Specified by:
getContentHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the component
-
getHtml
Description copied from class:ComponentAbstract method that must be extended and returns the html code of the Component -
getHiddenHtml
Description copied from interface:ArrangeableReturns the hidden but active html part of an hidden component- Specified by:
getHiddenHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the hidden part of the component
-
getGenerationHandle
Description copied from interface:ArrangeableReturns the object to generate when the Arrangeable element is composed by more than one element- Specified by:
getGenerationHandlein interfaceArrangeable- Returns:
- The Object to generate
-
getDescriptionHtml
Description copied from interface:ArrangeableReturns the html code that represents the component description i.e. the formatted label of the field- Specified by:
getDescriptionHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the label of the field
-