Package com.microstrategy.web.app.beans
Class ElementPickerBeanImpl
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.beans.AbstractTransformable
-
- com.microstrategy.web.beans.AbstractWebComponent
-
- com.microstrategy.web.app.beans.AbstractAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
-
- com.microstrategy.web.app.beans.ElementPickerBeanImpl
-
- All Implemented Interfaces:
EnumWebPersistableState
,Persistable
,AppComponent
,ElementPickerBean
,RequestPersistable
,Transformable
,WebComponent
public class ElementPickerBeanImpl extends AbstractPersistableAppComponent implements ElementPickerBean
This class represents the Element Picker used in the Attribute Qualification Prompt- Since:
- MicroStrategy Web 8.0.1
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened
-
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext
-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Constructor Summary
Constructors Constructor Description ElementPickerBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doCollectData()
Call the required methods so the data is collected for this instanceprotected void
doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Proceses the save/restore state opperation of the AppComponentWebDisplayUnits
getAvailableElements()
Return the collection of available elements.int
getElementBlockBegin()
Returns the block begin for the elements - used by Incremental fetchint
getElementBlockCount()
Returns the block count for the elements - used by Incremental fetchint
getElementChildCount()
Returns the child count for the elements - used by Incremental fetchint
getPromptPosition()
Get the prompt position index in the report.PromptsBean
getPromptsBean()
Returns the prompts bean associated with this element pickerWebAttributeForm
getQualificationAttributeForm()
Returns the form to be used for qualification.java.lang.String
getSelectedAttributeId()
Returns the selected attribute on the bean.java.lang.String
getSelectedOperator()
Returns the selected Operator on the bean.java.lang.String
getSelectedText()
Returns the selected text.boolean
isMultiSelectAvailable()
Returns whether the selected operator support multiple selectionvoid
setPromptPosition(int position)
Set the prompt position index in the report.void
setSelectedAttributeId(java.lang.String id)
Set the selected attribute on the bean.void
setSelectedOperator(java.lang.String operatorId)
Set the selected Operator on the bean.void
setSelectedText(java.lang.String text)
Set the selected text on the bean.-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, collectData, collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectMinimalData, generateOutput, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeaturesManager, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, getXMLStatus, hasChanged, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, isOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, newDefaultEventHandler, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, 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.WebComponent
addChild, 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
-
doCollectData
public void doCollectData()
Description copied from class:AbstractAppComponent
Call the required methods so the data is collected for this instance- Overrides:
doCollectData
in classAbstractAppComponent
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponent
Proceses the save/restore state opperation of the AppComponent- Overrides:
doFlatState
in classAbstractPersistableAppComponent
- Parameters:
serializer
- an instance of theFlatStateSerializer
object to usehowMuchState
- defines how much information needs to be savedtokenizer
- an instance of theFlatStateTokenizer
object to use- See Also:
AbstractPersistable.doFlatState(com.microstrategy.utils.serialization.FlatStateSerializer, int, com.microstrategy.utils.serialization.FlatStateTokenizer)
-
isMultiSelectAvailable
public boolean isMultiSelectAvailable()
Description copied from interface:ElementPickerBean
Returns whether the selected operator support multiple selection- Specified by:
isMultiSelectAvailable
in interfaceElementPickerBean
- Returns:
- true if the operator supports multiple selection
- See Also:
ElementPickerBean.isMultiSelectAvailable()
-
getPromptsBean
public PromptsBean getPromptsBean()
Description copied from interface:ElementPickerBean
Returns the prompts bean associated with this element picker- Specified by:
getPromptsBean
in interfaceElementPickerBean
- Returns:
PromptsBean
- See Also:
ElementPickerBean.getPromptsBean()
-
getAvailableElements
public WebDisplayUnits getAvailableElements()
Description copied from interface:ElementPickerBean
Return the collection of available elements.- Specified by:
getAvailableElements
in interfaceElementPickerBean
- Returns:
WebDisplayUnits
collection of available elements- See Also:
ElementPickerBean.getAvailableElements()
-
setPromptPosition
public void setPromptPosition(int position)
Description copied from interface:ElementPickerBean
Set the prompt position index in the report.- Specified by:
setPromptPosition
in interfaceElementPickerBean
- Parameters:
position
-int
value with the prompt position in the report- See Also:
ElementPickerBean.setPromptPosition(int)
-
getPromptPosition
public int getPromptPosition()
Description copied from interface:ElementPickerBean
Get the prompt position index in the report.- Specified by:
getPromptPosition
in interfaceElementPickerBean
- Returns:
int
value with the prompt position in the report- See Also:
ElementPickerBean.getPromptPosition()
-
setSelectedText
public void setSelectedText(java.lang.String text)
Description copied from interface:ElementPickerBean
Set the selected text on the bean.- Specified by:
setSelectedText
in interfaceElementPickerBean
- Parameters:
text
-String
the value from the text box- See Also:
ElementPickerBean.setSelectedText(java.lang.String)
-
setSelectedAttributeId
public void setSelectedAttributeId(java.lang.String id)
Description copied from interface:ElementPickerBean
Set the selected attribute on the bean.- Specified by:
setSelectedAttributeId
in interfaceElementPickerBean
- Parameters:
id
-String
the value from the attribute selection list- See Also:
ElementPickerBean.setSelectedAttributeId(java.lang.String)
-
setSelectedOperator
public void setSelectedOperator(java.lang.String operatorId)
Description copied from interface:ElementPickerBean
Set the selected Operator on the bean.- Specified by:
setSelectedOperator
in interfaceElementPickerBean
- Parameters:
operatorId
-String
the value from the Operator pulldown- See Also:
ElementPickerBean.setSelectedOperator(java.lang.String)
-
getSelectedText
public java.lang.String getSelectedText()
Description copied from interface:ElementPickerBean
Returns the selected text.- Specified by:
getSelectedText
in interfaceElementPickerBean
- Returns:
String
the value from the text box- See Also:
ElementPickerBean.getSelectedText()
-
getSelectedAttributeId
public java.lang.String getSelectedAttributeId()
Description copied from interface:ElementPickerBean
Returns the selected attribute on the bean.- Specified by:
getSelectedAttributeId
in interfaceElementPickerBean
- Returns:
String
the value from the attribute selection list- See Also:
ElementPickerBean.getSelectedAttributeId()
-
getSelectedOperator
public java.lang.String getSelectedOperator()
Description copied from interface:ElementPickerBean
Returns the selected Operator on the bean.- Specified by:
getSelectedOperator
in interfaceElementPickerBean
- Returns:
String
the value from the Operator pulldown- See Also:
ElementPickerBean.getSelectedOperator()
-
getElementBlockBegin
public int getElementBlockBegin()
Description copied from interface:ElementPickerBean
Returns the block begin for the elements - used by Incremental fetch- Specified by:
getElementBlockBegin
in interfaceElementPickerBean
- Returns:
int
the block begin- See Also:
ElementPickerBean.getElementBlockBegin()
-
getElementBlockCount
public int getElementBlockCount()
Description copied from interface:ElementPickerBean
Returns the block count for the elements - used by Incremental fetch- Specified by:
getElementBlockCount
in interfaceElementPickerBean
- Returns:
int
the block count- See Also:
ElementPickerBean.getElementBlockCount()
-
getElementChildCount
public int getElementChildCount()
Description copied from interface:ElementPickerBean
Returns the child count for the elements - used by Incremental fetch- Specified by:
getElementChildCount
in interfaceElementPickerBean
- Returns:
int
the element child count- See Also:
ElementPickerBean.getElementChildCount()
-
getQualificationAttributeForm
public WebAttributeForm getQualificationAttributeForm()
Description copied from interface:ElementPickerBean
Returns the form to be used for qualification. This attribute form's value will be used to pick the element's value.- Specified by:
getQualificationAttributeForm
in interfaceElementPickerBean
- Returns:
WebAttributeForm
the form to use for qualification- See Also:
ElementPickerBean.getQualificationAttributeForm()
-
-