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 voiddoCollectData()Call the required methods so the data is collected for this instanceprotected voiddoFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)Proceses the save/restore state opperation of the AppComponentWebDisplayUnitsgetAvailableElements()Return the collection of available elements.intgetElementBlockBegin()Returns the block begin for the elements - used by Incremental fetchintgetElementBlockCount()Returns the block count for the elements - used by Incremental fetchintgetElementChildCount()Returns the child count for the elements - used by Incremental fetchintgetPromptPosition()Get the prompt position index in the report.PromptsBeangetPromptsBean()Returns the prompts bean associated with this element pickerWebAttributeFormgetQualificationAttributeForm()Returns the form to be used for qualification.java.lang.StringgetSelectedAttributeId()Returns the selected attribute on the bean.java.lang.StringgetSelectedOperator()Returns the selected Operator on the bean.java.lang.StringgetSelectedText()Returns the selected text.booleanisMultiSelectAvailable()Returns whether the selected operator support multiple selectionvoidsetPromptPosition(int position)Set the prompt position index in the report.voidsetSelectedAttributeId(java.lang.String id)Set the selected attribute on the bean.voidsetSelectedOperator(java.lang.String operatorId)Set the selected Operator on the bean.voidsetSelectedText(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:AbstractAppComponentCall the required methods so the data is collected for this instance- Overrides:
doCollectDatain classAbstractAppComponent
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponentProceses the save/restore state opperation of the AppComponent- Overrides:
doFlatStatein classAbstractPersistableAppComponent- Parameters:
serializer- an instance of theFlatStateSerializerobject to usehowMuchState- defines how much information needs to be savedtokenizer- an instance of theFlatStateTokenizerobject 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:ElementPickerBeanReturns whether the selected operator support multiple selection- Specified by:
isMultiSelectAvailablein interfaceElementPickerBean- Returns:
- true if the operator supports multiple selection
- See Also:
ElementPickerBean.isMultiSelectAvailable()
-
getPromptsBean
public PromptsBean getPromptsBean()
Description copied from interface:ElementPickerBeanReturns the prompts bean associated with this element picker- Specified by:
getPromptsBeanin interfaceElementPickerBean- Returns:
PromptsBean- See Also:
ElementPickerBean.getPromptsBean()
-
getAvailableElements
public WebDisplayUnits getAvailableElements()
Description copied from interface:ElementPickerBeanReturn the collection of available elements.- Specified by:
getAvailableElementsin interfaceElementPickerBean- Returns:
WebDisplayUnitscollection of available elements- See Also:
ElementPickerBean.getAvailableElements()
-
setPromptPosition
public void setPromptPosition(int position)
Description copied from interface:ElementPickerBeanSet the prompt position index in the report.- Specified by:
setPromptPositionin interfaceElementPickerBean- Parameters:
position-intvalue with the prompt position in the report- See Also:
ElementPickerBean.setPromptPosition(int)
-
getPromptPosition
public int getPromptPosition()
Description copied from interface:ElementPickerBeanGet the prompt position index in the report.- Specified by:
getPromptPositionin interfaceElementPickerBean- Returns:
intvalue with the prompt position in the report- See Also:
ElementPickerBean.getPromptPosition()
-
setSelectedText
public void setSelectedText(java.lang.String text)
Description copied from interface:ElementPickerBeanSet the selected text on the bean.- Specified by:
setSelectedTextin interfaceElementPickerBean- Parameters:
text-Stringthe value from the text box- See Also:
ElementPickerBean.setSelectedText(java.lang.String)
-
setSelectedAttributeId
public void setSelectedAttributeId(java.lang.String id)
Description copied from interface:ElementPickerBeanSet the selected attribute on the bean.- Specified by:
setSelectedAttributeIdin interfaceElementPickerBean- Parameters:
id-Stringthe 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:ElementPickerBeanSet the selected Operator on the bean.- Specified by:
setSelectedOperatorin interfaceElementPickerBean- Parameters:
operatorId-Stringthe value from the Operator pulldown- See Also:
ElementPickerBean.setSelectedOperator(java.lang.String)
-
getSelectedText
public java.lang.String getSelectedText()
Description copied from interface:ElementPickerBeanReturns the selected text.- Specified by:
getSelectedTextin interfaceElementPickerBean- Returns:
Stringthe value from the text box- See Also:
ElementPickerBean.getSelectedText()
-
getSelectedAttributeId
public java.lang.String getSelectedAttributeId()
Description copied from interface:ElementPickerBeanReturns the selected attribute on the bean.- Specified by:
getSelectedAttributeIdin interfaceElementPickerBean- Returns:
Stringthe value from the attribute selection list- See Also:
ElementPickerBean.getSelectedAttributeId()
-
getSelectedOperator
public java.lang.String getSelectedOperator()
Description copied from interface:ElementPickerBeanReturns the selected Operator on the bean.- Specified by:
getSelectedOperatorin interfaceElementPickerBean- Returns:
Stringthe value from the Operator pulldown- See Also:
ElementPickerBean.getSelectedOperator()
-
getElementBlockBegin
public int getElementBlockBegin()
Description copied from interface:ElementPickerBeanReturns the block begin for the elements - used by Incremental fetch- Specified by:
getElementBlockBeginin interfaceElementPickerBean- Returns:
intthe block begin- See Also:
ElementPickerBean.getElementBlockBegin()
-
getElementBlockCount
public int getElementBlockCount()
Description copied from interface:ElementPickerBeanReturns the block count for the elements - used by Incremental fetch- Specified by:
getElementBlockCountin interfaceElementPickerBean- Returns:
intthe block count- See Also:
ElementPickerBean.getElementBlockCount()
-
getElementChildCount
public int getElementChildCount()
Description copied from interface:ElementPickerBeanReturns the child count for the elements - used by Incremental fetch- Specified by:
getElementChildCountin interfaceElementPickerBean- Returns:
intthe element child count- See Also:
ElementPickerBean.getElementChildCount()
-
getQualificationAttributeForm
public WebAttributeForm getQualificationAttributeForm()
Description copied from interface:ElementPickerBeanReturns the form to be used for qualification. This attribute form's value will be used to pick the element's value.- Specified by:
getQualificationAttributeFormin interfaceElementPickerBean- Returns:
WebAttributeFormthe form to use for qualification- See Also:
ElementPickerBean.getQualificationAttributeForm()
-
-