ch.elexis.agenda.ui
Class BaseView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
ch.elexis.agenda.ui.BaseView
- All Implemented Interfaces:
- GlobalEventDispatcher.IActivationListener, Heartbeat.HeartListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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
- Direct Known Subclasses:
- AgendaParallel, AgendaWeek
public abstract class BaseView
- extends org.eclipse.ui.part.ViewPart
- implements Heartbeat.HeartListener, GlobalEventDispatcher.IActivationListener
Abstract base class for an agenda window.
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
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, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setFocus, 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, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
newTerminAction
public org.eclipse.jface.action.IAction newTerminAction
blockAction
public org.eclipse.jface.action.IAction blockAction
dayLimitsAction
public org.eclipse.jface.action.IAction dayLimitsAction
newViewAction
public org.eclipse.jface.action.IAction newViewAction
printAction
public org.eclipse.jface.action.IAction printAction
exportAction
public org.eclipse.jface.action.IAction exportAction
importAction
public org.eclipse.jface.action.IAction importAction
printPatientAction
public org.eclipse.jface.action.IAction printPatientAction
todayAction
public org.eclipse.jface.action.IAction todayAction
agenda
protected Activator agenda
BaseView
public BaseView()
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.WorkbenchPart
create
protected abstract void create(org.eclipse.swt.widgets.Composite parent)
refresh
protected abstract void refresh()
getSelection
protected abstract IPlannable getSelection()
checkDay
protected void checkDay(java.lang.String resource,
TimeTool date)
updateActions
protected void updateActions()
heartbeat
public void heartbeat()
- Description copied from interface:
Heartbeat.HeartListener
- Die Methode heartbeat wird in "einigermassen" regelmässigen (aber nicht garantiert immer
genau identischen) Abständen aufgerufen
- Specified by:
heartbeat
in interface Heartbeat.HeartListener
activation
public void activation(boolean mode)
- Specified by:
activation
in interface GlobalEventDispatcher.IActivationListener
visible
public void visible(boolean mode)
- Specified by:
visible
in interface GlobalEventDispatcher.IActivationListener
getPixelPerMinute
public static double getPixelPerMinute()
- Return the scale factor, i.e. the number of Pixels to use for one minute.
- Returns:
- thepixel-per-minute scale.
makeActions
protected void makeActions()