Package overit.geocall.basic.ui.control
Class TaskMessage
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.TaskMessage
- 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 class implements the component that defines a single application menu (
TaskBar) voice,
that can be inserted in one TaskBox. Often the voices links the applicative pages (ie pressing on the voice the corresponding
Window will be pushed in the WindowManager stack), but it is possible to associate and fire any event to the pressure,
like the window closing, the creation of a report, the starting of a task, etc.- 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 booleanprotected Stringprotected Stringprotected intprotected intprotected Stringprotected SetPredicateFields 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 TypeMethodDescriptionstatic org.apache.ecs.Elementdraw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed) Deprecated, for removal: This API element is subject to removal in a future version.static org.apache.ecs.Elementdraw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex) Deprecated, for removal: This API element is subject to removal in a future version.static org.apache.ecs.Elementdraw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode) static org.apache.ecs.Elementdraw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode, boolean hasActiveModule, String moduleTooltip) Draw anElementwith its drawing logicstatic org.apache.ecs.Elementdraw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode, boolean hasActiveModule, String moduleTooltip, boolean hasSelectedLeafChild) Draw anElementwith its drawing logicReturns the reference to theContainerthat manages the event associated to the TaskMessageReturns the name of the flag used to determine the visibility of the TaskMessageorg.apache.ecs.ElementAbstract method that must be extended and returns the html code of the ComponentbooleanChecks if the TaskMessage will be visible when theWindowthat cotains it is the last one of the stackgetMSG()Returns the message contained in the alert that will appears when the user clicks the TaskMessagegetPARAM()Returns the parameter that will be passed to the event associated to the TaskMessageintReturns the refresh numberintReturns the refresh timeReturns the name of the session key used to determine the visibility of the TaskMessagebooleanDeprecated.UseisVisible()insteadbooleanChecks if the TaskMessage is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true),setFLAGVISIBLE(java.lang.String),setLASTSHOW(java.lang.String), andsetSESSIONVISIBLE(java.lang.String))voidSets the reference to theContainerthat will manage the event associated to the TaskMessagevoidSets the name of a flag used to determine the visibility of the TaskMessage.voidSets the visibility of the TaskMessage when theWindowthat contains it is the last one of the stackvoidSets programmatically the string that appears as a message for the event associated to the TaskMessage.voidSets the string that appears as a message for the event associated to the TaskMessage.voidSets a parameter that will be passed to the event associated to the TaskMessage.voidSets a refresh number.voidSets a refresh time.voidSets the name of a key used to determine the visibility of the TaskMessage.voidsetVISIBLE(String s) Defines if the TaskMessage should be visible or notMethods 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
-
_destination
-
_param
-
_sessionvisible
-
_visible
-
_flagvisible
-
_lastshow
protected boolean _lastshow -
_refreshTime
protected int _refreshTime -
_refreshNumber
protected int _refreshNumber -
_msg
-
-
Constructor Details
-
TaskMessage
public TaskMessage()
-
-
Method Details
-
setLASTSHOW
Sets the visibility of the TaskMessage when theWindowthat contains it is the last one of the stack- Parameters:
s-trueif the TaskMessage will be visible when the window that contains it is the last one of the stack,falseotherwise
-
getLASTSHOW
public boolean getLASTSHOW()Checks if the TaskMessage will be visible when theWindowthat cotains it is the last one of the stack- Returns:
trueif the TaskMessage is visible when the window that contains it is the last one of the stack,falseotherwise
-
setFLAGVISIBLE
Sets the name of a flag used to determine the visibility of the TaskMessage. If theWindowManagerof theWindowthat contains the TaskMessage has a flag (WindowManager.getFlag(java.lang.String)) that corresponds to the one passed as parameter to this function, the TaskMessage will be visible, otherwise it will not- Parameters:
s- The name of the flag
-
getFLAGVISIBLE
Returns the name of the flag used to determine the visibility of the TaskMessage- Returns:
- The name of the flag
-
setMSG
Sets the string that appears as a message for the event associated to the TaskMessage.
If there is a message, when the user clicks the voice 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 TaskMessage
-
getMSG
Returns the message contained in the alert that will appears when the user clicks the TaskMessage- Returns:
- The string that represents the message
-
setSESSIONVISIBLE
Sets the name of a key used to determine the visibility of the TaskMessage. If theWebSessioncontains a key (WebSession.containsKey(java.lang.String)) that corresponds to the one passed as parameter to this function, the TaskMessage will be visible, otherwise it will not- Parameters:
s- The name of the key
-
getSESSIONVISIBLE
Returns the name of the session key used to determine the visibility of the TaskMessage- Returns:
- The name of the key
-
setVISIBLE
Defines if the TaskMessage should be visible or not- Specified by:
setVISIBLEin interfaceHideable- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0") or a function.
If the string is not recognized as a boolean value, it is considered as a user function with this meaning: if the user currently logged in the application has the function, the TaskMessage will be rendered, otherwise it will not
-
getVISIBLE
Deprecated.UseisVisible()instead- Specified by:
getVISIBLEin interfaceHideable- Returns:
- Use
isVisible()instead
-
isVisible
public boolean isVisible()Checks if the TaskMessage is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true),setFLAGVISIBLE(java.lang.String),setLASTSHOW(java.lang.String), andsetSESSIONVISIBLE(java.lang.String)) -
setDESTINATION
Sets the reference to theContainerthat will manage the event associated to the TaskMessage- Parameters:
s- The registryname of the container that will manage the event
-
getDESTINATION
Returns the reference to theContainerthat manages the event associated to the TaskMessage- Returns:
- The registryname of the container that manages the event
-
setPARAM
Sets a parameter that will be passed to the event associated to the TaskMessage.
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 TaskMessage
-
getPARAM
Returns the parameter that will be passed to the event associated to the TaskMessage- Returns:
- The string that represents the parameter
-
setREFRESHTIME
Sets a refresh time. By setting this attribute it will appear a little progress bar under the label of the TaskMessage, that graphically highlights the passage of time. Once the time has elapsed, the event associated to the TaskMessage will be triggered- Parameters:
s- The refresh time, expressed in seconds. The default value is 0 (that means no refresh)
-
setREFRESHNUMBER
Sets a refresh number. Defines the number of automatic executions of the event associated to the TaskMessage.- Parameters:
s- The refresh number, the default value is 10
-
getRefreshTime
public int getRefreshTime()Returns the refresh time- Returns:
- The integer that represents the refresh time, expressed in seconds. The default value is 0, that means no refresh.
-
getRefreshNumber
public int getRefreshNumber()Returns the refresh number- Returns:
- The integer that represents the refresh number. The default value is 10
-
getHtml
Description copied from class:ComponentAbstract method that must be extended and returns the html code of the Component -
draw
@Deprecated(since="11.0", forRemoval=true) public static org.apache.ecs.Element draw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
es- TheEntitySetwnd- theWindowro- Defines if the element is in read only stateenabled- Defines if the element is enableddestination- The registryname of the container that will manage the eventname- The name of the elementparam- A string that represents the parameter passed to the event triggered elementicon- TheIconthat will appear on the left of the menu voiceshortcut- The shortcut key for the labelkeylabel- The labelselected- Defines if the element is currently selectedmsg- A string that represents the message contained in the alert that will appears when the user clicks the elementrefreshTime- The refresh (automatic execution) timerefreshNumber- The maximum refresh (automatic execution) numberrefreshed- The number of refreshes (automatic executions) executed- Returns:
- the
Elementwith its drawing logic
-
draw
@Deprecated(since="11.0", forRemoval=true) public static org.apache.ecs.Element draw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex) Deprecated, for removal: This API element is subject to removal in a future version.Draw anElementwith its drawing logic- Parameters:
es- TheEntitySetwnd- theWindowro- Defines if the element is in read only stateenabled- Defines if the element is enableddestination- The registryname of the container that will manage the eventname- The name of the elementparam- A string that represents the parameter passed to the event triggered elementicon- TheIconthat will appear on the left of the menu voiceshortcut- The shortcut key for the labelkeylabel- The labelselected- Defines if the element is currently selectedmsg- A string that represents the message contained in the alert that will appears when the user clicks the elementrefreshTime- The refresh (automatic execution) timerefreshNumber- The maximum refresh (automatic execution) numberrefreshed- The number of refreshes (automatic executions) executedaccessibleMode- Define if the application's mode is the accessible one or nottabindex- Define the tab index- Returns:
- the
Elementwith its drawing logic
-
draw
@Deprecated(since="11.0.2") public static org.apache.ecs.Element draw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode) Deprecated.Draw anElementwith its drawing logic- Parameters:
es- TheEntitySetwnd- theWindowro- Defines if the element is in read only stateenabled- Defines if the element is enableddestination- The registryname of the container that will manage the eventname- The name of the elementparam- A string that represents the parameter passed to the event triggered elementicon- TheIconthat will appear on the left of the menu voiceshortcut- The shortcut key for the labelkeylabel- The labelselected- Defines if the element is currently selectedmsg- A string that represents the message contained in the alert that will appears when the user clicks the elementrefreshTime- The refresh (automatic execution) timerefreshNumber- The maximum refresh (automatic execution) numberrefreshed- The number of refreshes (automatic executions) executedaccessibleMode- Define if the application's mode is the accessible one or nottabindex- Define the tab indextooltip- Tooltip to add on the element.isParentNode- Define wheter the node is a parent or not. If the node is a parent ones it must present an arrow on the right.- Returns:
- the
Elementwith its drawing logic
-
draw
public static org.apache.ecs.Element draw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode, boolean hasActiveModule, String moduleTooltip) Draw anElementwith its drawing logic- Parameters:
es- TheEntitySetwnd- theWindowro- Defines if the element is in read only stateenabled- Defines if the element is enableddestination- The registryname of the container that will manage the eventname- The name of the elementparam- A string that represents the parameter passed to the event triggered elementicon- TheIconthat will appear on the left of the menu voiceshortcut- The shortcut key for the labelkeylabel- The labelselected- Defines if the element is currently selectedmsg- A string that represents the message contained in the alert that will appears when the user clicks the elementrefreshTime- The refresh (automatic execution) timerefreshNumber- The maximum refresh (automatic execution) numberrefreshed- The number of refreshes (automatic executions) executedaccessibleMode- Define if the application's mode is the accessible one or nottabindex- Define the tab indextooltip- Tooltip to add on the element.isParentNode- Define wheter the node is a parent or not. If the node is a parent ones it must present an arrow on the right.hasActiveModule- Define wheter the node has a licensed module or not.moduleTooltip- Define the tooltip to visualize.- Returns:
- the
Elementwith its drawing logic
-
draw
public static org.apache.ecs.Element draw(EntitySet es, Window wnd, boolean ro, boolean enabled, String destination, String name, String param, Icon icon, String shortcut, String keylabel, boolean selected, String msg, int refreshTime, int refreshNumber, int refreshed, boolean accessibleMode, int tabindex, String tooltip, boolean isParentNode, boolean hasActiveModule, String moduleTooltip, boolean hasSelectedLeafChild) Draw anElementwith its drawing logic- Parameters:
es- TheEntitySetwnd- theWindowro- Defines if the element is in read only stateenabled- Defines if the element is enableddestination- The registryname of the container that will manage the eventname- The name of the elementparam- A string that represents the parameter passed to the event triggered elementicon- TheIconthat will appear on the left of the menu voiceshortcut- The shortcut key for the labelkeylabel- The labelselected- Defines if the element is currently selectedmsg- A string that represents the message contained in the alert that will appears when the user clicks the elementrefreshTime- The refresh (automatic execution) timerefreshNumber- The maximum refresh (automatic execution) numberrefreshed- The number of refreshes (automatic executions) executedaccessibleMode- Define if the application's mode is the accessible one or nottabindex- Define the tab indextooltip- Tooltip to add on the element.isParentNode- Define wheter the node is a parent or not. If the node is a parent ones it must present an arrow on the right.hasActiveModule- Define wheter the node has a licensed module or not.moduleTooltip- Define the tooltip to visualize.hasSelectedLeafChild- Define whether this parent node has a selected leaf child (in menuDrillLeaf mode).- Returns:
- the
Elementwith its drawing logic
-
setMsg
Sets programmatically the string that appears as a message for the event associated to the TaskMessage.
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 TaskMessage
-
draw(overit.geocall.ui.EntitySet, overit.geocall.basic.ui.Window, boolean, boolean, java.lang.String, java.lang.String, java.lang.String, overit.geocall.ecs.Icon, java.lang.String, java.lang.String, boolean, java.lang.String, int, int, int, boolean, int)instead.