Class Wrapper<S extends Source>

  • Type Parameters:
    S - a source class
    Direct Known Subclasses:
    Appointment, Note, Project, Quicklink, Workspace

    public abstract class Wrapper<S extends Source>
    extends java.lang.Object
    A Wrapper around a Source. The wrapper wraps the source's fields with Property to enable listening for property changes. This is used to synchronize Changes to FileSystem and vice versa.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javafx.beans.property.StringProperty name  
      protected S source  
    • Constructor Summary

      Constructors 
      Constructor Description
      Wrapper​(S source)
      Create wrapper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Check object
      javafx.beans.property.StringProperty getName()
      Get Wrapper for Source.name property.
      S getSource()
      Get the unwrapped original source value.
      int hashCode()
      Return hashcode if source is set
      • Methods inherited from class java.lang.Object

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

      • source

        protected final S extends Source source
      • name

        protected final javafx.beans.property.StringProperty name
    • Constructor Detail

      • Wrapper

        public Wrapper​(S source)
        Create wrapper
        Parameters:
        source -
    • Method Detail

      • getSource

        public S getSource()
        Get the unwrapped original source value.
        Returns:
        the source value
      • getName

        public javafx.beans.property.StringProperty getName()
        Get Wrapper for Source.name property.
        Returns:
        the wrapper
      • hashCode

        public int hashCode()
        Return hashcode if source is set
        Overrides:
        hashCode in class java.lang.Object
        Returns:
      • equals

        public boolean equals​(java.lang.Object obj)
        Check object
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns: