Class ElementStyleDefinition

    • Constructor Detail

      • ElementStyleDefinition

        public ElementStyleDefinition()
    • Method Detail

      • removeRule

        public void removeRule​(int index)
      • updateRule

        public boolean updateRule​(ElementStyleSheet rule)
        Iterate over the rules looking for a match based on the style sheet id. If found, we remove the old style sheet and insert the new one in the same location.
        Parameters:
        rule -
        Returns:
        true if the update happened.
      • clearRules

        public void clearRules()
      • getRuleCount

        public int getRuleCount()
      • getStyleSheetCount

        public int getStyleSheetCount()
      • removeStyleSheet

        public void removeStyleSheet​(int index)
      • clearStyleSheet

        public void clearStyleSheet()