Package overit.geocall.basic.ui.control
Class OutputProgress
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Output
overit.geocall.basic.ui.control.OutputProgress
- 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
This component extends
Output and must be used to put in output a progress bar.
It is possible to set the minimum and maximum values of the progress bar for each row
using a float value or a value passed between the output values (see Control.getValues()).- 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 Floatprotected Stringprotected Floatprotected Stringprotected TextFormatFields inherited from class overit.geocall.basic.ui.control.Output
_event, _eventicon, _eventsnumber, _eventtitle, _ff, _key, _label2, _minlength, _msg, _nowrap, _numeric, _param, _prompt, _size, _strong, _value, promptEmpty, truncate, valueWrapFields 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 TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is created.protected FloatcalcMax()protected FloatcalcMin()protected Floatorg.apache.ecs.ElementvoidSets the format to show over the progress bar.voidSets the maximum value of the progress bar with a specific value.voidsetMAXNAME(String s) Sets the maximum value of the progress bar with the value of another output value.voidSets the minimum value of the progress bar with a specific value.voidsetMINNAME(String s) Sets the minimum value of the progress bar with the value of another output value.protected voidsetStyle(org.apache.ecs.ElementAttributes d) protected FloatMethods inherited from class overit.geocall.basic.ui.control.Output
getContentHtml, getDescriptionHtml, getGenerationHandle, getHiddenHtml, getHtml, prepareValue, setEVENT, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setICON, setKEY, setLABEL2, setMINLENGTH, setNAME, setNOWRAP, setNUMERIC, setPROMPTEMPTY, setSIZE, setSTRONG, setTRUNCATE, setVALUE, setVALUEWRAPMethods 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, 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
-
_min
-
_max
-
_maxname
-
_minname
-
_tf
-
-
Constructor Details
-
OutputProgress
public OutputProgress()
-
-
Method Details
-
setMAXNAME
Sets the maximum value of the progress bar with the value of another output value. The output must contain a float value or a convertible value in float.- Parameters:
s- Key of the value (seeControl.getValues()) to use to set the maximum value of the progress bar.
-
setMINNAME
Sets the minimum value of the progress bar with the value of another output value. The output must contain a float value or a convertible value in float.- Parameters:
s- Key of the value (seeControl.getValues()) to use to set the minimum value of the progress bar.
-
setFORMAT
Sets the format to show over the progress bar. To define the format we useTextFormatpassing as the first value the current value of the progress bar, and as the second value the maximum.
Pay attention that the value are interpreted as float, so if you want intercept a specific integer value you must use".0"to the end of the value in the format string.- Parameters:
s- String to set the format. The first value passed is the current value of the progress bar, the second is the maximum. To more information on how to build the format string, seeTextFormat.
-
setMIN
Sets the minimum value of the progress bar with a specific value.- Parameters:
s- Float value to use to set the minimum value of the progress bar.
-
setMAX
Sets the maximum value of the progress bar with a specific value.- Parameters:
s- Float value to use to set the maximum value of the progress bar.
-
toFloat
-
calcValue
-
calcMax
-
calcMin
-
getHtmlValue
- Overrides:
getHtmlValuein classOutput
-
setStyle
protected void setStyle(org.apache.ecs.ElementAttributes d) -
buildSetupScript
Description copied from class:ComponentEvery component can add a script to the StringBuilder, script executed when the component is created.- Overrides:
buildSetupScriptin classComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-