Package com.microstrategy.web.app.beans
Class RWGraphDropZonesEditorEventHandlerImpl
- java.lang.Object
-
- com.microstrategy.web.beans.GenericEventHandler
-
- com.microstrategy.web.beans.SysEventHandler
-
- com.microstrategy.web.app.beans.RWGraphDropZonesEditorEventHandlerImpl
-
- All Implemented Interfaces:
EnumAppComponentEvents,EnumRWGraphDropZoneEditorEvents,WebEventHandler,WebEventTags,java.lang.Cloneable
public class RWGraphDropZonesEditorEventHandlerImpl extends SysEventHandler implements EnumRWGraphDropZoneEditorEvents
- Since:
- MicroStrategy Web 9.0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.beans.GenericEventHandler
GenericEventHandler.GenericEventKeys
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.beans.SysEventHandler
DEFAULT_CONFIG_PATH
-
Fields inherited from class com.microstrategy.web.beans.GenericEventHandler
_extraEvents, layerOfHandleRequest, MULTIPLE_EVENT_SOURCE_SUFFIX, NO_EVENT_ID
-
Fields inherited from interface com.microstrategy.web.app.beans.EnumAppComponentEvents
WebEventArgumentLeftPosition, WebEventArgumentTopPosition, WebEventSetTopLeftPosition
-
Fields inherited from interface com.microstrategy.web.app.beans.EnumRWGraphDropZoneEditorEvents
WebEventArgumentZoomFactor, WebEventSetZoomFactor
-
Fields inherited from interface com.microstrategy.web.beans.WebEventTags
ATT_ARGUMENT_ENUMERATOR, ATT_ARGUMENT_ID, ATT_ARGUMENT_INDEX, ATT_ARGUMENT_NAME, ATT_ARGUMENT_REQUIRED, ATT_ARGUMENT_TYPE, ATT_ARGUMENT_VALIDATOR, ATT_ARGUMENT_VALUE, ATT_EVENT_DEPRECATED, ATT_EVENT_ENUMERATOR, ATT_EVENT_HANDLER_ENUMERATOR, ATT_EVENT_HANDLER_NAME, ATT_EVENT_HANDLER_TYPE, ATT_EVENT_ID, ATT_EVENT_NAME, ATT_EVENT_TARGET, TAG_ARGUMENT, TAG_ARGUMENTS, TAG_EVENT, TAG_EVENT_HANDLER, TAG_EVENT_HANDLERS, TAG_EVENTS
-
-
Constructor Summary
Constructors Constructor Description RWGraphDropZonesEditorEventHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AppComponentgetAppComponent()protected java.lang.StringgetArgumentValue(WebEvent event, int argID)Utility method to obtain the value of a given event argumentprotected intgetCurrentEventID()protected WebComponentgetGraphDropZones()java.lang.ClassgetSupportedWebComponentType()Returns theWebComponentclass by default.protected booleanhandleSetTopLeftPosition(RequestKeys keys)Utility method for processing a location change request, by manipulating the top and left properties of the instancebooleanprocessRequest(RequestKeys keys)handle request as specified by the RequestKeysvoidsetWebComponent(WebComponent component)Set the corresponding web component for this event handler-
Methods inherited from class com.microstrategy.web.beans.SysEventHandler
getCatalog, getWebEvent, getWebEvents, initEvents, initEvents, newDefaultEventInstance, newWebEvent
-
Methods inherited from class com.microstrategy.web.beans.GenericEventHandler
addEvent, addEvent, addEvents, addEventsFromRequestKeys, addEventsFromXML, appendRemainingEvent, clone, delegateRequest, getEventID, getEventTarget, getHandlerType, getName, getNextSourceName, getNextSourceName, getOrderedEvents, getPendingEvents, getWebComponent, getWebEvent, getWebEvent, getWebEventsFromRequest, handleRequest, isInitialized, isMyEvent, markInitailized, processExtraEvents, processMultipleEvents, processMultipleEvents, setHandlerType, setName, validateRequiredArgument
-
-
-
-
Method Detail
-
getSupportedWebComponentType
public java.lang.Class getSupportedWebComponentType()
Description copied from class:GenericEventHandlerReturns theWebComponentclass by default. Subclasses should override this to return their respectiveWebComponentorWebBeanint.- Specified by:
getSupportedWebComponentTypein interfaceWebEventHandler- Overrides:
getSupportedWebComponentTypein classGenericEventHandler- Returns:
- the
Classof theWebComponentthis event handler is associated with.
-
setWebComponent
public void setWebComponent(WebComponent component)
Set the corresponding web component for this event handler- Specified by:
setWebComponentin interfaceWebEventHandler- Parameters:
component- the input web component
-
getGraphDropZones
protected WebComponent getGraphDropZones()
- Returns:
WebComponentribbon instance attached to this event handler
-
processRequest
public boolean processRequest(RequestKeys keys) throws WebException
handle request as specified by the RequestKeys- Specified by:
processRequestin interfaceWebEventHandler- Parameters:
keys- input request- Returns:
- true means some event is handled, false means nothing is handled
- Throws:
WebException- if an exception is found.
-
getAppComponent
protected AppComponent getAppComponent()
- Returns:
AppComponentinstance associated to this event handler
-
getCurrentEventID
protected int getCurrentEventID()
- Returns:
- integer value corresponding to the event currently being handled
-
getArgumentValue
protected java.lang.String getArgumentValue(WebEvent event, int argID)
Utility method to obtain the value of a given event argument- Parameters:
event-WebEventto analyzeargID- integer identifier of the argument to search for- Returns:
- String instance with the value of the requested event argument
- Since:
- MicroStrategy Web 8.0.1
-
handleSetTopLeftPosition
protected boolean handleSetTopLeftPosition(RequestKeys keys)
Utility method for processing a location change request, by manipulating the top and left properties of the instance- Parameters:
keys-RequestKeysfrom where the event, top and left information will be retrieved- Returns:
- boolean value indicating whether the request was processed successfully
-
-