Class XmlFileContainer

  • All Implemented Interfaces:
    com.vaadin.v7.data.Container, com.vaadin.v7.data.Container.Hierarchical, java.io.Serializable

    public class XmlFileContainer
    extends com.vaadin.v7.data.util.FilesystemContainer
    The Class XmlFileContainer.
    Author:
    Alejandro Galue
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.v7.data.util.FilesystemContainer

        com.vaadin.v7.data.util.FilesystemContainer.FileExtensionFilter, com.vaadin.v7.data.util.FilesystemContainer.FileItem
      • Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container

        com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.Viewer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> excludeList
      The exclude list.
      • Fields inherited from class com.vaadin.v7.data.util.FilesystemContainer

        FILE_PROPERTIES, PROPERTY_ICON, PROPERTY_LASTMODIFIED, PROPERTY_NAME, PROPERTY_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlFileContainer​(java.io.File root, boolean recursive)
      Instantiates a new XML file container.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExcludeFile​(java.lang.String excludeFile)
      Adds the exclude file.
      java.util.Collection<java.io.File> getItemIds()  
      void removeExcludeFile​(java.lang.String excludeFile)
      Removes the exclude file.
      • Methods inherited from class com.vaadin.v7.data.util.FilesystemContainer

        addContainerProperty, addItem, addItem, addRoot, areChildrenAllowed, containsId, getChildren, getContainerProperty, getContainerPropertyIds, getFilter, getItem, getParent, getType, hasChildren, isRecursive, isRoot, removeAllItems, removeContainerProperty, removeItem, rootItemIds, setChildrenAllowed, setFilter, setFilter, setParent, setRecursive, size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • excludeList

        protected java.util.List<java.lang.String> excludeList
        The exclude list.
    • Constructor Detail

      • XmlFileContainer

        public XmlFileContainer​(java.io.File root,
                                boolean recursive)
        Instantiates a new XML file container.
        Parameters:
        root - the root
        recursive - the recursive flag
    • Method Detail

      • getItemIds

        public java.util.Collection<java.io.File> getItemIds()
        Specified by:
        getItemIds in interface com.vaadin.v7.data.Container
        Overrides:
        getItemIds in class com.vaadin.v7.data.util.FilesystemContainer
      • addExcludeFile

        public void addExcludeFile​(java.lang.String excludeFile)
        Adds the exclude file.
        Parameters:
        excludeFile - the exclude file
      • removeExcludeFile

        public void removeExcludeFile​(java.lang.String excludeFile)
        Removes the exclude file.
        Parameters:
        excludeFile - the exclude file