Class DataCollectionNodeAttachmentComponent
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Grid
overit.geocall.basic.ui.control.ArrangingGrid
overit.geocallapp.wfm.core.ux.datacollection.node.DataCollectionNodeTypeComponent<DataCollectionNodeAttachment>
overit.geocallapp.wfm.core.ux.datacollection.node.container.components.resource.DataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
overit.geocallapp.wfm.core.ux.datacollection.node.container.components.attachment.DataCollectionNodeAttachmentComponent
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
@Component
public class DataCollectionNodeAttachmentComponent
extends DataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
Component that represents the data collection node attachment.
- Since:
- 12.0
- 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 DataCollectionOptionGroupOptionsprotected PanelSelectDataCollectionOptionsGroupprotected PanelDataCollectionNodeSelectionOptionprotected DataCollectionNodeAttachmentCategoryprotected TableViewFields inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.container.components.resource.DataCollectionNodeResourceComponent
EXTENSION_CODE_COLUMN, EXTENSION_KEY_COLUMN, inputMultiDecoderValidExtensions, selectionPanelValidExtensionsFields inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.DataCollectionNodeTypeComponent
form, typeFields inherited from class overit.geocall.basic.ui.control.Grid
_align, _border, _cellsize, _childrenMatrix, _closable, _closed, _conf, _event, _fullsize, _mode, _msg, _param, _ref, _roclosed, _spacing, _valign, _visible, layoutCacheFields 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 voidCreates and configures an attachment category from the given selection option.protected booleanAdds a selection option as an attachment category and updates the table view.protected booleanaddSelectionOptionsGroup(Long optionsGroupId) Displays the options group panel for the given options group ID.protected Stringprotected Stringprotected voidprotected DataCollectionNodeAttachmentinitType()booleanonDeleteOption(UIMessage uim) Handles the deletion of the selected attachment category option.booleanonNewOption(UIMessage uim) Handles the creation of a new attachment category option.booleanHandles the selection of an options group for attachment categories.protected voidprotected voidUpdates the table view with the current selected attachment category.protected voidMethods inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.container.components.resource.DataCollectionNodeResourceComponent
createExtensionsDBView, extractSelectedExtensionIds, extractSelectedExtensions, loadFileExtensionsOptionDataMethods inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.DataCollectionNodeTypeComponent
buildLocalizedString, extractLocalizedString, getUpdatedType, onInit, showMethods inherited from class overit.geocall.basic.ui.control.ArrangingGrid
fillBodyRowsMethods inherited from class overit.geocall.basic.ui.control.Grid
addStructureRow, buildDisplayScript, buildSetupScript, createTD, getChildrenMatrix, getClosable, getClosed, getContentHtml, getDescriptionHtml, getEventButton, getFullHeightChilds, getGenerationHandle, getHiddenHtml, getHtml, getPublishedChildrenList, getRef, getROClosed, isVisible, setALIGN, setBORDER, setCLOSABLE, setClosed, setCLOSED, setEVENT, setFULLSIZE, setLAYOUTCACHE, setMODE, setMsg, setMSG, setPARAM, setREF, setRo, setROCLOSED, setSPACING, setup, setVALIGN, setVISIBLEMethods 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, 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, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, 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, makeBadgedIconMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLE
-
Field Details
-
tvDataCollectionNodeCategories
-
selectedCategory
-
panelSelectionOption
-
panelOptionsGroup
-
panelDataCollectionOptionGroupOptions
-
-
Constructor Details
-
DataCollectionNodeAttachmentComponent
public DataCollectionNodeAttachmentComponent()
-
-
Method Details
-
initComponents
protected void initComponents()- Overrides:
initComponentsin classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-
showComponent
protected void showComponent()- Overrides:
showComponentin classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-
updateType
protected void updateType()- Overrides:
updateTypein classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-
onNewOption
Handles the creation of a new attachment category option. Shows a warning if a category is already selected, otherwise displays the selection option panel.- Parameters:
uim- the UI message- Returns:
- true if the operation was handled successfully
-
onDeleteOption
Handles the deletion of the selected attachment category option.- Parameters:
uim- the UI message- Returns:
- true if the operation was handled successfully
-
addSelectionOption
Adds a selection option as an attachment category and updates the table view.- Parameters:
option- the selection option to add- Returns:
- true if the option was added successfully
-
addOption
Creates and configures an attachment category from the given selection option.- Parameters:
option- the selection option to convert to an attachment category
-
onSelectOptionsGroup
Handles the selection of an options group for attachment categories. Shows a warning if a category is already selected, otherwise displays the options group panel.- Parameters:
uim- the UI message- Returns:
- true if the operation was handled successfully
-
addSelectionOptionsGroup
Displays the options group panel for the given options group ID.- Parameters:
optionsGroupId- the ID of the options group to display- Returns:
- true if the panel was displayed successfully
-
updateTableView
protected void updateTableView()Updates the table view with the current selected attachment category. -
initType
- Specified by:
initTypein classDataCollectionNodeTypeComponent<DataCollectionNodeAttachment>
-
getTypeName
- Specified by:
getTypeNamein classDataCollectionNodeTypeComponent<DataCollectionNodeAttachment>
-
getValidExtensionsParam
- Specified by:
getValidExtensionsParamin classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-
getMaxSizeKbParam
- Specified by:
getMaxSizeKbParamin classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-
getAvailableExtensions
- Specified by:
getAvailableExtensionsin classDataCollectionNodeResourceComponent<DataCollectionNodeAttachment>
-