Class DataCollectionNodeMatrixValueComponent
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.sheet.dynamic.DataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>
overit.geocallapp.wfm.core.ux.datacollection.sheet.dynamic.DataCollectionNodeMatrixValueComponent
- 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 DataCollectionNodeMatrixValueComponent
extends DataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>
Component for handling matrix-type data in data collection forms.
This class extends
DataCollectionNodeTypeValueComponent to provide
specialized functionality for displaying and interacting with matrix data.
The component displays data in a tabular format with configurable columns and rows, allowing users to select specific rows.
- Since:
- 20.0
- See Also:
-
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 DataCollectionSheetDetailprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected DBViewprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected ServerTableViewFields inherited from class overit.geocallapp.wfm.core.ux.datacollection.sheet.dynamic.DataCollectionNodeTypeValueComponent
BUTTON_INFO_NAME, form, INDEXED_NAME_SEPARATOR, infoPanel, MANDATORY_TAG, node, nodeId, sheet, 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 voidPropagates node changes to the parent data collection sheet component.voidReturns a list of button event names used by this component.Returns a list of component names that need to be indexed to ensure unique identifiers within the form.protected voidInitializes the UI components required for the matrix display.protected voidInitializes the database view for the matrix table.protected voidLoads the column headers with descriptions.protected voidprotected DBViewloadInputOptions(Long numColumn) protected voidloadRows()Populates the matrix table with row data.booleanHandles the event when matrix selection is cleared.booleanHandles the event when a matrix row is selected.protected voidDisplays the matrix data in the UI.protected voidUpdates the component value.Methods inherited from class overit.geocallapp.wfm.core.ux.datacollection.sheet.dynamic.DataCollectionNodeTypeValueComponent
formatLabel, getComponentByName, getIndexedName, getNode, getNODEID, getPlaceholder, getSheet, getTooltip, getUpdatedType, initLabel, initReadonly, initTooltipAndPlaceholder, isReadOnly, onInit, onShowInfo, setNode, setNODEID, setSheet, show, updateIndexedButtonParams, updateIndexedNames, updateRegistryNameMethods 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
-
TABLE_NODE_MATRIX_NAME
- See Also:
-
SELECT_MATRIX_ROW_EVENT
- See Also:
-
SELECT_MATRIX_NONE_EVENT
- See Also:
-
FILTER_MATRIX_EVENT
- See Also:
-
MATRIX_FILTER_INPUT_LOOKUP_PREFIX
- See Also:
-
MATRIX_FILTER_INPUT_OPTION_PREFIX
- See Also:
-
INPUT_OPTION_CODE
- See Also:
-
INPUT_OPTION_DESCRIPTION
- See Also:
-
MATRIX_COMPONENT_CONTAINER
- See Also:
-
MATRIX_COLOR_COLUMN_NAME
- See Also:
-
TRANSPARENT_COLOR
- See Also:
-
tvDataCollectionNodeMatrix
-
originalCollectionNodeMatrix
-
cDataCollectionSheetDetail
-
dataCollectionNodeMatrixComponentContainer
-
-
Constructor Details
-
DataCollectionNodeMatrixValueComponent
public DataCollectionNodeMatrixValueComponent()
-
-
Method Details
-
getNamesToBeIndexed
Returns a list of component names that need to be indexed to ensure unique identifiers within the form.- Specified by:
getNamesToBeIndexedin classDataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>- Returns:
- List of component names requiring indexing
-
getButtonNames
Returns a list of button event names used by this component.- Specified by:
getButtonNamesin classDataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>- Returns:
- List of button names for event handling
-
initComponents
protected void initComponents()Initializes the UI components required for the matrix display. This method is called during component setup.- Overrides:
initComponentsin classDataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>
-
showValue
protected void showValue()Displays the matrix data in the UI. This method initializes the table view, loads column headers, and populates the rows with data.- Specified by:
showValuein classDataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>
-
initMatrixDBView
protected void initMatrixDBView()Initializes the database view for the matrix table. Creates and configures the table structure with appropriate columns. -
loadHeader
protected void loadHeader()Loads the column headers with descriptions. Sets visibility and labels for each column based on the matrix configuration. -
loadInputFilters
protected void loadInputFilters() -
loadInputOptions
-
loadRows
protected void loadRows()Populates the matrix table with row data. Each row contains cells corresponding to the matrix columns. -
updateValue
protected void updateValue()Updates the component value. This implementation does not require updates as the matrix is read-only.- Specified by:
updateValuein classDataCollectionNodeTypeValueComponent<DataCollectionNodeMatrix>
-
onSelectMatrixRow
Handles the event when a matrix row is selected. Updates the selected row in the data model.- Parameters:
uim- The UI message containing event parameters- Returns:
- true to indicate the event was handled
-
onSelectMatrixNone
Handles the event when matrix selection is cleared. Removes any selected row from the data model.- Parameters:
uim- The UI message containing event parameters- Returns:
- true to indicate the event was handled
-
applyNodeChanges
Propagates node changes to the parent data collection sheet component.- Parameters:
uim- The UI message
-
filterMatrix
public void filterMatrix()
-