Package com.microstrategy.web.app.gui
Interface Scroller
- 
- All Superinterfaces:
 GuiElement
- All Known Implementing Classes:
 ScrollerImpl
public interface Scroller extends GuiElement
Scroller interface that defines minimum contract all Scroller must implement.- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intHORIZONTAL_SCROLLERstatic intSCROLLER_BACKGROUNDstatic intSCROLLER_CONTAINERstatic intSCROLLER_CONTAINER_BARstatic intSCROLLER_CONTAINER_BAR_GHOSTstatic intSCROLLER_ENDstatic intSCROLLER_SELECTIONstatic intSCROLLER_SINGLE_TICKERstatic intSCROLLER_STARTstatic intSCROLLER_STYLE_DATAstatic intSCROLLER_STYLE_DATA_RANGEstatic intSCROLLER_STYLE_INDEXstatic intSCROLLER_STYLE_PERCENTstatic intVERTICAL_SCROLLER 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProperty(java.lang.String key, java.lang.String value)Adds a new property set to the scroller bone associated to the scroller Gui Element intance.JsonGeneratorgetBonePropertiesGenerator()returns the bone properties generator.java.lang.StringgetCmdid()Set client-side property 'cmdid'java.util.ListgetDataLabels()Returns a read/write List that can be used to specify the tooltip text for each of the scroller's data points.java.util.ListgetDataValues()Returns a read/write List that can be used to specify the data values for each of the scroller's data points.intgetEndUnit()Returns the end value of the scrollbar within the scroller, in relation to the maxUnits property.intgetIncrement()Gets the increment factor to be used for the scroll.intgetMaxUnits()Returns the max absolute units the scroller represents.java.lang.StringgetScriptClass()Returns the script class that serves as the bone for the scroller.intgetSize()intgetStartBase()Return the first unit on the scroller when the style isSCROLLER_STYLE_INDEX; If the scroller is 0-based scroller, set this to 0; if the scroller is 1-based scroller, set this to 1.intgetStartUnit()Returns the start value of the scrollbar within the scroller, in relation to the maxUnits property.intgetStyle()Returns the current style.intgetType()booleanisSupportIncludeState()Set flag to indicate if this scroller support toggleing its selection area between center and sides.voidsetCmdid(java.lang.String cmdid)voidsetDataLabels(java.util.List dataLabels)voidsetEndUnit(int endUnit)Sets the end value of the scrollbar within the scroller, in relation to the maxUnits property.voidsetIncrement(int increment)Sets the increment factor to be used for the scroll.voidsetIsResizable(boolean isResizable)voidsetMaxUnits(int maxUnits)Sets the max absolute units the scroller represents.voidsetMaxWindowSize(int windowSize)voidsetScriptClass(java.lang.String scriptClass)Sets the script class that serves as the bone for the scroller.voidsetSize(int size)Sets the size of the scroller in pixelsvoidsetStartBase(int startPoint)Set the first unit on teh scroller when the style isSCROLLER_STYLE_INDEXIf the scroller is 0-based scroller, set this to 0; if the scroller is 1-based scroller, set this to 1.voidsetStartUnit(int startUnit)Sets the start value of the scrollbar within the scroller, in relation to the maxUnits property.voidsetStyle(int style)Sets the new style.voidsetSupportIncludeState(boolean supportIncludeState)voidsetType(int type)Sets the type of scroller to display.- 
Methods inherited from interface com.microstrategy.web.app.gui.GuiElement
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getUseIFrame, getWebComponent, renderElement, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent 
 - 
 
 - 
 
- 
- 
Field Detail
- 
HORIZONTAL_SCROLLER
static final int HORIZONTAL_SCROLLER
- See Also:
 - Constant Field Values
 
 
- 
VERTICAL_SCROLLER
static final int VERTICAL_SCROLLER
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_CONTAINER
static final int SCROLLER_CONTAINER
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_START
static final int SCROLLER_START
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_SELECTION
static final int SCROLLER_SELECTION
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_END
static final int SCROLLER_END
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_BACKGROUND
static final int SCROLLER_BACKGROUND
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_CONTAINER_BAR
static final int SCROLLER_CONTAINER_BAR
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_SINGLE_TICKER
static final int SCROLLER_SINGLE_TICKER
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_CONTAINER_BAR_GHOST
static final int SCROLLER_CONTAINER_BAR_GHOST
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_STYLE_DATA
static final int SCROLLER_STYLE_DATA
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_STYLE_INDEX
static final int SCROLLER_STYLE_INDEX
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_STYLE_PERCENT
static final int SCROLLER_STYLE_PERCENT
- See Also:
 - Constant Field Values
 
 
- 
SCROLLER_STYLE_DATA_RANGE
static final int SCROLLER_STYLE_DATA_RANGE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
setType
void setType(int type)
Sets the type of scroller to display.- Parameters:
 type- int value asHORIZONTAL_SCROLLERto represent a horizontal scroller, orVERTICAL_SCROLLERto represent a vertical scroller
 
- 
getType
int getType()
- Returns:
 - int value with the type of scroller to display.
 Possible return values: 
