Interface JRVirtualizable<T>

Type Parameters:
T - the type of the virtual data object, see getVirtualData()
All Known Implementing Classes:
ElementsBlock

public interface JRVirtualizable<T>
Author:
John Bindel
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by the virtualizer after the object's data is externalized, but before the virtual data is removed.
    void
    Called by the virtualizer after the object's data was made available to the object.
    void
    Called by the virtualizer before the object's data is externalized.
    void
    Ensure that the virtual data is set to the object.
    Returns the virtualization context this object belongs to.
    Used by the virtualizer to identify the data for this object.
    Used by the virtualizer to get data.
    void
    Used by the virtualizer to remove the data from the object in memory so that it may be garbage collected.
    void
    Used by the virtualizer to set data.
  • Method Details

    • getUID

      String getUID()
      Used by the virtualizer to identify the data for this object.
    • ensureVirtualData

      void ensureVirtualData()
      Ensure that the virtual data is set to the object.
    • setVirtualData

      void setVirtualData(T o)
      Used by the virtualizer to set data.
    • getVirtualData

      T getVirtualData()
      Used by the virtualizer to get data.
    • removeVirtualData

      void removeVirtualData()
      Used by the virtualizer to remove the data from the object in memory so that it may be garbage collected.
    • beforeExternalization

      void beforeExternalization()
      Called by the virtualizer before the object's data is externalized.
    • afterExternalization

      void afterExternalization()
      Called by the virtualizer after the object's data is externalized, but before the virtual data is removed.
    • afterInternalization

      void afterInternalization()
      Called by the virtualizer after the object's data was made available to the object.
    • getContext

      Returns the virtualization context this object belongs to.
      Returns:
      the virtualization context this object belongs to