Class ScrollerImpl

  • All Implemented Interfaces:
    GuiElement, Scroller

    public class ScrollerImpl
    extends AbstractGuiElement
    implements Scroller
    ScrollerImpl abstraction it renders an HMTL output for a Scroller Gui Element.
    Since:
    MicroStrategy Web 8.1.0
    • Method Detail

      • isSupportIncludeState

        public boolean isSupportIncludeState()
        Description copied from interface: Scroller
        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.
        Specified by:
        isSupportIncludeState in interface Scroller
        Returns:
      • setSupportIncludeState

        public void setSupportIncludeState​(boolean supportIncludeState)
        Specified by:
        setSupportIncludeState in interface Scroller
      • getCmdid

        public java.lang.String getCmdid()
        Description copied from interface: Scroller
        Set client-side property 'cmdid'
        Specified by:
        getCmdid in interface Scroller
        Returns:
      • setCmdid

        public void setCmdid​(java.lang.String cmdid)
        Specified by:
        setCmdid in interface Scroller
      • renderScroller

        public void renderScroller​(MarkupOutput out,
                                   int type)
      • setIncrement

        public void setIncrement​(int increment)
        Description copied from interface: Scroller
        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.
        Specified by:
        setIncrement in interface Scroller
        Parameters:
        increment - int
      • getIncrement

        public int getIncrement()
        Description copied from interface: Scroller
        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.
        Specified by:
        getIncrement in interface Scroller
        Returns:
        int
      • setMaxUnits

        public void setMaxUnits​(int maxUnits)
        Description copied from interface: Scroller
        Sets the max absolute units the scroller represents.
        Specified by:
        setMaxUnits in interface Scroller
        Parameters:
        maxUnits - int
      • getMaxUnits

        public int getMaxUnits()
        Description copied from interface: Scroller
        Returns the max absolute units the scroller represents.
        Specified by:
        getMaxUnits in interface Scroller
        Returns:
        int
      • setStartUnit

        public void setStartUnit​(int startUnit)
        Description copied from interface: Scroller
        Sets the start value of the scrollbar within the scroller, in relation to the maxUnits property.
        Specified by:
        setStartUnit in interface Scroller
        Parameters:
        startUnit - int
      • getStartUnit

        public int getStartUnit()
        Description copied from interface: Scroller
        Returns the start value of the scrollbar within the scroller, in relation to the maxUnits property.
        Specified by:
        getStartUnit in interface Scroller
        Returns:
        int
      • setEndUnit

        public void setEndUnit​(int endUnit)
        Description copied from interface: Scroller
        Sets the end value of the scrollbar within the scroller, in relation to the maxUnits property.
        Specified by:
        setEndUnit in interface Scroller
        Parameters:
        endUnit - int
      • getEndUnit

        public int getEndUnit()
        Description copied from interface: Scroller
        Returns the end value of the scrollbar within the scroller, in relation to the maxUnits property.
        Specified by:
        getEndUnit in interface Scroller
        Returns:
        int
      • addProperty

        public void addProperty​(java.lang.String key,
                                java.lang.String value)
        Description copied from interface: Scroller
        Adds a new property set to the scroller bone associated to the scroller Gui Element intance.
        Specified by:
        addProperty in interface Scroller
        Parameters:
        key - String
        value - String
      • setSize

        public void setSize​(int size)
        Description copied from interface: Scroller
        Sets the size of the scroller in pixels
        Specified by:
        setSize in interface Scroller
        Parameters:
        size - int
      • getSize

        public int getSize()
        Specified by:
        getSize in interface Scroller
      • getDataLabels

        public java.util.List getDataLabels()
        Description copied from interface: Scroller
        Returns a read/write List that can be used to specify the tooltip text for each of the scroller's data points.
        Specified by:
        getDataLabels in interface Scroller
        Returns:
        List
      • setDataLabels

        public void setDataLabels​(java.util.List dataLabels)
        Specified by:
        setDataLabels in interface Scroller
      • getDataValues

        public java.util.List getDataValues()
        Description copied from interface: Scroller
        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.
        Specified by:
        getDataValues in interface Scroller
        Returns:
        List
      • getClientSideHelper

        protected ClientSideHelper getClientSideHelper()
        Returns the ClientSideHelper instance associated with the scroller. This ClientSideHelper is used by the scroller to register the scroller bone.
        Returns:
        ClientSideHelper
      • setScriptClass

        public void setScriptClass​(java.lang.String _scriptClass)
        Description copied from interface: Scroller
        Sets the script class that serves as the bone for the scroller.
        Specified by:
        setScriptClass in interface Scroller
        Parameters:
        _scriptClass - script class.
      • getScriptClass

        public java.lang.String getScriptClass()
        Description copied from interface: Scroller
        Returns the script class that serves as the bone for the scroller.
        Specified by:
        getScriptClass in interface Scroller
        Returns:
        String.
      • setMaxWindowSize

        public void setMaxWindowSize​(int windowSize)
        Specified by:
        setMaxWindowSize in interface Scroller
      • setIsResizable

        public void setIsResizable​(boolean isResizable)
        Specified by:
        setIsResizable in interface Scroller
      • getStartBase

        public int getStartBase()
        Description copied from interface: Scroller
        Return the first unit on the scroller when the style is Scroller.SCROLLER_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.
        Specified by:
        getStartBase in interface Scroller
        Returns:
        The first unit.
      • setStartBase

        public void setStartBase​(int startPoint)
                          throws java.lang.IllegalArgumentException
        Description copied from interface: Scroller
        Set the first unit on teh scroller when the style is Scroller.SCROLLER_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.
        Specified by:
        setStartBase in interface Scroller
        Parameters:
        startPoint - The new number for the start base of the scroller
        Throws:
        java.lang.IllegalArgumentException - Thrown when the scroller is not in style Scroller.SCROLLER_STYLE_INDEX.