Autopsy  4.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Filter.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014-15 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.timeline.filters;
20 
21 import javafx.beans.binding.BooleanBinding;
22 import javafx.beans.property.SimpleBooleanProperty;
23 import javafx.beans.value.ObservableBooleanValue;
24 import javafx.collections.FXCollections;
25 import javafx.collections.ObservableList;
26 
30 public interface Filter {
31 
37  public static IntersectionFilter<Filter> intersect(ObservableList<Filter> filters) {
38  return new IntersectionFilter<>(filters);
39  }
40 
46  public static IntersectionFilter<Filter> intersect(Filter[] filters) {
47  return new IntersectionFilter<>(FXCollections.observableArrayList(filters));
48  }
49 
59  Filter copyOf();
60 
61  String getDisplayName();
62 
63  String getHTMLReportString();
64 
65  String getStringCheckBox();
66 
67  boolean isSelected();
68 
69  void setSelected(Boolean act);
70 
71  SimpleBooleanProperty selectedProperty();
72 
73  /*
74  * TODO: disabled state only affects the state of the checkboxes in the ui
75  * and not the actual filters and shouldn't be implemented here, but it was
76  * too hard to figure out how it should be implemented without intruding on
77  * the ui-ignorant filters
78  */
79  void setDisabled(Boolean act);
80 
81  ObservableBooleanValue disabledProperty();
82 
83  boolean isDisabled();
84 
85  boolean isActive();
86 
87  BooleanBinding activeProperty();
88 }
static IntersectionFilter< Filter > intersect(Filter[] filters)
Definition: Filter.java:46
static IntersectionFilter< Filter > intersect(ObservableList< Filter > filters)
Definition: Filter.java:37

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.