Class PanelDataCollectionNodeMatrixHeaders
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.container.Panel
overit.geocallapp.wfm.core.ux.datacollection.node.container.components.matrix.PanelDataCollectionNodeMatrixBase
overit.geocallapp.wfm.core.ux.datacollection.node.container.components.matrix.PanelDataCollectionNodeMatrixHeaders
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
Class for matrix-based data collection panels.
This panel allows users to define and configure matrix column headers including their
descriptions and grouping properties.
The panel supports dynamic addition and removal of columns, with a maximum defined by the parent class. Each column can be configured with a description and marked as a group column.
- Since:
- 21.0
- See Also:
- GCApi:
- controller
-
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 TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected Map<Integer, InputCheckBox> Maps column indices to header input fieldsprotected Function<List<BODataCollectionNodeMatrixColumnHeader>, Boolean> Fields inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.container.components.matrix.PanelDataCollectionNodeMatrixBase
columnHeaders, form, inputsHeaders, MAX_NUM_COLUMNS, numVisibleColumnsFields inherited from class overit.geocall.basic.ui.container.Panel
_align, _appear, _height, _maxHeight, _maxWidth, _minHeight, _minWidth, _modal, _moveable, _obj, _titleClosable, _type, _valign, _visible, _widthFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields 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, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the form registry name for this panel.protected StringGets the input prefix used for column header fields.Gets the function that processes column headers after editing.protected voidControls the visibility of column-related components based on the number of visible columns.protected voidInitializes the panel components.booleanonAddColumn(UIMessage uim) Handles the add column action.booleanonRemoveColumn(UIMessage uim) Handles the remove column action.booleanHandles the save action for matrix column headers.voidsetPostEditHeader(Function<List<BODataCollectionNodeMatrixColumnHeader>, Boolean> postEditHeader) Sets the function that processes column headers after editing.voidshow()Shows the panel and updates column visibility and values.Methods inherited from class overit.geocallapp.wfm.core.ux.datacollection.node.container.components.matrix.PanelDataCollectionNodeMatrixBase
onOpen, setColumnHeaders, setNumVisibleColumnsMethods inherited from class overit.geocall.basic.ui.container.Panel
buildSetupScript, changed, getDefaultChange, getFrameHtml, getHtml, getTitleDiv, hide, isVisible, onClose, onHide, perfectsDim, setALIGN, setHEIGHT, setMAXHEIGHT, setMAXWIDTH, setMINHEIGHT, setMINWIDTH, setMODAL, setMOVEABLE, setTITLECLOSABLE, setTYPE, setup, setVALIGN, setVISIBLE, setWIDTH, show, show, show, show, show, show, show, show, show, show, show, show, show, titlePanelMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, 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, 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, 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
-
INPUT_MATRIX_HEADERS_PREFIX
- See Also:
-
INPUT_MATRIX_COLUMNS_GROUP_PREFIX
- See Also:
-
FORM_REGISTRY_NAME
- See Also:
-
postEditHeader
-
inputsHeadersGroup
Maps column indices to header input fields
-
-
Constructor Details
-
PanelDataCollectionNodeMatrixHeaders
public PanelDataCollectionNodeMatrixHeaders()
-
-
Method Details
-
initComponents
protected void initComponents()Initializes the panel components. Retrieves and maps column group checkboxes from the window registry.- Overrides:
initComponentsin classPanelDataCollectionNodeMatrixBase
-
show
public void show()Shows the panel and updates column visibility and values. Populates the form with existing column header descriptions and group settings.- Overrides:
showin classPanelDataCollectionNodeMatrixBase
-
hideShowColumns
protected void hideShowColumns()Controls the visibility of column-related components based on the number of visible columns. Hides or shows column header inputs and group checkboxes accordingly.- Overrides:
hideShowColumnsin classPanelDataCollectionNodeMatrixBase
-
onSave
Handles the save action for matrix column headers. Creates new column headers based on form values and applies them using the postEditHeader function.- Parameters:
uim- The UI message containing event data- Returns:
- true to break the responsibility chain
-
onRemoveColumn
Handles the remove column action. Decreases the number of visible columns and updates the UI accordingly.- Parameters:
uim- The UI message containing event data- Returns:
- true to break the responsibility chain
-
onAddColumn
Handles the add column action. Increases the number of visible columns and updates the UI accordingly.- Parameters:
uim- The UI message containing event data- Returns:
- true to break the responsibility chain
-
getPostEditHeader
Gets the function that processes column headers after editing.- Returns:
- The post-edit header processing function
-
setPostEditHeader
public void setPostEditHeader(Function<List<BODataCollectionNodeMatrixColumnHeader>, Boolean> postEditHeader) Sets the function that processes column headers after editing.- Parameters:
postEditHeader- The function to process headers after editing
-
getFormRegistryName
Gets the form registry name for this panel.- Specified by:
getFormRegistryNamein classPanelDataCollectionNodeMatrixBase- Returns:
- The form registry name
-
getInputPrefix
Gets the input prefix used for column header fields.- Specified by:
getInputPrefixin classPanelDataCollectionNodeMatrixBase- Returns:
- The input prefix for column headers
-