Class ViewUtil


  • public final class ViewUtil
    extends Object
    Utility class containing methods for modifying View objects.
    • Method Detail

      • removeProperties

        public static void removeProperties​(View view,
                                            Element element)
        Remove properties from the supplied element, according to the ViewElementDefinition in the View.
        Parameters:
        view - the view to apply
        element - the element to modify
      • removeProperties

        public static void removeProperties​(ViewElementDefinition elDef,
                                            Element element)
        Remove properties from the supplied element, according to the ViewElementDefinition.
        Parameters:
        elDef - the element definition to apply
        element - the element to modify
      • removeProperties

        public static void removeProperties​(ViewElementDefinition elDef,
                                            Properties properties)
        Remove properties from the supplied element, according to the ViewElementDefinition.
        Parameters:
        elDef - the element definition to apply
        properties - the properties to modify
      • removeGroups

        public static View removeGroups​(View view,
                                        String... groups)
        Remove specified from the supplied view. Because The View is unmodifiable it will return a new View with the group(s) removed.
        Parameters:
        view - the view to apply
        groups - the groups to remove
        Returns:
        the new view with the groups removed