Package overit.geocall.basic.ui.control
Class TableMessage
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.TableMessage
- 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
- Direct Known Subclasses:
TableButton
The class extends
This user interface elements allows to throw events and can have a label and an icon.
Since it is positioned at the table level, this button should be used for launching events that have something to do with the table or its rows (for example the adding of a new record).
Control and implements a button that appears in the top right corner of the
TableView, ServerTableView or
CardView. This user interface elements allows to throw events and can have a label and an icon.
Since it is positioned at the table level, this button should be used for launching events that have something to do with the table or its rows (for example the adding of a new record).
- 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 Stringprotected Stringprotected Stringprotected SetPredicateprotected booleanFields 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.ElementReturns the html code of the TableMessagegetMSG()Returns the message (seesetMSG(java.lang.String))getPARAM()Returns the param (seesetPARAM(java.lang.String))booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanChecks the visibility of the TableMessage.voidDefines the name of the anchor that is used to reposition the scrolling of the page following the execution of the event associated with the button.voidSets programmatically the string that appears as a message for the event associated to the TableMessage.voidSets the string that appears as a message for the event associated to the TableMessage.voidSets a parameter that will be passed to the event associated to the TableMessage.voidSets programmatically the string that appears as a prompt message for the event associated to the TableMessage.voidSets the string that appears as a prompt message for the event associated to the TableMessage.voidSets if the value returned by the prompt can be an empty string ""voidsetVISIBLE(String s) Sets the visibility of the TableMessageMethods 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, buildDisplayScript, buildSetupScript, 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, 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, setup, 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
-
_param
-
_visible
-
_msg
-
_prompt
-
promptEmpty
protected boolean promptEmpty -
_anchor
-
-
Constructor Details
-
TableMessage
public TableMessage()
-
-
Method Details
-
setMSG
Sets the string that appears as a message for the event associated to the TableMessage.
If there is a message, when the user clicks the TableMessage 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 TableMessage
-
setPROMPT
Sets the string that appears as a prompt message for the event associated to the TableMessage.
If there is a prompt, when the user clicks the TableMessage 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 TableMessage
-
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 button. 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
-
getMSG
Returns the message (seesetMSG(java.lang.String))- Returns:
- The string that represents the message
-
setVISIBLE
Sets the visibility of the TableMessage- Specified by:
setVISIBLEin interfaceHideable- Parameters:
s-trueif the TableMessage will be visible,falseotherwise, or a name of a function used to determine visibility (seeisVisible())
-
getVISIBLE
Deprecated, for removal: This API element is subject to removal in a future version.UseisVisible()- Specified by:
getVISIBLEin interfaceHideable- Returns:
- Use
Hideable.isVisible()
-
isVisible
public boolean isVisible()Checks the visibility of the TableMessage.
SeeComponent.getBoolean(String s,boolean def) -
setPARAM
Sets a parameter that will be passed to the event associated to the TableMessage.
If there is a param, when the event is triggered it will receive 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 triggered by the TableMessage
-
getPARAM
Returns the param (seesetPARAM(java.lang.String))- Returns:
- The string that represents the param
-
getHtml
Returns the html code of the TableMessage -
setMsg
Sets programmatically the string that appears as a message for the event associated to the TableMessage.
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 TableMessage
-
setPrompt
Sets programmatically the string that appears as a prompt message for the event associated to the TableMessage.
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 TableMessage
-
isVisible()