Package overit.geocall.basic.ui.control
Class ColumnBoolean
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.ColumnBoolean
- 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 must be used to represent the boolean values of the cells- 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 Stringprotected Anyprotected booleanprotected intprotected Stringprotected Iconprotected Stringprotected Stringprotected static Stringprotected Stringprotected Stringprotected Iconprotected Stringprotected booleanprotected intprotected StringFields 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 TypeMethodDescriptionorg.apache.ecs.ElementgetHtmlRow(EntitySet es, int row, int pagerow, ArrayList al) Returns the html element that defines the rowprotected org.apache.ecs.html.DivgetLabelDiv(ArrayList al) org.apache.ecs.html.TDReturns the TD cell elementvoidDefines the name of the anchor that is used to reposition the scrolling of the page following the execution of the event associated with the Column.voidSets the name of an event associated to the column.voidSets theIconHDthat will be used for thefalsevalues.voidSets the string that appears as a tooltip when the user positions the cursor over a cell of the column with boolean valuefalse.voidSets the string that appears as a tooltip when the user positions the cursor over a cell of the column with boolean valuefalse.voidsetModelProperties(@NotNull DataAttribute dataAttribute) Sets the model properties based on the providedDataAttribute.voidSets programmatically the string that appears as a message for the event associated to the column.voidSets the string that appears as a message for the event associated to the column.voidSets theIconHDthat will be used for thenullvalues.
This icon will be shown only if this column is set to works with 3 states. seesetSTATES(String)
To set the icon that appears on the cells with the valuetrue, you must useComponent.setICON(java.lang.String)voidSets the string that appears as a tooltip when the user positions the cursor over a cell of the column with valuenull.voidSets a parameter that will be passed to the event associated to the column.voidSets programmatically the string that appears as a prompt message for the event associated to the column.voidSets the string that appears as a prompt message for the event associated to the column.voidSets if the value returned by the prompt can be an empty string ""voidSets the number of possible values for the ColumnBooleanvoidSets the name of another of the columns of theDBViewassociated with the table that contains the column, whose values will be used as a label positioned inside the cell next to the icon in the corresponding rowvoidsetupMetaData(DBView dbv) Called to init all the field starting form the DBViewvoidSets forcibly the valueMethods inherited from class overit.geocall.basic.ui.control.Column
freeResources, getAlign, getCellContent, getColumnOrder, getConfigurableProperties, getDescOrder, getDraggable, getDroppable, getGroup, getHeadControls, getHeadControls, getHeadLabel, getHtml, getHtmlFoot, getLABELSPAN, getLayoutName, getMinWidth, getOrder, getRowInLine, getStuck, getTD, getTD, getTDColor, getTF, getTruncate, getUserHidden, getVAlign, getVISIBLE, getWidth, groupable, grouped, isHiddenByConfiguration, isUserDraggable, isUserHideable, 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, setORDER, setORDERFIELD, setORDERQUERY, setROVISIBLE, setSTUCK, setTEXT, setTITLEFORMAT, setTITLENAME, setTooltipAndStyleOnLabel, setTRUNCATE, setup, setupTDColor, setupTitle, setUserHidden, setVALIGN, 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
-
_bvalue
protected boolean _bvalue -
_falseIcon
-
nullIcon
-
states
protected int states -
_falseTitle
-
nullTitle
-
_event
-
_anchor
-
_prompt
-
promptEmpty
protected boolean promptEmpty -
_msg
-
_param
-
textName
-
_colIdx
protected int _colIdx -
_any
-
_nospin
-
-
Constructor Details
-
ColumnBoolean
public ColumnBoolean()Creates a ColumnBoolean
-
-
Method Details
-
setFALSETITLE
Sets the string that appears as a tooltip when the user positions the cursor over a cell of the column with boolean valuefalse. To set the string that appears on the cells with the valuetrue, you must useControl.setTITLE(java.lang.String)
Using this method the string will be translated, if needed, by theTeacher- Parameters:
s- The string that appears as a tooltip when the value of the cell isfalse
-
setNULLTITLE
Sets the string that appears as a tooltip when the user positions the cursor over a cell of the column with valuenull. To set the string that appears on the cells with the valuetrue, you must useControl.setTITLE(java.lang.String)and for the valuefalseyou must usesetFALSETITLE(java.lang.String)
Using this method the string will be translated, if needed, by theTeacher- Parameters:
s- The string that appears as a tooltip when the value of the cell isfalse
-
setVALUE
Sets forcibly the value -
setFALSEICON
Sets theIconHDthat will be used for thefalsevalues. To set the icon that appears on the cells with the valuetrue, you must useComponent.setICON(java.lang.String)- Parameters:
s- The path, or name, of the icon
-
setNULLICON
Sets theIconHDthat will be used for thenullvalues.
This icon will be shown only if this column is set to works with 3 states. seesetSTATES(String)
To set the icon that appears on the cells with the valuetrue, you must useComponent.setICON(java.lang.String)- Parameters:
s- The path, or name, of the icon
-
setSTATES
Sets the number of possible values for the ColumnBoolean- Parameters:
s- The number that indicates the possible values that the field can take.
Possible values are:
3: the field's value can betrue,falseornull. If component has 3 states the null values will be displayed with the nullIcon, seesetNULLICON(String)
2 (default): the field's value can betrueorfalse. With 3 states the null values will be displayed with the falseIcon, seesetFALSEICON(String).
-
setEVENT
Sets the name of an event associated to the column. By setting an event, the user can click the icon present inside the cell triggering an event that will be sent to the server. An example of use is to exploit the event to invert the value of the cell and then implement the toggle functionalityTableView.onToggle(UIMessage))- Parameters:
s- The name of the event
-
setMSG
Sets the string that appears as a message for the event associated to the column.
If there is a message, when the user clicks the cell's icon a javascript alert will appear, containing the message and two buttons; by pressing one of the two the event will be triggered, while pressing the other will not. Therefore usually this alert is used to request confirmation of proceeding to the user.
Using this method the message will be translated by theTeacher.- Parameters:
s- A string that represents the message contained in the alert that will appears when the user clicks the cell's icon
-
setPARAM
Sets a parameter that will be passed to the event associated to the column.
If there is a param, when the event is triggered it will receives in theHashGetteran entry with key: "param", and value: the string set with this method. The parameter can therefore be managed by the event.- Parameters:
s- A string that represents the parameter passed to the event associated to the column
-
setPROMPT
Sets the string that appears as a prompt message for the event associated to the column.
If there is a prompt, when the user clicks the cell's icon a javascript alert will appear, containing a message (that is the prompt string set with this method), an input field that the user can edit, and two buttons; by pressing one of the two, the event will be triggered, while pressing the other will not. If the event is triggered, it will receives in theHashGetteran entry with key: "prompt", and value: the string that the user has inserted into the input field of the alert. Therefore usually this alert is used to request confirmation of proceeding to the user, that can also insert a parameter, that will be managed by the event.
Using this method the prompt message will be translated by theTeacher.- Parameters:
s- A string that represents the message contained in the alert that will appears when the user clicks the cell's icon
-
setPROMPTEMPTY
Sets if the value returned by the prompt can be an empty string ""- Parameters:
s-trueif you want to allow to return an empty value by the prompt,falseotherwise.
-
setANCHOR
Defines the name of the anchor that is used to reposition the scrolling of the page following the execution of the event associated with the Column. The name must correspond to the value of a reference attribute of aGridor aSection, set using the appropriate set methods (Grid.setREF(java.lang.String),Section.setREF(java.lang.String)).
The relocation mechanism works only with non-Ajax events, the ones that reload the page.- Parameters:
s- The name of the anchor
-
setTEXTNAME
Sets the name of another of the columns of theDBViewassociated with the table that contains the column, whose values will be used as a label positioned inside the cell next to the icon in the corresponding row- Parameters:
s- The name of a column whose values will be used as labels
-
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
-
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
-
getTD
public org.apache.ecs.html.TD getTD(EntitySet es, int row, ArrayList al, boolean roll, boolean selected) Description copied from class:ColumnReturns the TD cell element- Overrides:
getTDin classColumn- Parameters:
es- TheEntitySetto which the element belongsrow- The number of the rowal- The list of values of the rowroll-trueif the mouse cursor is positioned over the cell,falseotherwiseselected-trueif the row is currently selected,falseotherwise- Returns:
- The TD cell element
-
setMsg
Sets programmatically the string that appears as a message for the event associated to the column.
Using this method the message will not be translated by theTeacher.
SeesetMSG(java.lang.String)for the meaning of the attribute.- Parameters:
s- A string that represents the message contained in the alert that will appears when the user clicks the cell's icon
-
setPrompt
Sets programmatically the string that appears as a prompt message for the event associated to the column.
Using this method the message will not be translated by theTeacher.
See(java.lang.String)for the meaning of the attribute.- Parameters:
s- A string that represents the prompt message contained in the alert that will appears when the user clicks the cell's icon
-
setFalseTitle
Sets the string that appears as a tooltip when the user positions the cursor over a cell of the column with boolean valuefalse. To set the string that appears on the cells with the valuetrue, you must useControl.setTitle(java.lang.String)
Using this method the string will not be translated.- Parameters:
s- The string that appears as a tooltip when the value of the cell isfalse
-
getLabelDiv
-
setModelProperties
Description copied from interface:overit.geocall.ux.edm.ModelConfigurableSets the model properties based on the providedDataAttribute.- Specified by:
setModelPropertiesin interfaceoverit.geocall.ux.edm.ModelConfigurable- Overrides:
setModelPropertiesin classColumn- Parameters:
dataAttribute- a non-nullDataAttributeused to set model properties
-
getDefaultLayoutLabel
- Overrides:
getDefaultLayoutLabelin classColumn
-