Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.unibe.iam.scg.archie.ui.views
Class Dashboard

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by ch.unibe.iam.scg.archie.ui.views.Dashboard
All Implemented Interfaces:
ElexisEventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.core.runtime.jobs.IJobChangeListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class Dashboard
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.core.runtime.jobs.IJobChangeListener, ElexisEventListener

The Dashboard View gives a general Overview of the Elexis System. E.g. How many patients and consultations are in the system, what is the age distribution of patients etc.

$Id$


Field Summary
static java.lang.String ID
          ID of this view.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
Dashboard()
          Creates a Dashboard
 
Method Summary
 void aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
          
 void awake(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
          
 void catchElexisEvent(ElexisEvent ev)
          An Event was fired
 void createCharts()
          This method starts the chart creation.
 void createPartControl(org.eclipse.swt.widgets.Composite composite)
           
 void done(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
           
 ElexisEvent getElexisEventFilter()
          Filter the events this listener wants to be informed.
 void redrawCharts()
          Redraws the charts in the dashboard.
 void running(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
          
 void scheduled(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
          
 void setFocus()
           
 void sleeping(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
          
 void updateOverview()
          Triggers the update mechanism of the upper part of the dashboard containing the system overview.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final java.lang.String ID
ID of this view.

See Also:
Constant Field Values
Constructor Detail

Dashboard

public Dashboard()
Creates a Dashboard

Method Detail

redrawCharts

public void redrawCharts()
Redraws the charts in the dashboard.


updateOverview

public void updateOverview()
Triggers the update mechanism of the upper part of the dashboard containing the system overview. This function should be called when the overview should refresh (e.g. after DB changes) without having to restart the program.


createCharts

public void createCharts()
This method starts the chart creation. It starts running the jobs of each chart container creator on demand.


createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite composite)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

done

public void done(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
Specified by:
done in interface org.eclipse.core.runtime.jobs.IJobChangeListener
See Also:
org.eclipse.core.runtime.jobs.IJobChangeListener#done(org.eclipse.core .runtime.jobs.IJobChangeEvent)

scheduled

public void scheduled(org.eclipse.core.runtime.jobs.IJobChangeEvent event)

Specified by:
scheduled in interface org.eclipse.core.runtime.jobs.IJobChangeListener

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.setFocus()

aboutToRun

public void aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent event)

Specified by:
aboutToRun in interface org.eclipse.core.runtime.jobs.IJobChangeListener

awake

public void awake(org.eclipse.core.runtime.jobs.IJobChangeEvent event)

Specified by:
awake in interface org.eclipse.core.runtime.jobs.IJobChangeListener

running

public void running(org.eclipse.core.runtime.jobs.IJobChangeEvent event)

Specified by:
running in interface org.eclipse.core.runtime.jobs.IJobChangeListener

sleeping

public void sleeping(org.eclipse.core.runtime.jobs.IJobChangeEvent event)

Specified by:
sleeping in interface org.eclipse.core.runtime.jobs.IJobChangeListener

catchElexisEvent

public void catchElexisEvent(ElexisEvent ev)
Description copied from interface: ElexisEventListener
An Event was fired

Specified by:
catchElexisEvent in interface ElexisEventListener
Parameters:
ev - the Event

getElexisEventFilter

public ElexisEvent getElexisEventFilter()
Description copied from interface: ElexisEventListener
Filter the events this listener wants to be informed. Note: This call should complete as fast as possible, because it will be called with every event before dispatching

Specified by:
getElexisEventFilter in interface ElexisEventListener
Returns:
An ElexisEvent with matching
  • object: Only events of this object will be sent
  • class: Only events of this class will be sent
  • type: Only eevnts matching to one ore more flags in type will be sent

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013