Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.privatrechnung.rechnung
Class RechnungsDrucker

java.lang.Object
  extended by ch.elexis.privatrechnung.rechnung.RechnungsDrucker
All Implemented Interfaces:
IRnOutputter

public class RechnungsDrucker
extends java.lang.Object
implements IRnOutputter


Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.elexis.util.IRnOutputter
IRnOutputter.TYPE
 
Field Summary
 
Fields inherited from interface ch.elexis.util.IRnOutputter
PROP_OUTPUT_METHOD
 
Constructor Summary
RechnungsDrucker()
           
 
Method Summary
 boolean canBill(Fall fall)
          We'll take all sorts of bills
 boolean canStorno(Rechnung rn)
          We never storno
 Control createSettingsControl(Composite parent)
          Create the Control that will be presented to the user before selecting the bill output target.
 Result<Rechnung> doOutput(IRnOutputter.TYPE type, java.util.Collection<Rechnung> rnn, java.util.Properties props)
          Print the bill(s)
 java.lang.String getDescription()
          A short textual description for this output (as Label)
 void saveComposite()
          Methode is called before dialog is closed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RechnungsDrucker

public RechnungsDrucker()
Method Detail

canBill

public boolean canBill(Fall fall)
We'll take all sorts of bills

Specified by:
canBill in interface IRnOutputter
Parameters:
fall - the case to check
Returns:
true if we can send a bill from this case

canStorno

public boolean canStorno(Rechnung rn)
We never storno

Specified by:
canStorno in interface IRnOutputter
Parameters:
rn - the specific bill to cancel or null, if it is just a general question
Returns:
true if this outputter wants to be informed if this (or any in case of Rn==null) bill is cancelled. If an outputter does need to react on storno messages, it should return false.

createSettingsControl

public Control createSettingsControl(Composite parent)
Create the Control that will be presented to the user before selecting the bill output target. Here we simply chose a template to use for the bill. In fact we need two templates: a template for the page with summary and giro and a template for the other pages

Specified by:
createSettingsControl in interface IRnOutputter
Returns:

doOutput

public Result<Rechnung> doOutput(IRnOutputter.TYPE type,
                                 java.util.Collection<Rechnung> rnn,
                                 java.util.Properties props)
Print the bill(s)

Specified by:
doOutput in interface IRnOutputter
Parameters:
type - Type of the bill
rnn - collection with all bills to process
props - properties for various purposes. Can be null.
Returns:
a result indicating errors

getDescription

public java.lang.String getDescription()
Description copied from interface: IRnOutputter
A short textual description for this output (as Label)

Specified by:
getDescription in interface IRnOutputter

saveComposite

public void saveComposite()
Description copied from interface: IRnOutputter
Methode is called before dialog is closed. Used to save the widget contents before the composite is disposed;

Specified by:
saveComposite in interface IRnOutputter

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis