|
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.form.FormService
public class FormService
The implementation of the form service of a document.
Constructor Summary | |
---|---|
FormService(IDocument document,
com.sun.star.drawing.XDrawPage xDrawPage)
Constructs new FormService. |
Method Summary | |
---|---|
IFormComponent[] |
getFormComponents()
Returns all form components contained in this component. |
java.lang.String[] |
getFormComponentsNames()
Returns all form components names contained in this component. |
IForm[] |
getForms(java.lang.String formName)
Returns the forms for the given form name as an array. |
int |
getIndexInForm(IForm form,
IFormComponent formComponent)
Returns the index of the given form component in the given form, or -1 if not found. |
com.sun.star.script.XEventAttacherManager |
getXEventAttacherManager(IForm form)
Returns the OpenOffice.org XEventAttacherManager interface for the given form, or null if not available. |
boolean |
hasFormComponents()
Returns if the component contains other form components. |
boolean |
hasForms()
Returns if the component has forms. |
void |
removeFormComponent(IFormComponent formComponent)
Removes the given form component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormService(IDocument document, com.sun.star.drawing.XDrawPage xDrawPage) throws java.lang.IllegalArgumentException
document
- the document of the servicexDrawPage
- the OpenOffice.org XDrawPage interface to be used
java.lang.IllegalArgumentException
- if the submitted document or the OpenOffice.org XFormsSupplier interface
is not validMethod Detail |
---|
public IForm[] getForms(java.lang.String formName) throws NOAException
getForms
in interface IFormService
formName
- the form name to be used
NOAException
- if the return of forms failspublic com.sun.star.script.XEventAttacherManager getXEventAttacherManager(IForm form) throws NOAException
getXEventAttacherManager
in interface IFormService
form
- the form to be used
NOAException
- if the return of OpenOffice.org XEventAttacherManager interface failspublic int getIndexInForm(IForm form, IFormComponent formComponent) throws NOAException
getIndexInForm
in interface IFormService
form
- the form to check index informComponent
- the form component to get index for
NOAException
- if anything failspublic boolean hasForms() throws NOAException
hasForms
in interface IFormService
NOAException
- if the check failspublic boolean hasFormComponents() throws NOAException
hasFormComponents
in interface IFormService
NOAException
- if the check failspublic IFormComponent[] getFormComponents() throws NOAException
getFormComponents
in interface IFormService
NOAException
- if the return failspublic java.lang.String[] getFormComponentsNames() throws NOAException
getFormComponentsNames
in interface IFormService
NOAException
- if the return failspublic void removeFormComponent(IFormComponent formComponent) throws NOAException
removeFormComponent
in interface IFormService
formComponent
- the form component to remove
NOAException
- if the remove 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 |