Interface RWUnitDef

    • Method Detail

      • getKey

        java.lang.String getKey()
        Returns unit ID
        Returns:
        unit ID
      • getRwDefinition

        RWDefinition getRwDefinition()
        Returns parent RwDefiniton
        Returns:
        parent RwDefiniton
      • getParent

        RWSectionDef getParent()
        Returns unit's parent
        Returns:
        unit's parent
      • copyFormat

        void copyFormat​(RWUnitDef fromUnit)
                 throws WebObjectsException
        Copies formatting properties from the fromUnit to this unit. This method copies only subset of properties, which is determined by the list of "copyable" properties. There is a separate list of copyable properties for each unit type. Those lists are stored in metadata.
        Parameters:
        fromUnit - a unit from which formatting propertis will be copied
        Throws:
        WebObjectsException
      • isFirst

        boolean isFirst()
        Returns true if this unit is the first on its parent collection
        Returns:
        true if this unit is the first on its parent collection
      • isLast

        boolean isLast()
        Returns true if this unit is the last on its parent collection
        Returns:
        true if this unit is the last on its parent collection
      • nextSibling

        RWUnitDef nextSibling()
        Returns next sibleng
        Returns:
        next sibleng
      • prevSibling

        RWUnitDef prevSibling()
        Returns previous sibling
        Returns:
        previous sibling
      • setVisible

        void setVisible​(boolean value)
                 throws WebObjectsException
        Sets visible property on the unit
        Parameters:
        value - if value is false the unit will not be visible
        Throws:
        WebObjectsException
      • revertToFormatDefaults

        void revertToFormatDefaults()
        Resets the unit's format to the control default values
      • getName

        java.lang.String getName()
        This is a convenience method for reading the name of the object This is equivalent to reading the name property from the FormattingAppearance propertySet of the format definition associated with this object
        Specified by:
        getName in interface WebThresholdsContainer
        Returns:
        name
        Since:
        MicroStrategy Web 8.1.0
      • setName

        void setName​(java.lang.String name)
        This is a convenience method for setting the name of the object This is equivalent to setting the name property from the FormattingAppearance propertySet of the format definition associated with this object
        Parameters:
        name -
        Since:
        MicroStrategy Web 8.1.0
      • getFormatTypes

        int[] getFormatTypes()
        Returns a list of format types applicable to the given object
        Returns:
        int[]
        Since:
        MicroStrategy Web 8.1.0
      • getFormat

        WebFormat getFormat​(int formatType)
        Returns a format object for the given format type.
        Parameters:
        formatType - format type
        Returns:
        WebFormat
        Since:
        MicroStrategy Web 8.1.0
      • getKeyContext

        java.lang.String getKeyContext()
        Returns a unique id to be used by the backend to identify any unit.
        Returns:
        unique identifier
        Since:
        MicroStrategy Web 8.1.0
      • getTreeType

        java.lang.String getTreeType()
        Since:
        MicroStrategy Web 9.0.0
      • getAllControlGroupBys

        java.util.List getAllControlGroupBys()
        Returns a list of all the controlGroupBys RWControlGroupBy on this unit including element selector and metric selector targeting control groupBys
        Since:
        MicroStrategy Web 9.0.1
      • flushFormatChanges

        void flushFormatChanges​(boolean applyToAllViews)
        flush the current formatting manipulations, so that it would be submitted to iserver if needed. If @param applyToAllViews is true, the formatting would be applied to all views, other wise the current view.
        Parameters:
        applyToAllViews -