|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectag.ion.bion.officelayer.internal.text.TextFieldService
public class TextFieldService
Textfield service of a text document.
Field Summary |
---|
Fields inherited from interface ag.ion.bion.officelayer.text.ITextFieldService |
---|
ANNOTATION_TEXTFIELD_ID, PLACEHOLDER_TEXTFIELD_ID, USER_TEXTFIELD_ID, USER_TEXTFIELD_MASTER_ID, VARIABLES_TEXTFIELD_ID, VARIABLES_TEXTFIELD_MASTER_ID |
Constructor Summary | |
---|---|
TextFieldService(ITextDocument textDocument)
Constructs new TextFieldService. |
Method Summary | |
---|---|
ITextField |
addUserTextField(java.lang.String name,
java.lang.String content)
Adds new user textfield. |
ITextField |
createPlaceholderTextField(java.lang.String name,
java.lang.String hint,
short placeholderType)
Creates a new placeholder textfield. |
IVariableTextFieldMaster |
createVariableTextFieldMaster(java.lang.String name,
short variableType)
Creates a new variable textfield master and returns it, or returns the one that already exists, if it does. |
ITextField[] |
getPlaceholderFields()
Returns all available placeholder textfields. |
ITextFieldMaster |
getUserTextFieldMaster(java.lang.String name)
Returns master of a user textfield with the submitted name. |
ITextFieldMaster[] |
getUserTextFieldMasters(java.lang.String prefix)
Returns masters of the user textfields with the submitted name prefix. |
ITextFieldMaster[] |
getUserTextFieldMasters(java.lang.String prefix,
java.lang.String suffix)
Returns masters of the user textfields with the submitted name prefix and suffix. |
ITextField[] |
getUserTextFields()
Returns all available user textfields. |
ITextField[] |
getVariableFields(java.lang.String prefix)
Returns all available variable textfields with the submitted name prefix. |
IVariableTextFieldMaster |
getVariableTextFieldMaster(java.lang.String masterName)
Returns master of the variables text fields with the submitted name, or null if not availbale. |
IVariableTextFieldMaster[] |
getVariableTextFieldMasters(java.lang.String prefix)
Returns all masters of the variables text fields with the submitted name prefix. |
void |
refresh()
Refreshes all textfields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextFieldService(ITextDocument textDocument)
textDocument
- text document to be used
java.lang.IllegalArgumentException
- if the OpenOffice.org interface is not validMethod Detail |
---|
public ITextFieldMaster getUserTextFieldMaster(java.lang.String name) throws TextException
getUserTextFieldMaster
in interface ITextFieldService
name
- name of the master of the user textfield
TextException
- if the user text field can not be providedpublic ITextFieldMaster[] getUserTextFieldMasters(java.lang.String prefix) throws TextException
getUserTextFieldMasters
in interface ITextFieldService
prefix
- name prefix to be used
TextException
- if the masters of the user textfields can not be constructedpublic ITextFieldMaster[] getUserTextFieldMasters(java.lang.String prefix, java.lang.String suffix) throws TextException
getUserTextFieldMasters
in interface ITextFieldService
prefix
- name prefix to be usedsuffix
- name suffix to be used
TextException
- if the masters of the user textfields can not be constructedpublic ITextField addUserTextField(java.lang.String name, java.lang.String content) throws TextException
addUserTextField
in interface ITextFieldService
name
- name of the textfieldcontent
- content of the textfield
TextException
- if any error occurs during textfield creationpublic ITextField[] getUserTextFields() throws TextException
getUserTextFields
in interface ITextFieldService
TextException
- if the user textfields can not be constructedpublic ITextField[] getPlaceholderFields() throws TextException
getPlaceholderFields
in interface ITextFieldService
TextException
- if the placeholder textfields can not be constructedpublic ITextField createPlaceholderTextField(java.lang.String name, java.lang.String hint, short placeholderType) throws TextException
createPlaceholderTextField
in interface ITextFieldService
name
- name of the placeholder textfieldhint
- the hint of the placeholder textfield, may be nullplaceholderType
- the type of the placeholder found in static
members of com.sun.star.text.PlaceholderType (i.e. PlaceholderType.TEXT)
TextException
- if any error occurs during placeholder textfield creationpublic IVariableTextFieldMaster getVariableTextFieldMaster(java.lang.String masterName) throws TextException
getVariableTextFieldMaster
in interface ITextFieldService
masterName
- name of the master to return
TextException
- if the master can not be returnedpublic IVariableTextFieldMaster[] getVariableTextFieldMasters(java.lang.String prefix) throws TextException
getVariableTextFieldMasters
in interface ITextFieldService
prefix
- name prefix to be used
TextException
- if the masters can not be returnedpublic IVariableTextFieldMaster createVariableTextFieldMaster(java.lang.String name, short variableType) throws TextException
createVariableTextFieldMaster
in interface ITextFieldService
name
- name of the variable textfield mastervariableType
- the type of the variable master found in static
members of com.sun.star.text.SetVariableType (i.e. SetVariableType.STRING)
TextException
- if any error occurs during variable textfield master creationpublic ITextField[] getVariableFields(java.lang.String prefix) throws TextException
getVariableFields
in interface ITextFieldService
prefix
- name prefix to be used
TextException
- if the variable textfields can not be constructedpublic void refresh() throws TextException
refresh
in interface ITextFieldService
TextException
- if refresh fails
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |