Class DataCollectionNodeMultiAttachmentComponent
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<DataCollectionNodeMultiAttachment>
overit.geocallapp.wfm.core.ux.datacollection.node.container.components.multiattachment.DataCollectionNodeMultiAttachmentComponent
- 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 DataCollectionNodeMultiAttachmentComponent
extends DataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
Component that represents the data collection multi attachment node.
- Since:
- 20.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 static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected DataCollectionOptionGroupOptionsprotected PanelSelectDataCollectionOptionsGroupprotected PanelDataCollectionNodeSelectionOptionprotected DataCollectionNodeAttachmentCategoryprotected TableViewprotected static final StringFields 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 and updates the table view.protected booleanaddSelectionOptionsGroup(Long optionsGroupId) Adds a selection options group by showing the option group options panel.protected voidprotected DataCollectionNodeMultiAttachmentinitType()booleanonDeleteOption(UIMessage uim) Handles the delete option action by clearing the selected category and updating the table view.booleanonNewOption(UIMessage uim) booleanHandles the select options group action by showing the options group selection panel.protected voidprotected voidUpdates the table view with the current selected category.protected voidMethods 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
-
EXTENSION_KEY_COLUMN
- See Also:
-
EXTENSION_CODE_COLUMN
- See Also:
-
MAX_ATTACHMENTS_NUMBER
- See Also:
-
VALID_EXTENSION
- See Also:
-
MAX_SIZE_KB
- See Also:
-
tvDataCollectionNodeCategories
-
selectedCategory
-
panelSelectionOption
-
panelOptionsGroup
-
panelDataCollectionOptionGroupOptions
-
-
Constructor Details
-
DataCollectionNodeMultiAttachmentComponent
public DataCollectionNodeMultiAttachmentComponent()
-
-
Method Details
-
initComponents
protected void initComponents()- Overrides:
initComponentsin classDataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
-
showComponent
protected void showComponent()- Specified by:
showComponentin classDataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
-
updateType
protected void updateType()- Specified by:
updateTypein classDataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
-
onNewOption
-
onDeleteOption
Handles the delete option action by clearing the selected category and updating the table view.- Parameters:
uim- the UI message- Returns:
- true if the operation was successful
-
addSelectionOption
Adds a selection option and updates the table view.- Parameters:
option- the selection option to add- Returns:
- true if the operation was successful
-
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 select options group action by showing the options group selection panel. Displays a warning if a category is already selected.- Parameters:
uim- the UI message- Returns:
- true if the operation was successful
-
addSelectionOptionsGroup
Adds a selection options group by showing the option group options panel.- Parameters:
optionsGroupId- the ID of the options group- Returns:
- true if the operation was successful
-
updateTableView
protected void updateTableView()Updates the table view with the current selected category. Creates a list containing the selected category (if present) and displays it in the table. -
initType
- Specified by:
initTypein classDataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
-
getTypeName
- Specified by:
getTypeNamein classDataCollectionNodeTypeComponent<DataCollectionNodeMultiAttachment>
-