|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectViewPart
ch.elexis.developer.resources.view.SampleView
public class SampleView
This is a sample view to demonstrate how to connect to elexis's event scheduler and how to display elexis's data types. We implement IActivationListener to be informed, wenn the user can see our View. All UI funktions should only be active in that case.
Field Summary | |
---|---|
static java.lang.String |
ID
We make a String constant for the ID to reference it from the perspective |
Constructor Summary | |
---|---|
SampleView()
|
Method Summary | |
---|---|
void |
activation(boolean mode)
From IActivationListener: the view was activated or inactivated |
void |
createPartControl(Composite parent)
This is the right place to create all UI elements. |
void |
dispose()
On disposal,the IActivationListener MUST be unregistered. |
java.lang.String |
load(java.lang.Object param)
Load the dependent data from the backing store |
void |
setFocus()
|
void |
store(java.lang.String data,
java.lang.Object param)
Store data transparently to the IPersistenceProvider's backing store |
void |
visible(boolean mode)
From IActivationListener: The View changes visibility. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
Constructor Detail |
---|
public SampleView()
Method Detail |
---|
public void createPartControl(Composite parent)
public void dispose()
public void setFocus()
public void activation(boolean mode)
activation
in interface GlobalEventDispatcher.IActivationListener
mode
- public void visible(boolean mode)
visible
in interface GlobalEventDispatcher.IActivationListener
mode
- true: the view becomes visible. false: the view becomes invisiblepublic void store(java.lang.String data, java.lang.Object param) throws PersistenceException
IPersistenceProvider
store
in interface IPersistenceProvider
data
- the data to store. The IPersistenceProvider must be able to reconstruct the data from the String retrieved by load()param
- a implememntation dependent parameter. Can be null or any arbitrary object
PersistenceException
- if the data could not be stored correctlystore the contents of the SimpleStructuredDocument (wich is in the BaseRichTextDisplay)
public java.lang.String load(java.lang.Object param) throws PersistenceException
IPersistenceProvider
load
in interface IPersistenceProvider
param
- an implementation depoendent parameter. Can be null or any arbitrary Object
PersistenceException
- if the data coulkd not be read correctlyload text from the REMARK field into the SimpleStructuredDocument that backs the BaseRichTextDisplay
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |