Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.dialogs
Class DocumentSelectDialog

java.lang.Object
  extended by TitleAreaDialog
      extended by ch.elexis.dialogs.DocumentSelectDialog

public class DocumentSelectDialog
extends TitleAreaDialog

Select a Document or a template Usage: DocumentSelector dsl=new DocumentSelector(shell,mandant,TYPE_xxx); if(dsl.open()==Dialog.OK){ doSomethingWith(dsl.result); }

Author:
gerry

Field Summary
static int TYPE_CREATE_DOC_WITH_TEMPLATE
          create a new document using one of the templates of the given mandator
static int TYPE_LOAD_DOCUMENT
          select an existing document out of the list of all documtents of the given mandator
static int TYPE_LOAD_SYSTEMPLATE
          open a system template of the given mandator for editing or export
static int TYPE_LOAD_TEMPLATE
          open a user template of the given mandator for editing or export
 
Constructor Summary
DocumentSelectDialog(Shell shell, Person p, int typ)
          Create a new DocumentSelector.
 
Method Summary
 void create()
           
 java.lang.String getBetreff()
           
 Brief getSelectedDocument()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_LOAD_DOCUMENT

public static final int TYPE_LOAD_DOCUMENT
select an existing document out of the list of all documtents of the given mandator

See Also:
Constant Field Values

TYPE_CREATE_DOC_WITH_TEMPLATE

public static final int TYPE_CREATE_DOC_WITH_TEMPLATE
create a new document using one of the templates of the given mandator

See Also:
Constant Field Values

TYPE_LOAD_TEMPLATE

public static final int TYPE_LOAD_TEMPLATE
open a user template of the given mandator for editing or export

See Also:
Constant Field Values

TYPE_LOAD_SYSTEMPLATE

public static final int TYPE_LOAD_SYSTEMPLATE
open a system template of the given mandator for editing or export

See Also:
Constant Field Values
Constructor Detail

DocumentSelectDialog

public DocumentSelectDialog(Shell shell,
                            Person p,
                            int typ)
Create a new DocumentSelector. If the user clicks OK, the selected Brief will be in result.

Parameters:
p - the mandator whose templates/letters should be displayed
typ - type of the selector to display (see TYPE_ constants)
Method Detail

create

public void create()

getSelectedDocument

public Brief getSelectedDocument()

getBetreff

public java.lang.String getBetreff()

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis