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

ag.ion.bion.officelayer.util
Class VariableTextFieldHelper

java.lang.Object
  extended by ag.ion.bion.officelayer.util.VariableTextFieldHelper

public final class VariableTextFieldHelper
extends java.lang.Object

Helper for variable text fields.


Method Summary
static void applyNumberFormat(INumberFormat numberFormat, ITextField variableTextField, boolean isFormula, INumberFormatService numberFormatService)
          Applies the given number format to the given variable text field.
static void setContent(java.lang.String content, ITextField variableTextField, boolean isFormula, INumberFormatService numberFormatService)
          Sets the given content to the given variable text field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setContent

public static void setContent(java.lang.String content,
                              ITextField variableTextField,
                              boolean isFormula,
                              INumberFormatService numberFormatService)
                       throws NOAException
Sets the given content to the given variable text field.

Parameters:
content - the content to be set
variableTextField - the variable text field to set content for
isFormula - if the content is a formula
numberFormatService - the number format service to be used
Throws:
NOAException - if setting the content fails

applyNumberFormat

public static void applyNumberFormat(INumberFormat numberFormat,
                                     ITextField variableTextField,
                                     boolean isFormula,
                                     INumberFormatService numberFormatService)
                              throws NOAException
Applies the given number format to the given variable text field.

Parameters:
numberFormat - the number format to be set
variableTextField - the variable text field to set number forma for
isFormula - if the variable text field is a formula
numberFormatService - the number format service to be used
Throws:
NOAException - if setting the number format fails

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