public class TableView extends View implements de.ims.icarus.ui.helper.Outline
View.ViewEvents
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
contentPanel |
protected javax.swing.JTextArea |
infoLabel |
eventSource
Constructor and Description |
---|
TableView() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Tells this
View to release all its resources and
return ownership of the JComponent it was provided with
on the initial call to #init(JComponent) . |
protected void |
displayData(java.lang.Object data,
de.ims.icarus.util.Options options) |
de.ims.icarus.ui.view.AWTPresenter.TableBasedPresenter |
getPresenter() |
protected de.ims.icarus.util.mpi.ResultMessage |
handleRequest(de.ims.icarus.util.mpi.Message message)
Accepted commands:
Commands.DISPLAY
Commands.PRESENT
Commands.CLEAR
|
void |
init(javax.swing.JComponent container)
Tells the
view to layout its visible parts. |
void |
reset() |
protected void |
setPresenter(de.ims.icarus.ui.view.AWTPresenter.TableBasedPresenter presenter) |
protected void |
showInfo(java.lang.String text) |
addBroadcastListener, addListener, buildToolBar, defaultLoadActions, fireBroadcastEvent, focusView, getContainer, getDefaultActionManager, getExtension, getFrame, getIdentity, getInfoPanel, getPerspective, isClosable, refreshInfoPanel, reloadViewTab, removeBroadcastListener, removeBroadcastListener, removeListener, removeListener, selectViewTab, sendRequest, sendRequest, showError, toggleContainer, toString
protected javax.swing.JTextArea infoLabel
protected javax.swing.JPanel contentPanel
public void init(javax.swing.JComponent container)
View
view
to layout its visible parts. From the moment
of this call until #close()
is called this View
is allowed
to take complete ownership if the provided container
. Due to the
nature of Swing's component hierarchy it is possible for a View
object
to access components outside its root
container but this is not
recommended! The basic job to be done within this method is to add components
to the container
and to resize it if needed.
This method will always be called on the EventDispatchThread
!
init
in class View
View.init(javax.swing.JComponent)
public de.ims.icarus.ui.view.AWTPresenter.TableBasedPresenter getPresenter()
public void close()
View
View
to release all its resources and
return ownership of the JComponent
it was provided with
on the initial call to #init(JComponent)
. After this
method is called the View
object is considered unusable
and will no longer be accessible from its previous Perspective
context! If an implementation encounters an error that renders it
unable to release some of its resources (e.g. threads still running
in the background) then it should throw a CorruptedStateException
so the enclosing Perspective
can handle this by presenting
the user some kind of feedback that suggests him to exit the program
or that at least informs him about the unusual state and the possible
problems that may result from it. The default implementation only
clears the container component of all its child components to fasten
the release of ui-resources.protected void showInfo(java.lang.String text)
protected void setPresenter(de.ims.icarus.ui.view.AWTPresenter.TableBasedPresenter presenter)
protected void displayData(java.lang.Object data, de.ims.icarus.util.Options options)
protected de.ims.icarus.util.mpi.ResultMessage handleRequest(de.ims.icarus.util.mpi.Message message) throws java.lang.Exception
Commands.DISPLAY
Commands.PRESENT
Commands.CLEAR
handleRequest
in class View
java.lang.Exception
View.handleRequest(de.ims.icarus.util.mpi.Message)