Class AbstractTableDocument

java.lang.Object
com.pnfsoftware.jeb.util.events.EventSource
com.pnfsoftware.jeb.core.output.table.impl.AbstractTableDocument
All Implemented Interfaces:
IGenericDocument, ITableDocument, IEventSource
Direct Known Subclasses:
StaticTableDocument

@Ser public abstract class AbstractTableDocument extends EventSource implements ITableDocument
An adapter class for table documents. This class defines a very simple addressing system: the address of a cell is a "row_index,column_index" string representation of the cell coordinates.

Clients may also override dispose().

  • Constructor Details

    • AbstractTableDocument

      public AbstractTableDocument()
  • Method Details

    • dispose

      public void dispose()
      The default implementation does nothing.
      Specified by:
      dispose in interface IGenericDocument
    • getPropertyManager

      public IPropertyManager getPropertyManager()
      The default implementation returns null.
      Specified by:
      getPropertyManager in interface IGenericDocument
      Returns:
      a PM, null if none
    • coordinatesToAddress

      public String coordinatesToAddress(ICellCoordinates coordinates)
      Description copied from interface: ITableDocument
      Convert cell coordinates to the cell address.

      Note: The addressing scheme is unit specific, and defined by the plugin developer. Addresses should not start with the reserved '@' prefix.

      Specified by:
      coordinatesToAddress in interface ITableDocument
      Parameters:
      coordinates - coordinates of a cell
      Returns:
      the address of the cell, null on error
    • addressToCoordinates

      public ICellCoordinates addressToCoordinates(String address)
      Description copied from interface: ITableDocument
      Convert a cell address to cell coordinates.

      Note: The addressing scheme is unit specific, and defined by the plugin developer. Addresses should not start with the reserved '@' prefix.

      Specified by:
      addressToCoordinates in interface ITableDocument
      Parameters:
      address - address of a cell
      Returns:
      coordinates of the cell, null on error