Class LayoutImpl

    • Field Detail

      • ATT_LAYOUT_SOURCE

        protected static final java.lang.String ATT_LAYOUT_SOURCE
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_ORDER

        protected static final java.lang.String ATT_ORDER
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • NODE_LAYOUT

        protected static final java.lang.String NODE_LAYOUT
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • LayoutImpl

        public LayoutImpl()
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • clearCaches

        protected void clearCaches()
        Description copied from class: AbstractStyleCatalogElement
        This method is invoked whenever the structure of the style catalog has changed and caches to other objects in the structure needs to be updated.
        Overrides:
        clearCaches in class AbstractStyleCatalogElement
        Since:
        MicroStrategy Web 9.0.0
      • getLayoutSourceName

        public java.lang.String getLayoutSourceName()
        Description copied from interface: Layout
        Return the name of the LayoutSourceDefn currently associated with this Layout.
        Specified by:
        getLayoutSourceName in interface Layout
        Since:
        MicroStrategy Web 9.0.0
      • setLayoutSourceName

        public void setLayoutSourceName​(java.lang.String value)
        Description copied from interface: Layout
        Associates a LayoutSourceDefn with this Layout based on its name.
        Specified by:
        setLayoutSourceName in interface Layout
        Since:
        MicroStrategy Web 9.0.0
      • getOrder

        public int getOrder()
        Description copied from interface: Layout
        This method returns the precedence order of this specific layout. The higher the number, the earlier it will get evaluated.
        Specified by:
        getOrder in interface Layout
        Returns:
        The numeric value of the precedence order.
      • setOrder

        public void setOrder​(int order)
        Description copied from interface: Layout
        This method sets the precedence order of this specific layout. The higher the number, the earlier it will get evaluated.
        Specified by:
        setOrder in interface Layout
        Parameters:
        order - The numeric value of the precedence order.
      • getLayoutDefinition

        public LayoutTag getLayoutDefinition​(LayoutParser desiredParser)
                                      throws WebTransformException
        Description copied from interface: Layout
        This method returns the in-memory representation of the layout definition to use with this specific style. This object may be the result of a parse operation or it may have been previously cached (and simply returned).
        Specified by:
        getLayoutDefinition in interface Layout
        Parameters:
        desiredParser - If a layout definition needs to be parsed, then use the supplied LayoutParser object.
        Returns:
        The in-memory representation of the layout definition (in the form of a root
        Throws:
        WebTransformException - thrown if there is any error occurred. LayoutTag tag).
      • getLayoutLocator

        public java.lang.String getLayoutLocator()
        Description copied from interface: Layout
        This method returns the layout locator string associated with this layout.
        Specified by:
        getLayoutLocator in interface Layout
        Returns:
        The layout "location" as a String.
      • setLayoutLocator

        public void setLayoutLocator​(java.lang.String layoutLocator)
        Description copied from interface: Layout
        This method sets the layout locator (String) associated with this layout.
        Specified by:
        setLayoutLocator in interface Layout
        Parameters:
        layoutLocator - The string representation of the layout location. The actual syntax is defined by the LayoutSource object it is associated with.
      • useNodeValue

        protected boolean useNodeValue()
        Description copied from class: AbstractConfigurationElement
        Controls whether this element will use the node value as a property. For example, nodes defined as:
        
          <a att="1">This is the node value</a>
         
        can expose a property which will return the node's value (This is the node vale). When this is the case, though, the element can't have any sub elements. They're mutually exclusive.
        Overrides:
        useNodeValue in class AbstractConfigurationElement
        Returns:
        false by default. Override this method if you want to associate the node value with some property.
        Since:
        MicroStrategy Web 9.0.0
      • getKeyAttribute

        protected java.lang.String getKeyAttribute()
        Description copied from class: AbstractConfigurationElement
        This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override the getKey and setKey methods.
        Specified by:
        getKeyAttribute in class AbstractConfigurationElement
        Since:
        MicroStrategy Web 9.0.0
      • getKey

        public java.lang.Object getKey()
        Description copied from class: AbstractConfigurationElement
        Default implementation for getKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings; the attribute to use is specified by the getKeyAttribute() method.
        Specified by:
        getKey in interface ConfigurationElement
        Overrides:
        getKey in class AbstractConfigurationElement
        Returns:
        If getKeyAttribute() is empty returns null, otherwise it returns the value of the given attribute.
        Since:
        MicroStrategy Web 9.0.0