HORIZONTAL_SCROLLERto represent a horizontal scroller
VERTICAL_SCROLLERto represent a vertical scroller. 
 
- 
setMaxUnits
void setMaxUnits(int maxUnits)
Sets the max absolute units the scroller represents.- Parameters:
 maxUnits- int
 
- 
getMaxUnits
int getMaxUnits()
Returns the max absolute units the scroller represents.- Returns:
 - int
 
 
- 
setIncrement
void setIncrement(int increment)
Sets the increment factor to be used for the scroll. If 20 max units were specified for the scroller and the increment factor defined is 5, then the values will range from 0 to 100, every 5 units.- Parameters:
 increment- int
 
- 
getIncrement
int getIncrement()
Gets the increment factor to be used for the scroll. If 20 max units were specified for the scroller and the increment factor defined is 5, then the values will range from 0 to 100, every 5 units.- Returns:
 - int
 
 
- 
setStartUnit
void setStartUnit(int startUnit)
Sets the start value of the scrollbar within the scroller, in relation to the maxUnits property.- Parameters:
 startUnit- int
 
- 
getStartUnit
int getStartUnit()
Returns the start value of the scrollbar within the scroller, in relation to the maxUnits property.- Returns:
 - int
 
 
- 
setEndUnit
void setEndUnit(int endUnit)
Sets the end value of the scrollbar within the scroller, in relation to the maxUnits property.- Parameters:
 endUnit- int
 
- 
getEndUnit
int getEndUnit()
Returns the end value of the scrollbar within the scroller, in relation to the maxUnits property.- Returns:
 - int
 
 
- 
addProperty
void addProperty(java.lang.String key, java.lang.String value)Adds a new property set to the scroller bone associated to the scroller Gui Element intance.- Parameters:
 key- Stringvalue- String
 
- 
getBonePropertiesGenerator
JsonGenerator getBonePropertiesGenerator()
returns the bone properties generator.- Returns:
 JsonGenerator
 
- 
setSize
void setSize(int size)
Sets the size of the scroller in pixels- Parameters:
 size- int
 
- 
getSize
int getSize()
 
- 
setMaxWindowSize
void setMaxWindowSize(int windowSize)
 
- 
setIsResizable
void setIsResizable(boolean isResizable)
 
- 
getDataLabels
java.util.List getDataLabels()
Returns a read/write List that can be used to specify the tooltip text for each of the scroller's data points.- Returns:
 - List
 
 
- 
setDataLabels
void setDataLabels(java.util.List dataLabels)
 
- 
getDataValues
java.util.List getDataValues()
Returns a read/write List that can be used to specify the data values for each of the scroller's data points. One possible usage of this list could be to generate event arguments corresponding to the selections.- Returns:
 - List
 
 
- 
setScriptClass
void setScriptClass(java.lang.String scriptClass)
Sets the script class that serves as the bone for the scroller.- Parameters:
 scriptClass- script class.
 
- 
getScriptClass
java.lang.String getScriptClass()
Returns the script class that serves as the bone for the scroller.- Returns:
 - String.
 
 
- 
getStyle
int getStyle()
Returns the current style. Value styles areSCROLLER_STYLE_DATA,SCROLLER_STYLE_DATA_RANGE,SCROLLER_STYLE_INDEXandSCROLLER_STYLE_PERCENT- Returns:
 - int
 
 
- 
setStyle
void setStyle(int style)
Sets the new style. Value styles areSCROLLER_STYLE_DATA,SCROLLER_STYLE_DATA_RANGE,SCROLLER_STYLE_INDEXandSCROLLER_STYLE_PERCENT- Parameters:
 style- The style to set.
 
- 
getStartBase
int getStartBase()
Return the first unit on the scroller when the style isSCROLLER_STYLE_INDEX; If the scroller is 0-based scroller, set this to 0; if the scroller is 1-based scroller, set this to 1. If other cases, just set the first number which would appear at the left/lower end of the scroller. Default will be 1-based index.- Returns:
 - The first unit.
 
 
- 
setStartBase
void setStartBase(int startPoint) throws java.lang.IllegalArgumentExceptionSet the first unit on teh scroller when the style isSCROLLER_STYLE_INDEXIf the scroller is 0-based scroller, set this to 0; if the scroller is 1-based scroller, set this to 1. If other cases, just set the first number which would appear at the left/lower end of the scroller. Default will be 1-based index.- Parameters:
 startPoint- The new number for the start base of the scroller- Throws:
 java.lang.IllegalArgumentException- Thrown when the scroller is not in styleSCROLLER_STYLE_INDEX.
 
- 
isSupportIncludeState
boolean isSupportIncludeState()
Set flag to indicate if this scroller support toggleing its selection area between center and sides. This is to support Metric Condition selector's include/exclude selection mode.- Returns:
 
 
- 
setSupportIncludeState
void setSupportIncludeState(boolean supportIncludeState)
 
- 
getCmdid
java.lang.String getCmdid()
Set client-side property 'cmdid'- Returns:
 
 
- 
setCmdid
void setCmdid(java.lang.String cmdid)
 
 - 
 
 -