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

waelti.statistics.actions
Class NewQueryAction

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.AbstractAction
          extended by org.eclipse.jface.action.Action
              extended by waelti.statistics.actions.NewQueryAction
All Implemented Interfaces:
BackgroundJob.BackgroundJobListener, org.eclipse.jface.action.IAction
Direct Known Subclasses:
RefreshQueryAction

public class NewQueryAction
extends org.eclipse.jface.action.Action
implements BackgroundJob.BackgroundJobListener

This action is responsible for the whole procedure of creating a new query: getting all information needed of the user, starting the query in the background and updating the view in the end.


Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
NewQueryAction()
          constructor
NewQueryAction(OutputView view)
          Standard constructor which should be used normally.
 
Method Summary
protected  AbstractQuery getConfiguredQuery()
           
protected  void getInput()
          Opens a dialog which asks the user to define a new query which then is set by the opened dialog to this.configuredQuery.
protected  OutputView getView()
           
 void jobFinished(BackgroundJob j)
          This action is enabled as soon as the last job finished.
 void run()
           
 void setConfiguredQuery(AbstractQuery configuredQuery)
           
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
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.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

NewQueryAction

public NewQueryAction()
constructor


NewQueryAction

public NewQueryAction(OutputView view)
Standard constructor which should be used normally.

Method Detail

run

public void run()
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

getInput

protected void getInput()
Opens a dialog which asks the user to define a new query which then is set by the opened dialog to this.configuredQuery. If null, the user aborted.


jobFinished

public void jobFinished(BackgroundJob j)
This action is enabled as soon as the last job finished.

Specified by:
jobFinished in interface BackgroundJob.BackgroundJobListener

setConfiguredQuery

public void setConfiguredQuery(AbstractQuery configuredQuery)

getView

protected OutputView getView()

getConfiguredQuery

protected AbstractQuery getConfiguredQuery()

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