Package overit.geocall.basic.ui.control
Class RowMessage
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.RowMessage
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
This class implements a component that must be inserted as a child of a
TableView.
Each RowMessage will create a specific menu item, menu that will appear when the user right-clicks on a row of the table.
An event is associated with each RowMessage, triggered when the user clicks on the specific menu line. The menu created
by this object, is static (cannot be changed depending on the row and its content) and is managed on client side; for these
reasons it is in fact deprecated and we would like to use the Menu- 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 booleanprotected 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.ElementAbstract method that must be extended and returns the html code of the ComponentgetMSG()Returns the string that appears as a message for the event associated to the RowMessagebooleanChecks the visibility of the RowMessagevoidDefines the name of the anchor that is used to reposition the scrolling of the page following the execution of the event associated with the RowMessage.voidSets programmatically the string that appears as a message for the event associated to the RowMessage.voidSets the string that appears as a message for the event associated to the RowMessage.voidSets a parameter that will be passed to the event associated to the RowMessage.voidSets programmatically the string that appears as a prompt message for the event associated to the RowMessage.voidSets the string that appears as a prompt message for the event associated to the RowMessage.voidSets if the value returned by the prompt can be an empty string ""voidsetVISIBLE(String s) Sets the visibility of the RowMessageMethods 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
-
_msg
-
_prompt
-
promptEmpty
protected boolean promptEmpty -
_param
-
_anchor
-
_visible
protected boolean _visible
-
-
Constructor Details
-
RowMessage
public RowMessage()
-
-
Method Details
-
setMSG
Sets the string that appears as a message for the event associated to the RowMessage.
If there is a message, when the user clicks the RowMessage 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 RowMessage
-
setPARAM
Sets a parameter that will be passed to the event associated to the RowMessage.
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 RowMessage
-
setPROMPT
Sets the string that appears as a prompt message for the event associated to the RowMessage.
If there is a prompt, when the user clicks the RowMessage 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 RowMessage
-
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 RowMessage. 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 string that appears as a message for the event associated to the RowMessage- Returns:
- The string used as a message for the event
-
setVISIBLE
Sets the visibility of the RowMessage- Parameters:
s-trueif the RowMessage will be visible,falseotherwise
-
getVISIBLE
public boolean getVISIBLE()Checks the visibility of the RowMessage- Returns:
trueif the RowMessage will be visible,falseotherwise
-
getHtml
Description copied from class:ComponentAbstract method that must be extended and returns the html code of the Component -
setMsg
Sets programmatically the string that appears as a message for the event associated to the RowMessage.
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 RowMessage
-
setPrompt
Sets programmatically the string that appears as a prompt message for the event associated to the RowMessage.
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 RowMessage
-