Package com.microstrategy.web.beans
Interface PromptObject
- 
- All Superinterfaces:
- EnumWebPersistableState,- Persistable,- RequestPersistable,- Transformable,- WebBean,- WebComponent
 - All Known Subinterfaces:
- ConstantPromptBean,- DimtyPromptBean,- ElementPromptBean,- ExpressionPromptBean,- ObjectPromptBean,- PromptBean
 
 public interface PromptObject extends WebBean This interface represents information about a single prompt. It manages its position property and a WebPrompt object.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableStateBARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebDisplayHelpergetDisplayHelper()Returns the cachedWebDisplayHelperobject from the current PromptObject.HighlightedObjectsgetHighlightedObjects()Returns a collection of highlighted objects.java.lang.StringgetOriginalSearchRoot()Returns original search root or empty string.intgetPromptPosition()Returns the position of this PromptObject in the collection of prompt objects in aPromptsBean.PromptsBeangetPromptsBean()Returns thePromptsBeanwhich contains this prompt object.PromptsSourcegetPromptsSource()Returns thePromptsSourceobject from which this prompt object is originated.java.lang.StringgetUserSearchPattern()Returns the user search pattern on a PromptObject.WebBeanErrorgetValidationInfo()Returns the prompt answer validation error information for this particular prompt only.WebPromptgetWebPrompt()Returns the embeddedWebPromptobject.booleanhasAnswerChanged()Returnstrueif the prompt answer has been changed since it is loaded from the Intelligence Server.voidsetAnswerChanged(boolean changed)Sets a boolean value indicating that the prompt answer has been changed for the underlying prompt.voidsetUserSearchPattern(java.lang.String pattern)Sets the user search pattern on a PromptObject.voidsetValidationInfo(WebBeanError wbe)Sets a prompt answer validation error on this prompt object.- 
Methods inherited from interface com.microstrategy.utils.serialization.PersistablerestoreState, restoreState, saveState, saveState, saveState, saveState
 - 
Methods inherited from interface com.microstrategy.web.beans.RequestPersistablerestoreStateFromRequest, restoreStateFromRequest
 - 
Methods inherited from interface com.microstrategy.web.beans.TransformableaddTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
 - 
Methods inherited from interface com.microstrategy.web.beans.WebBeangetDocument, getErrorInfo, getSessionInfo, isStale, setSessionInfo, setStale
 - 
Methods inherited from interface com.microstrategy.web.beans.WebComponentaddChild, addChildStateInfo, addChildStateInfo, collectData, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, getXMLStatus, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
 
- 
 
- 
- 
- 
Method Detail- 
getPromptPositionint getPromptPosition() Returns the position of this PromptObject in the collection of prompt objects in aPromptsBean.- Returns:
- the position of this object in a PromptsBean.
 
 - 
getWebPromptWebPrompt getWebPrompt() Returns the embeddedWebPromptobject.- Returns:
- the WebPromptobject associated with this object.
 
 - 
getPromptsSourcePromptsSource getPromptsSource() Returns thePromptsSourceobject from which this prompt object is originated.- Returns:
- a PromptsSourceobject.
 
 - 
getDisplayHelperWebDisplayHelper getDisplayHelper() throws WebObjectsException Returns the cachedWebDisplayHelperobject from the current PromptObject. If the cached one is null, then return a new one from the underlyingWebPrompt.The cached WebDisplayHelperis typically set by the prompt event handler.- Returns:
- the WebDisplayHelperobject
- Throws:
- WebObjectsException- thrown if the- WebDisplayHelperis unable to retrieved.
 
 - 
getPromptsBeanPromptsBean getPromptsBean() Returns thePromptsBeanwhich contains this prompt object.- Returns:
- the PromptsBean.
 
 - 
getValidationInfoWebBeanError getValidationInfo() Returns the prompt answer validation error information for this particular prompt only.- Returns:
- the prompt answer validation error. null if there is no error.
 
 - 
setValidationInfovoid setValidationInfo(WebBeanError wbe) Sets a prompt answer validation error on this prompt object. Prompt event handler calls this method to pass validation error info to th caller.- Parameters:
- wbe- the prompt answer validation error.
 
 - 
getHighlightedObjectsHighlightedObjects getHighlightedObjects() Returns a collection of highlighted objects.PromptsBeanqueries this collection and then tries to highlight each element in the collection in itscollectDatamethod.- Returns:
- a collection of HighlightedObject.
 
 - 
getUserSearchPatternjava.lang.String getUserSearchPattern() Returns the user search pattern on a PromptObject. A search pattern is what a user types in a search box on a Web browser to perform a search. ExceptWebConstantPrompt, other types ofWebPromptall provide the search ability to search for aWebObjectInfoorWebElement.- Returns:
- the most recent user search pattern
- Since:
- MicroStrategy Web 7.5.0
 
 - 
setUserSearchPatternvoid setUserSearchPattern(java.lang.String pattern) Sets the user search pattern on a PromptObject. A search pattern is what a user types in a search box on a Web browser to perform a search. ExceptWebConstantPrompt, other types ofWebPromptall provide the search ability to search for aWebObjectInfoorWebElement.- Parameters:
- pattern- the new user search pattern a user types in
- Since:
- MicroStrategy Web 7.5.0
 
 - 
getOriginalSearchRootjava.lang.String getOriginalSearchRoot() Returns original search root or empty string.- Returns:
- original search root or empty string.
- Since:
- MicroStrategy Web 7.5.1
 
 - 
hasAnswerChangedboolean hasAnswerChanged() Returnstrueif the prompt answer has been changed since it is loaded from the Intelligence Server. Answering a prompt should reset this flag tofalse.PromptsEventHandleruses this method to decide whether to open a closed prompt.- Returns:
- trueif the prompt answer has been changed since it is loaded from the Intelligence Server.
- Since:
- MicroStrategy Web 7.5.4
 
 - 
setAnswerChangedvoid setAnswerChanged(boolean changed) Sets a boolean value indicating that the prompt answer has been changed for the underlying prompt. After answering a prompt, users should reset this flag tofalse.PromptsEventHandleruses this method to decide whether to open a closed prompt.- Parameters:
- changed-- trueif the prompt answer has been changed for the underlying prompt.
- Since:
- MicroStrategy Web 7.5.4
 
 
- 
 
-