getInstance(String sName, IDataSetUpdateableModel updateableModel) factory method for getting IDataSetViewer instances
If no instance can be made then the default
will be returned.
public boolean
getShowHeadings() Return whether to show the column headings.
init(IDataSetUpdateableModel updateableObject) Some types of DataSetViewers require extra initialization to set up
a return reference to the originating data object (e.g.
Some types of DataSetViewers require extra initialization to set up
a return reference to the originating data object (e.g. to allow
editing of that object later). The reference is needed to distinguish
which tables/text may be edited and which may not. This cannot be included
in the object creation because the Class.newInstance() method used in the
getInstance() method of this class does not allow for arguments. Since this
info is needed for the DataSetViewerTablePanel and DataSetViewerTextPanel classes
to be able to set up the
popup menu correctly, those classes cannot complete their initialization without
this added info. Therefore we need to initialize that class in two stages.
Setter and getter for the reference to the updateable object
representing the actual underlying data. This will be null if
the underlying data is not updateable.