19 package org.sleuthkit.autopsy.coreutils;
 
   21 import java.util.Objects;
 
   22 import javafx.beans.property.Property;
 
   23 import javafx.beans.property.ReadOnlyBooleanProperty;
 
   24 import javafx.beans.property.ReadOnlyBooleanWrapper;
 
   25 import javafx.beans.property.ReadOnlyObjectProperty;
 
   26 import javafx.beans.property.ReadOnlyObjectWrapper;
 
   27 import javafx.beans.property.SimpleListProperty;
 
   28 import javafx.collections.FXCollections;
 
   29 import javax.annotation.concurrent.GuardedBy;
 
   30 import javax.annotation.concurrent.ThreadSafe;
 
   46     private final ObservableStack<T> 
historyStack = new ObservableStack<>();
 
   49     private final ObservableStack<T> 
forwardStack = new ObservableStack<>();
 
   52     private final ReadOnlyObjectWrapper<T> 
currentState = new ReadOnlyObjectWrapper<>();
 
   55     private final ReadOnlyBooleanWrapper 
canAdvance = new ReadOnlyBooleanWrapper();
 
   58     private final ReadOnlyBooleanWrapper 
canRetreat = new ReadOnlyBooleanWrapper();
 
  103         if (peek != null && peek.equals(
currentState.get()) == 
false) {
 
  120         if (pop != null && pop.equals(
currentState.get()) == 
false) {
 
  124         } 
else if (pop != null && pop.equals(
currentState.get())) {
 
  139     synchronized public void advance(T newState) 
throws IllegalArgumentException {
 
  141         if (newState != null && Objects.equals(
currentState.get(), newState) == 
false) {
 
  170             super(FXCollections.<T>synchronizedObservableList(FXCollections.<T>observableArrayList()));
 
  174             synchronized (
this) {
 
  180             synchronized (
this) {
 
  190             synchronized (
this) {
 
final ObservableStack< T > forwardStack
 
final ObservableStack< T > historyStack
 
synchronized boolean canRetreat()
 
synchronized T getCurrentState()
 
synchronized boolean canAdvance()
 
synchronized ReadOnlyObjectProperty< T > currentState()
 
synchronized ReadOnlyBooleanProperty getCanRetreat()
 
synchronized void advance(T newState)
 
synchronized ReadOnlyBooleanProperty getCanAdvance()
 
synchronized void clear()