Package overit.geocall.ui
Class UIMessage
java.lang.Object
overit.geocall.ui.UIMessage
Implements the object that is passed to the event handler methods triggered via sendEvent;
contains additional information and values with respect to the classic HashGetter passed to
the event handler, such as the possibility to check if during the event launch a control
key was pressed (ctrl, alt, etc.).
In addition, the UIMessage contains a bubbling track map, a map of additional information
that can be set to allow other interceptors of the same event (for example customizations) to find
them and use them to implement different logics based on the different values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassActs as a wrapper for managing the control values, provides facilities and utilities for checking the pressure of the control keys (alt, ctr, shift, etc.) simultaneously with the sendEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UIMessage.ControlValuesprotected HashGetterprotected HashGetterprotected EventValidatorprotected overit.geocall.servlet.Reference -
Constructor Summary
ConstructorsConstructorDescriptionUIMessage(String strId, String strContainer, Object oParam, HashGetter values, HashGetter daValues) Creates an instance of UIMessageUIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues) Creates an instance of UIMessageUIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues, overit.geocall.servlet.UserAgent ua) Creates an instance of UIMessageUIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues, overit.geocall.servlet.UserAgent ua, overit.geocall.servlet.Reference reference) Creates an instance of UIMessage -
Method Summary
Modifier and TypeMethodDescriptiongetBubblingTrack(String name) Returns the object stored in the bubbling track map that corresponds to the key passed as parameterReturns the id of the container to which it is associated the messageReturns the control parameters passed to the eventReturns the values with dalink set totrueRetrieves theEventValidatorthat accepted this messagegetId()Returns the id of the UIMessage<T> TgetParam()Returns the programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the valuesReturns the bubbling track map, the map of additional information set to the UIMessage, that allow other interceptors of the same event (for example customizations) to find and use them to implement different logics based on the different valuesoverit.geocall.servlet.ReferenceReturn theReferenceinstance containing the information related to the calling URLReturns the values passed to the eventvoidputBubblingTrack(String name, Object obj) Put a key / value couple in the bubbling track map (seegetProcessedParams())voidStores theEventValidatorthat accepted this messagetoString()
-
Field Details
-
_values
-
_daValues
-
_controlValues
-
ev
-
reference
protected overit.geocall.servlet.Reference reference
-
-
Constructor Details
-
UIMessage
public UIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues, overit.geocall.servlet.UserAgent ua, overit.geocall.servlet.Reference reference) Creates an instance of UIMessage- Parameters:
id- The id of the messagecontainer- The id string of the container to which it is associated the messageparam- Programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the valuescontrolValues- TheHashGetterthat contains the control parameters, such as "code", "__refed", "__keys" and in general all those who start with "__"values- TheHashGetterthat contains the valuesdaValues- TheHashGetterthat contains the values with dalink set totrue, those for the databaseua- TheUserAgentreference- theReferenceinstance related to the current http servlet request
-
UIMessage
public UIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues, overit.geocall.servlet.UserAgent ua) Creates an instance of UIMessage- Parameters:
id- The id of the messagecontainer- The id string of the container to which it is associated the messageparam- Programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the valuescontrolValues- TheHashGetterthat contains the control parameters, such as "code", "__refed", "__keys" and in general all those who start with "__"values- TheHashGetterthat contains the valuesdaValues- TheHashGetterthat contains the values with dalink set totrue, those for the databaseua- TheUserAgent
-
UIMessage
public UIMessage(String id, String container, Object param, HashGetter controlValues, HashGetter values, HashGetter daValues) Creates an instance of UIMessage- Parameters:
id- The id of the messagecontainer- The id string of the container to which it is associated the messageparam- Programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the valuescontrolValues- TheHashGetterthat contains the control parameters, such as "code", "__refed", "__keys" and in general all those who start with "__"values- TheHashGetterthat contains the values passed to the eventdaValues- TheHashGetterthat contains the values with dalink set totrue, those for the database
-
UIMessage
public UIMessage(String strId, String strContainer, Object oParam, HashGetter values, HashGetter daValues) Creates an instance of UIMessage- Parameters:
strId- The id of the messagestrContainer- The id string of the container to which it is associated the messageoParam- Programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the valuesvalues- TheHashGetterthat contains the values passed to the eventdaValues- TheHashGetterthat contains the values with dalink set totrue, those for the database
-
-
Method Details
-
getId
Returns the id of the UIMessage- Returns:
- The string that represents the id of the UIMessage
-
getContainer
Returns the id of the container to which it is associated the message- Returns:
- The string that represents the id of the container to which it is associated the message
-
getParam
public <T> T getParam()Returns the programmatically set parameters, those that are defined via XML and on which we have control; they are the set of param (like row, column, prompt, etc.) and of the values- Type Parameters:
T- The type of params- Returns:
- The parameters object, casted in the right way
-
getControlValues
Returns the control parameters passed to the event- Returns:
- The
UIMessage.ControlValues, theHashGetterthat contains the control parameters, such as "code", "__refed", "__keys" and in general all those who start with "__", and a series of utility
-
getValues
Returns the values passed to the event- Returns:
- The
HashGetterthat contains the values
-
getDAValues
Returns the values with dalink set totrue- Returns:
- The
HashGetterthat contains the values with dalink set totrue, those for the database
-
getProcessedParams
Returns the bubbling track map, the map of additional information set to the UIMessage, that allow other interceptors of the same event (for example customizations) to find and use them to implement different logics based on the different values- Returns:
- The Object that contains the additional information
-
setEventValidator
Stores theEventValidatorthat accepted this message- Parameters:
ev- theEventValidatorthat accepted this message
-
getEventValidator
Retrieves theEventValidatorthat accepted this message- Returns:
- the
EventValidatorthat accepted this message
-
putBubblingTrack
Put a key / value couple in the bubbling track map (seegetProcessedParams())- Parameters:
name- The name of the keyobj- The object stored in the map
-
getBubblingTrack
Returns the object stored in the bubbling track map that corresponds to the key passed as parameter- Parameters:
name- The name of the key- Returns:
- The object stored in the map, or
nullif the map isnull
-
getReference
public overit.geocall.servlet.Reference getReference()Return theReferenceinstance containing the information related to the calling URL- Returns:
- instance containing the information related to the calling URL, or
nullit there's none.
-
toString
-