Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
AbstractFilter.java
Go to the documentation of this file.
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5 package org.sleuthkit.autopsy.timeline.filters;
6 
7 import javafx.beans.property.SimpleBooleanProperty;
8 
13 public abstract class AbstractFilter implements Filter {
14 
15  private final SimpleBooleanProperty active = new SimpleBooleanProperty(true);
16  private final SimpleBooleanProperty disabled = new SimpleBooleanProperty(false);
17 
18  @Override
19  public SimpleBooleanProperty getActiveProperty() {
20  return active;
21  }
22 
23  @Override
24  public SimpleBooleanProperty getDisabledProperty() {
25  return disabled;
26  }
27 
28  @Override
29  public void setActive(Boolean act) {
30  active.set(act);
31  }
32 
33  @Override
34  public boolean isActive() {
35  return active.get();
36  }
37 
38  @Override
39  public void setDisabled(Boolean act) {
40  disabled.set(act);
41  }
42 
43  @Override
44  public boolean isDisabled() {
45  return disabled.get();
46  }
47 
48  @Override
49  public String getStringCheckBox() {
50  return "[" + (isActive() ? "x" : " ") + "]"; // NON-NLS
51  }
52 
53 
54 
55 }

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.