public abstract class TablePresenter extends java.lang.Object implements AWTPresenter.TableBasedPresenter
AWTPresenter.ChartBasedPresenter, AWTPresenter.GraphBasedPresenter, AWTPresenter.ListBasedPresenter, AWTPresenter.TableBasedPresenter, AWTPresenter.TextBasedPresenter
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
contentPanel |
protected javax.swing.JTable |
table |
Modifier | Constructor and Description |
---|---|
protected |
TablePresenter() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildPanel() |
void |
close()
Releases all underlying resources.
|
protected abstract javax.swing.JTable |
createTable() |
protected ActionComponentBuilder |
createToolBar() |
protected abstract ContentType |
getContentType() |
java.awt.Component |
getPresentingComponent()
Returns the
Component this presenter is using to render
its data. |
javax.swing.JTable |
getTable() |
protected void |
init() |
void |
present(java.lang.Object data,
Options options)
Presents the given data object using the
options parameter. |
protected abstract void |
setData(java.lang.Object data,
Options options) |
boolean |
supports(ContentType type)
Checks whether an implementation is capable of presenting
a certain
ContentType instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getPresentedData, isPresenting
protected javax.swing.JTable table
protected javax.swing.JPanel contentPanel
protected void init()
protected abstract javax.swing.JTable createTable()
protected ActionComponentBuilder createToolBar()
protected void buildPanel()
public javax.swing.JTable getTable()
protected abstract void setData(java.lang.Object data, Options options)
public void present(java.lang.Object data, Options options) throws UnsupportedPresentationDataException
Presenter
Presents
the given data
object using the
options
parameter. As a general rule data
should never be null
. If a program wants to erase
the internal state of a Presenter
it should call
Presenter.clear()
instead!
If this method returns without errors all subsequent calls
to Presenter.isPresenting()
must return true
until
Presenter.clear()
is performed.
present
in interface Presenter
UnsupportedPresentationDataException
Presenter.present(java.lang.Object, de.ims.icarus.util.Options)
public void close()
Presenter
close
in interface Presenter
Presenter.close()
public java.awt.Component getPresentingComponent()
AWTPresenter
Component
this presenter is using to render
its data. This method should never return null
regardless
of valid presentation data being set or not. This state is rather
to be displayed by the visual content
of the returned component.getPresentingComponent
in interface AWTPresenter
AWTPresenter.getPresentingComponent()
public boolean supports(ContentType type)
Presenter
ContentType
instance.supports
in interface Presenter
Presenter.supports(de.ims.icarus.util.data.ContentType)
protected abstract ContentType getContentType()