public class TextPresenter extends AbstractEditorPanePresenter<java.lang.String>
AWTPresenter.ChartBasedPresenter, AWTPresenter.GraphBasedPresenter, AWTPresenter.ListBasedPresenter, AWTPresenter.TableBasedPresenter, AWTPresenter.TextBasedPresenter
BR, contentPane, NONE, options, presentedData, scrollPane
Constructor and Description |
---|
TextPresenter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDefaultText() |
void |
present(java.lang.Object data,
Options options)
Presents the given data object using the
options parameter. |
protected void |
refresh() |
boolean |
supports(ContentType type)
Checks whether an implementation is capable of presenting
a certain
ContentType instance. |
clear, close, getPresentedData, getPresentingComponent, isPresenting, noneOrNonempty
public boolean supports(ContentType type)
Presenter
ContentType
instance.de.ims.icarus.ui.view.Presenter#supports(java.lang.Object)
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.
protected java.lang.String getDefaultText()
getDefaultText
in class AbstractEditorPanePresenter<java.lang.String>
AbstractEditorPanePresenter.getDefaultText()
protected void refresh()
refresh
in class AbstractEditorPanePresenter<java.lang.String>
AbstractEditorPanePresenter.refresh()