Package jadex.base

Class DefaultFileFilter

  • All Implemented Interfaces:
    IAsyncFilter

    public class DefaultFileFilter
    extends java.lang.Object
    implements IAsyncFilter
    The default file filter allows using different file extensions. This class needs to handle remote transfer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean all
      Boolean if all is selected.
      protected java.util.List<java.lang.String> selected
      The selected component list.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultFileFilter()
      Create a new file filter.
      DefaultFileFilter​(boolean all, java.util.List<java.lang.String> selected)
      Create a new file filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Boolean> filter​(java.lang.Object obj)
      Filter an object.
      java.util.List<java.lang.String> getSelectedComponents()
      Get the selected filter elements.
      boolean isAll()
      Test the all flag .
      void setAll​(boolean all)
      Set the all flag.
      void setSelectedComponents​(java.util.List<java.lang.String> selected)
      Set the selected elements.
      • Methods inherited from class java.lang.Object

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

      • all

        protected boolean all
        Boolean if all is selected.
      • selected

        protected java.util.List<java.lang.String> selected
        The selected component list.
    • Constructor Detail

      • DefaultFileFilter

        public DefaultFileFilter()
        Create a new file filter.
      • DefaultFileFilter

        public DefaultFileFilter​(boolean all,
                                 java.util.List<java.lang.String> selected)
        Create a new file filter.
    • Method Detail

      • setAll

        public void setAll​(boolean all)
        Set the all flag.
        Parameters:
        all - The all flag.
      • isAll

        public boolean isAll()
        Test the all flag .
        Returns:
        True, if all is set.
      • getSelectedComponents

        public java.util.List<java.lang.String> getSelectedComponents()
        Get the selected filter elements.
        Returns:
        The list of elements.
      • setSelectedComponents

        public void setSelectedComponents​(java.util.List<java.lang.String> selected)
        Set the selected elements.
        Parameters:
        selectedcomponents - The selected components.
      • filter

        public IFuture<java.lang.Boolean> filter​(java.lang.Object obj)
        Filter an object.
        Specified by:
        filter in interface IAsyncFilter
        Parameters:
        obj - The object to filter.
        Returns:
        True, if passes filter.