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
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().
-
Field Summary
Fields inherited from class com.pnfsoftware.jeb.util.events.EventSource
onEventCallCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressToCoordinates(String address) Convert a cell address to cell coordinates.coordinatesToAddress(ICellCoordinates coordinates) Convert cell coordinates to the cell address.voiddispose()The default implementation does nothing.The default implementation returns null.Methods inherited from class com.pnfsoftware.jeb.util.events.EventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, notifyListeners, notifyListeners, relay, removeListener, setParentSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSourceMethods inherited from interface com.pnfsoftware.jeb.core.output.IGenericDocument
getUnitMethods inherited from interface com.pnfsoftware.jeb.core.output.table.ITableDocument
getColumnLabels, getRowCount, getTable, getTablePart
-
Constructor Details
-
AbstractTableDocument
public AbstractTableDocument()
-
-
Method Details
-
dispose
public void dispose()The default implementation does nothing.- Specified by:
disposein interfaceIGenericDocument
-
getPropertyManager
The default implementation returns null.- Specified by:
getPropertyManagerin interfaceIGenericDocument- Returns:
- a PM, null if none
-
coordinatesToAddress
Description copied from interface:ITableDocumentConvert 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:
coordinatesToAddressin interfaceITableDocument- Parameters:
coordinates- coordinates of a cell- Returns:
- the address of the cell, null on error
-
addressToCoordinates
Description copied from interface:ITableDocumentConvert 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:
addressToCoordinatesin interfaceITableDocument- Parameters:
address- address of a cell- Returns:
- coordinates of the cell, null on error
-