Package overit.geocall.basic.ui.control
Class ColumnSpan
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Column
overit.geocall.basic.ui.control.ColumnSpan
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
This component extends
Column and can be used to insert a column built
from the combination of several columns. The columns to use to build the ColumnSpan
must be inserted as its child nodes. The child columns must be a Column component
or derived components. The child columns are numbered by 0 in the order of insertion
in the xml so that they can be called in the costruction of the ColumnSpan.- 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
FieldsFields inherited from class overit.geocall.basic.ui.control.Column
_align, _bkgColorFirst, _bkgColorName, _blankvisible, _breakChars, _colorIndex, _columnorder, _descorder, _descorderQuery, _draggable, _droppable, _errorvalue, _ffGroup, _ffName, _ffTitle, _footer, _group, _groupname, _groupObject, _heading, _headTitle, _key, _labelspan, _minWidth, _msgErrore, _order, _orderQuery, _rovisible, _rowspan, _stuck, _td, _tdColor, _titleFormat, _tmColorSwitch, _userHidden, _valign, _value, _visible, _width, ALIGN_ATTRIBUTE, configuredAlign, configuredDescOrder, configuredGroup, configuredMinWidth, configuredOrder, configuredRowInLine, configuredStuck, configuredTruncate, configuredValign, configuredWidth, GROUP_ATTRIBUTE, inline, MIN_WIDTH_ATTRIBUTE, ORDER_ASC_VALUE, ORDER_ATTRIBUTE, ORDER_DESC_VALUE, ORDER_EITHER_VALUE, ROW_IN_LINE_ATTRIBUTE, STUCK_ATTRIBUTE, text, truncate, TRUNCATE_ATTRIBUTE, VERTICAL_ALIGN_ATTRIBUTE, WIDTH_ATTRIBUTEFields 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 TypeMethodDescriptionvoidorg.apache.ecs.Elementorg.apache.ecs.ElementgetHtmlRow(EntitySet es, int row, int pagerow, ArrayList al) Returns the html element that defines the rowprotected Stringprotected booleanbooleanChecks if the column is draggable, ie if the user can change the positioning of the column with respect to the others in the table by dragging it.booleanChecks if the column will be present in the menu that appear when the user clicks on the icon in the upper left corner of the table and it can be used to rearrange the visibility and the position of the columns.voidSets the label of the ColumnSpan.voidsetHFORMAT(String s) Sets the label of the ColumnSpan facilitating the insertion of html tags.voidSets the string to show on the hover of the field.voidSets how to build the value of each row.voidSets how to build the value of each row facilitating the insertion of html tags.voidsetupMetaData(DBView dbv) Called to init all the field starting form the DBViewprotected voidsetupTitle(org.apache.ecs.html.TD td, ArrayList al) Methods inherited from class overit.geocall.basic.ui.control.Column
getAlign, getCellContent, getColumnOrder, getConfigurableProperties, getDefaultLayoutLabel, getDescOrder, getDraggable, getDroppable, getGroup, getHeadControls, getHeadControls, getHtml, getHtmlFoot, getLABELSPAN, getLayoutName, getMinWidth, getOrder, getRowInLine, getStuck, getTD, getTD, getTD, getTDColor, getTF, getTruncate, getUserHidden, getVAlign, getVISIBLE, getWidth, grouped, isHiddenByConfiguration, isVisible, newGroup, setALIGN, setBKGCOLORFIRST, setBKGCOLORNAME, setBKGCOLORSWITCH, setBLANKVISIBLE, setBREAKCHARS, setConfiguredProperty, setDEFAULTHIDDEN, setDESCORDER, setDESCORDERQUERY, setDRAGGABLE, setDROPPABLE, setERRORVALUE, setFOOTER, setGROUP, setGROUPNAME, setHEADING, setHEADTITLE, setINLINE, setKEY, setLABELSPAN, setMINWIDTH, setMinWidthAndWidth, setModelProperties, setORDER, setORDERFIELD, setORDERQUERY, setROVISIBLE, setSTUCK, setTEXT, setTITLEFORMAT, setTITLENAME, setTooltipAndStyleOnLabel, setTRUNCATE, setup, setupTDColor, setUserHidden, setVALIGN, setVALUE, setVISIBLE, setWIDTHMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setDBLINK, setENABLED, setFUNCTION, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBASIC, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, 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, makeBadgedIcon
-
Field Details
-
_format
-
_rowformat
-
_innertf
-
-
Constructor Details
-
ColumnSpan
public ColumnSpan()Creates a new instance of ColumnSpan
-
-
Method Details
-
setFORMAT
Sets the label of the ColumnSpan. It's possible to set it with a static label or by combining the labels of the child columns.- Parameters:
s- The string used to set the label of the ColumnSpan. To retrieve the child column labels, you must enter the number corresponding to the column in brace (for example, to retrieve the label of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static label with the labels of the child columns (for example "{0} - {1}"). To get more information seeTextFormat.
-
setROWFORMAT
Sets how to build the value of each row. It's possible to set it with a static label or by combining the values of the child columns.- Parameters:
s- The string used to set the values of the ColumnSpan. To retrieve the child column values, you must enter the number corresponding to the column in brace (for example, to retrieve the value of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static value with the values of the child columns (for example "{0} - {1}"). To get more information seeTextFormat.
-
setHFORMAT
Sets the label of the ColumnSpan facilitating the insertion of html tags. It's possible to set it with a static label or by combining the labels of the child columns.- Parameters:
s- The string used to set the label of the ColumnSpan. To retrieve the child column labels, you must enter the number corresponding to the column in brace (for example, to retrieve the label of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static label with the labels of the child columns (for example "{0} - {1}"). To insert a tag xml you can use the characters "«" and "»" instead of "<" and ">".
To get more information seeTextFormat.
-
setROWHFORMAT
Sets how to build the value of each row facilitating the insertion of html tags. It's possible to set it with a static label or by combining the values of the child columns.- Parameters:
s- The string used to set the values of the ColumnSpan. To retrieve the child column values, you must enter the number corresponding to the column in brace (for example, to retrieve the value of the first child column, you must enter the string: "{0}"). Obviously, it is possible to combine a static value with the values of the child columns (for example "{0} - {1}"). To insert a tag xml you can use the characters "«" and "»" instead of "<" and ">".
To get more information seeTextFormat.
-
isUserHideable
public boolean isUserHideable()Description copied from class:ColumnChecks if the column will be present in the menu that appear when the user clicks on the icon in the upper left corner of the table and it can be used to rearrange the visibility and the position of the columns. The column is user hideable, and so it will appears in the menu, if it has a not null name (seeComponent.getNAME()) and label (seeControl.getLABEL()), if it is visible (seeColumn.isVisible()) and has labelspan attribute set to 'n' (seeColumn.setLABELSPAN(java.lang.String)).- Overrides:
isUserHideablein classColumn- Returns:
trueif the column is user hideable and will appear in the menu,falseotherwise
-
isUserDraggable
public boolean isUserDraggable()Description copied from class:ColumnChecks if the column is draggable, ie if the user can change the positioning of the column with respect to the others in the table by dragging it. The column is draggable if is hideable (seeColumn.isUserHideable()) and has a label (seeControl.getLABEL()) that is not an empty string.- Overrides:
isUserDraggablein classColumn- Returns:
trueif the user can drag the column to change its position,falseotherwise
-
setINNERTITLEFORMAT
Sets the string to show on the hover of the field. It's possible to set it with a static label or by combining the labels of the child columns that have an inner title format likeColumnStaticViewandColumnLookup. To know how to create a format, seeTextFormat.- Parameters:
s- String represent the format to be set.
-
setupMetaData
Description copied from class:ColumnCalled to init all the field starting form the DBView- Overrides:
setupMetaDatain classColumn- Parameters:
dbv- The DBView with all the field used in the init
-
freeResources
public void freeResources()- Overrides:
freeResourcesin classColumn
-
getHeadLabel
- Overrides:
getHeadLabelin classColumn
-
getHtmlRow
Description copied from class:ColumnReturns the html element that defines the row- Overrides:
getHtmlRowin classColumn- Parameters:
es- TheEntitySetto which the element belongsrow- The number of the rowpagerow- The number ofd the pageal- The list of values of the row- Returns:
- The html element that defines the row
-
groupable
protected boolean groupable() -
setupTitle
- Overrides:
setupTitlein classColumn
-
getTitleString
-