public class XFormsDef
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICON_BIG |
static java.lang.String |
ICON_MID |
static java.lang.String |
ICON_SMALL |
Constructor and Description |
---|
XFormsDef()
Deprecated.
use XFormsDef( node )
|
XFormsDef(Document document)
Deprecated.
use XFormsDef( node )
|
XFormsDef(Document document,
int xformsDefintion)
Deprecated.
use XFormsDef( node )
|
XFormsDef(int xformsDefinition)
Constructor of an xform definition.
|
Modifier and Type | Method and Description |
---|---|
int |
addAction(int node,
java.lang.String name,
java.lang.String source)
Adds an action event to an element
|
int |
addAction(int node,
java.lang.String name,
java.lang.String source,
java.lang.String assignmentsXML)
Adds an action event to an element
|
int |
addButton(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds a button to a button controlbox.
|
int |
addButtonControlbox(int node,
java.lang.String id,
java.lang.String layout)
Adds a button group.
|
int |
addCheckbox(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference,
java.lang.String trueValue,
java.lang.String falseValue)
Adds a checkbox
|
int |
addClickChoiceDocked(int node,
java.lang.String URL,
java.lang.String caption,
java.lang.String formID,
java.lang.String formCaption,
java.lang.String formDescription,
java.lang.String model,
java.lang.String[] parameters,
java.lang.String frame)
Adds a docked click choice option to the node.
|
int |
addClickChoiceDocked(int node,
XFormsDef ccXForm,
java.lang.String caption,
java.lang.String formID,
java.lang.String formCaption,
java.lang.String formDescription,
java.lang.String model,
java.lang.String[] parameters,
java.lang.String frame)
Adds a docked generated click choice option to the node.
|
int |
addClickChoiceSimple(int node,
java.lang.String URL,
java.lang.String caption,
java.lang.String model,
java.lang.String[] parameters,
int width,
int height)
Adds an undocked click choice option to the node.
|
int |
addClickChoiceSimple(int node,
XFormsDef ccXForm,
java.lang.String caption,
java.lang.String model,
java.lang.String[] parameters,
int width,
int height)
Adds an undocked generated click choice option to the node.
|
int |
addClickChoiceUnDocked(int node,
java.lang.String URL,
java.lang.String caption,
java.lang.String formID,
java.lang.String formCaption,
java.lang.String formDescription,
java.lang.String model,
java.lang.String[] parameters,
int left,
int top,
int width,
int height)
Adds an undocked click choice option to the node.
|
int |
addClickChoiceUnDocked(int node,
XFormsDef ccXForm,
java.lang.String caption,
java.lang.String formID,
java.lang.String formCaption,
java.lang.String formDescription,
java.lang.String model,
java.lang.String[] parameters,
int left,
int top,
int width,
int height)
Adds an undocked generated click choice option to the node.
|
int |
addCompositeControl(int node,
java.lang.String id)
Adds a Composite control
|
int |
addCompositeControl(int node,
java.lang.String id,
java.lang.String namespace)
Adds a Composite control
|
int |
addControlBar(int node,
boolean newButton,
boolean deleteButton,
boolean refreshButton)
Adds a controlbar to a table, groupbox or tabGroup.
|
int |
addFrame(int node,
java.lang.String urlAddress,
java.lang.String id)
Adds a frame
|
void |
addGlobalScript(java.lang.String source)
Adds a global script (allows for defining global variables).
|
int |
addGroup(int node,
java.lang.String id,
java.lang.String reference)
Adds a group, which allows other elements to be grouped together.
|
int |
addGroupBox(int node,
java.lang.String label,
java.lang.String id)
Simple visible groupbox for grouping other elements.
|
int |
addGroupBox(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference,
boolean collapsible,
boolean expanded)
Groupbox with controls for grouping other elements.
|
int |
addImage(int node,
java.lang.String id,
java.lang.String urlImage,
java.lang.String reference)
Adds an image
|
int |
addImageControlbox(int node,
java.lang.String id,
java.lang.String layout)
Adds an image group.
|
int |
addImageControlbox(int node,
java.lang.String id,
java.lang.String layout,
java.lang.String iconSize)
Adds an image group.
|
int |
addInput(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds an input to the main xform or to another element.
|
int |
addItem(int node,
java.lang.String label,
java.lang.String value)
Adds an item to a custom content select or list
|
int |
addList(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference,
boolean multiple)
Adds a list to the xform or to another element.
|
int |
addModel(java.lang.String id,
java.lang.String src,
java.lang.String businessElement,
java.lang.String type)
Adds a model to the form.
|
int |
addModel(java.lang.String id,
java.lang.String src,
java.lang.String businessElement,
java.lang.String type,
java.lang.String[] parameterLabels)
Adds a model to the form.
|
int |
addModel(java.lang.String id,
java.lang.String src,
java.lang.String businessElement,
java.lang.String type,
java.lang.String[] parameterLabels,
java.lang.String[] parameterValues)
Adds a model to the form.
|
int |
addModelAfterEBIValidate(int modelNode,
java.lang.String source)
Adds an AfterEBIValidate event to a WsAppsmodel
|
int |
addModelBeforeEBIValidate(int modelNode,
java.lang.String source)
Adds an BeforeEBIValidate event to a WsAppsmodel
|
int |
addModelOnAfterChange(int modelNode,
java.lang.String source)
Adds an OnAfterChange event to a model
|
int |
addModelOnAfterDelete(int modelNode,
java.lang.String source)
Adds an OnAfterDelete event to a model
|
int |
addModelOnAfterInsert(int modelNode,
java.lang.String source)
Adds an OnAfterInsert event to a model
|
int |
addModelOnBeforeChange(int modelNode,
java.lang.String source)
Adds an OnBeforeChange event to a model
|
int |
addModelOnBeforeDelete(int modelNode,
java.lang.String source)
Adds an OnBeforeDelete event to a model
|
int |
addModelOnBeforeInsert(int modelNode,
java.lang.String source)
Adds an OnBeforeInsert event to a model
|
int |
addModelOnBeforeSync(int modelNode,
java.lang.String source)
Adds an OnBeforeSynchronize event to a model
|
int |
addModelOnChange(int modelNode,
java.lang.String source)
Adds an OnChange event to a model
|
int |
addModelOnDataCompleted(int modelNode,
java.lang.String source)
Adds an OnDataCompleted event to a model
|
int |
addModelOnDelete(int modelNode,
java.lang.String source)
Adds an OnDelete event to a model
|
int |
addModelOnFind(int modelNode,
java.lang.String source)
Adds an OnFind event to a model
|
int |
addModelOnInsert(int modelNode,
java.lang.String source)
Adds an OnInsert event to a model
|
int |
addModelOnRequest(int modelNode,
java.lang.String source)
Adds an OnRequest event to a model
|
int |
addModelOnResponse(int modelNode,
java.lang.String source)
Adds an OnResponse event to a model
|
int |
addModelOnSOAPFault(int modelNode,
java.lang.String source)
Adds an OnSOAPFault event to a model
|
int |
addModelOnSynchronized(int modelNode,
java.lang.String source)
Adds an OnSynchronized event to a model
|
int |
addNamespaceURI(int modelNode,
java.lang.String prefix,
java.lang.String uri)
Adds a namespace node to a model
|
void |
addNode(int elementNode,
int destinationNode)
Adds a copy of a predefined node (elementNode), created with the function
createEmptyNode to the destinationNode.
|
int |
addOnAfterClick(int node,
java.lang.String source)
Adds an onafterclick event to a save, insert, delete or refresh button.
|
int |
addOnAfterZoom(int node,
java.lang.String source)
Adds an OnAfterZoom event to an element (input, output, textarea or text)
|
int |
addOnBeforeBind(int node,
java.lang.String source)
Adds an OnBeforeDataBind event to an element
|
int |
addOnBeforeClick(int node,
java.lang.String source)
Adds an onbeforeclick event to a save, insert, delete or refresh button.
|
int |
addOnBeforeClose(java.lang.String source)
Adds an onbeforeclose event to the xform.
|
int |
addOnBeforeFill(int node,
java.lang.String source)
Adds an onBeforeFill event to a select or a list
|
int |
addOnBeforeRowBind(int node,
java.lang.String source)
Adds an addOnBeforeRowBind event to a table.
|
int |
addOnBeforeSynchronizedDialogOpen(int node,
java.lang.String source)
Adds an on before synchronized dialog open event to a table with a
synchronized dialog option.
|
int |
addOnBeforeZoom(int node,
java.lang.String source)
Adds an OnBeforeZoom event to an element (input, output, textarea or
text)
|
int |
addOnChange(int node,
java.lang.String source)
Adds an OnChange event to an element
|
int |
addOnClick(int node,
java.lang.String source)
Adds an OnClick event (only for a button and image).
|
int |
addOnFocusIn(int node,
java.lang.String source)
Adds an OnFocusIn event to an element
|
int |
addOnFocusOut(int node,
java.lang.String source)
Adds an OnFocusOut event to an element
|
int |
addOnFormInit(java.lang.String source)
Adds an init event to the main form, fires when form is started
|
int |
addOnFormInitDone(java.lang.String source)
Adds an init done event to the main form, fires when form has been loaded
|
int |
addOnRowChecked(int node,
java.lang.String source)
Adds an onRowChecked event to a table.
|
int |
addOnRowSelect(int node,
java.lang.String source)
Adds an onRowSelect event to a table.
|
int |
addOnValidate(int node,
java.lang.String source)
Adds an OnValidate event to an element
|
int |
addOutput(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds an output to the xform or to another element.
|
int |
addPaginationBar(int node,
boolean firstButton,
boolean previousButton,
boolean findButton,
boolean nextButton,
boolean LastButton,
boolean showAllButton)
Adds a pagination bar to a table, groupbox or tabgroup.
|
int |
addPassword(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds an password (secret) to the xform or to another element.
|
int |
addRadio(int node,
java.lang.String label,
java.lang.String value)
Adds a radio to a radio controlbox.
|
int |
addRadioChoicebox(int node,
java.lang.String id,
java.lang.String label,
java.lang.String reference,
java.lang.String layout)
Adds a Radio group.
|
int |
addRichText(int node,
java.lang.String id,
java.lang.String label,
java.lang.Boolean isEditable)
Adds a RichText control the xform.
|
int |
addSelect(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds a select to the xform or to another element.
|
int |
addSplitter(int node,
java.lang.String type,
int offSet,
boolean takePositionIntoAccount)
Adds a splitter to a groupbox, group, mainform, tabpage or splitterpage.
|
int |
addTabGroup(int node,
java.lang.String id,
boolean tabsAtBottom)
Adds a tabgroup, for grouping tabpages.
|
int |
addTabGroup(int node,
java.lang.String id,
java.lang.String orientation,
java.lang.String textDirection)
Adds a tabgroup, for grouping tabpages.
|
int |
addTable(int node,
java.lang.String id,
java.lang.String gridtype,
boolean checkboxes,
java.lang.String reference)
Adds the basic structure of a table.
|
int |
addTabPage(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds a tabpage to a tabgroup.
|
int |
addText(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds a text (label) to the main form or to another element.
|
int |
addTextarea(int node,
java.lang.String label,
java.lang.String id,
java.lang.String reference)
Adds a textarea to the xform or to another element.
|
int |
addToolbar(boolean saveButton)
Adds a toolbar to the form.
|
int |
addToolbarButton(int node,
java.lang.String id,
java.lang.String imageURL)
Adds a custom button to a toolbar, controlbar or paginationbar.
|
int |
addToolbarSeparator(int node)
Adds a separator to the selected toolbar, controlbar or paginationbar.
|
int |
addXML(java.lang.String id,
java.lang.String textXML)
Adds XML to the xform.
|
int |
addZoom(int node,
java.lang.String zoomURL,
java.lang.String zoomField)
Adds a zoom option to an input, output, textarea or text.
|
int |
addZoom(int node,
XFormsDef zoomPage,
java.lang.String idZoomPageField)
Adds a zoom page to an input, output, textarea or text.
|
boolean |
canAddElement(int node)
Checks whether a form control/element can be added to the node.
|
void |
copyNode(int node,
int newParent)
Copies a node (and its children) to the new parent.
|
int |
createEmptyNode()
Creates an empty node.
|
void |
deleteNode(int node)
Deletes the node including its children.
|
void |
deleteSplitterNode(int node)
Delete the splitter, moves the elements in the splitterpages to the
parent of the splitter.
|
void |
enableDefaultOption(int node,
boolean isDefaultOptionEnabled) |
void |
enableLazyLoad(int node)
Enables lazy options for tab pages/group boxes.
|
void |
fillSelectWithModel(int modelNode,
int elementNode,
java.lang.String description,
java.lang.String value)
Links a model with a select or a list, to fill the options of the select
or list.
|
static java.lang.String |
generateURLForOLD(java.lang.String url)
For OLD Support correcting the absolute URLs
|
int[] |
getAllChildren(int node)
Returns an integer array with all the children (elements) that have been
added to this node.
|
Document |
getDocument()
Deprecated.
Use NOMDocumentPool.getInstance().lendDocument()
|
java.lang.String |
getLayout(int node)
Gets the default layout of mainform, groupbox, group, tabpage,
splitterpage.
|
java.lang.String |
getLayoutElement(int node)
Gets the layout of an element.
|
int |
getMainForm()
Finds the node of the main form/root.
|
int |
getSplitterPage(int node,
java.lang.String type)
Returns the splitter page, which is automatically create when a splitter
is added to a group
|
int |
getToolbarButton(int node,
java.lang.String buttonType)
Get a standard button from a toolbar, controlbar or paginationbar.
|
int |
getXFormsDefinition()
Gets the node of the xform created.
|
void |
hideGroupBoxHeader(int node)
Hides the header of a groupbox
|
int |
linkJavaScript(java.lang.String scriptURL)
Adds a link to a javascript source
|
void |
linkModelWithElement(int modelNode,
int elementNode)
Links a model to an element.
|
int |
linkStyleSheet(java.lang.String styleSheetURL)
Adds a link to a style sheet
|
void |
moveNode(int node,
int newParent)
Moves a node (and its children) from its current parent, to a new parent
|
void |
setAnchor(int node,
java.lang.String leftValue,
java.lang.String topValue,
java.lang.String rightValue,
java.lang.String bottomValue)
Sets the anchors of a control.
|
void |
setAssociatedModel(int mainModelNode,
int subModelNode)
The subModel will be associated with the mainModel.
|
void |
setAssociatedModel(int mainModelNode,
int subModelNode,
boolean isSingleTransaction)
The subModel will be associated with the mainModel.
|
void |
setAssociatedReference(int subModelNode,
java.lang.String parameterField,
java.lang.String referenceField)
The references of the parameters of a subModel are set, to the
referenceField.
|
void |
setAutoInsert(int node,
java.lang.Boolean autoInsert)
AutoInsert
|
void |
setColumnSortable(int node,
java.lang.Boolean columnSortable)
ColumnSortable
|
void |
setColumnsTableWidthAutomatic(int node)
This function automatically sets the size of the columns in a table to
equal width, such that the width of all the columns equal the width of
the entier table.
|
void |
setDefaultOption(int node,
java.lang.String defaultOption) |
void |
setDisplayContextMenu(int node,
java.lang.Boolean displayContextMenu)
DisplayContextMenu
|
boolean |
setEBIInitializeValueSets(int selectNode,
int isInitializeValueSets)
To enable InitializeValueSets for select controls select node should
attach to any one EBI model.
|
boolean |
setEBIModel(int modelNode,
boolean isEBIModelValue,
boolean isConstraintValidation,
boolean isApplyAccessControl,
boolean isInitializationRequired) |
boolean |
setEBIValidation(int control,
boolean isConstraintValidation)
For input,checkbox,select,password,textarea controls EBI validation
property can be set.
|
void |
setEnumerated(int node,
boolean enumerated)
Set the enumerated parameter of a list or select box.
|
void |
setFocusAtStartup(boolean setFocus)
Sets the parameter focusAtStartup.
|
void |
setFormatSetMaxValue(int node,
double maxValue)
Sets the maximum value of an integer, float or amount field
|
void |
setFormatSetMinValue(int node,
double minValue)
Sets the minimum value of an integer, float or amount field
|
void |
setFormatToAmount(int node,
boolean required,
java.lang.String textAlignment,
java.lang.String locale,
java.lang.String displayformat,
java.lang.String negativePattern,
java.lang.String positivePattern,
java.lang.String currency,
int numberOfDecimals)
Sets the format of the element to an amount.
|
void |
setFormatToCreditcard(int node,
boolean required,
java.lang.String textAlignment)
Sets the field to creditcard format.
|
void |
setFormatToDate(int node,
boolean required,
java.lang.String textAlignment,
java.lang.String locale,
java.lang.String displayformat,
java.lang.String timeZone)
Sets the format of the element to a date.
|
void |
setFormatToFloat(int node,
boolean required,
java.lang.String textAlignment,
java.lang.String locale,
java.lang.String displayformat,
java.lang.String negativePattern,
int numberOfDecimals)
Sets the format of the element to a float.
|
void |
setFormatToInteger(int node,
boolean required,
java.lang.String textAlignment,
java.lang.String locale,
java.lang.String displayformat,
java.lang.String negativePattern)
Sets the format of the element to an integer.
|
void |
setFormatToMail(int node,
boolean required,
java.lang.String textAlignment)
Sets the format of the element to an e-mail format.
|
void |
setFormatToString(int node,
boolean required,
java.lang.String textAlignment,
int minLength,
int maxLength,
java.lang.String legalCharacters,
java.lang.String illegalCharacters)
Sets the format of the element to a string.
|
void |
setFreePositioning(int node,
boolean freePositioning)
Independent of the layout of the parent, each element can be set to
freePositioning.
|
void |
setLabelAlignment(int node,
java.lang.String alignment,
boolean setAlignmentOfSubElements)
Sets the alignment of the label of an element, or sets the default
alignment of a groupbox, group, tabpage, main form or splitgroup.
|
void |
setLayout(int node,
java.lang.String layout)
Sets the default layout of mainform, groupbox, group, tabpage,
splitterpage.
|
void |
setloadOnDemand(int node,
java.lang.Boolean loadOnDemand)
loadOnDemand
|
void |
setMinRows(int node,
int minRows)
MinRows
|
void |
setModelProperties(int modelNode,
boolean automatic,
boolean nonTransactional,
boolean promptToSave,
java.lang.String gateway,
java.lang.String receiver,
int timeout)
Sets some extra properties of a model.
|
void |
setMovableColumns(int node,
java.lang.Boolean movableColumns)
MovableColumns
|
void |
setNextMethodOfModel(int modelNode,
java.lang.String src)
Adds a next method to a model, to retrieve the next set of records/data
from the back end from the GET position.
|
void |
setPosition(int node,
int x_coordinate,
int y_coordinate)
Sets the position of an element to x,y coordinates.
|
void |
setPreviousMethodOfModel(int modelNode,
java.lang.String src)
Adds a previous method to model, to retrieve the previous set of
records/data from the back end from the GET position.
|
void |
setResizable(int node,
java.lang.Boolean resizable)
Resizable
|
void |
setSaveGridState(int node,
java.lang.Boolean saveGridState)
SaveGridState
|
void |
setShowSingleTab(int node,
java.lang.Boolean showSingleTab)
ShowSingleTab
|
void |
setSize(int node,
int width,
int height)
Sets the size of an element
|
void |
setSize(int node,
java.lang.String width,
java.lang.String height)
Sets the size of an element.
|
void |
setSizeLabel(int node,
int width)
Sets the width of the label of an input, output, password, textarea,
select or list.
|
void |
setStyleClass(int node,
java.lang.String styleClassName)
Sets the style class of an element
|
void |
setSynchronizedDialogDocked(int node,
java.lang.String dialogXForm,
java.lang.String dialogFrame,
java.lang.String dialogID,
java.lang.String dialogCaption,
java.lang.String dialogDescription)
Adds a docked synchronized dialog to a table.
|
void |
setSynchronizedDialogDocked(int node,
XFormsDef xfDialog,
java.lang.String dialogFrame,
java.lang.String dialogID,
java.lang.String dialogCaption,
java.lang.String dialogDescription)
Adds a docked synchronized dialog to a table.
|
void |
setSynchronizedDialogNotDocked(int node,
java.lang.String dialogXForm,
java.lang.String dialogID,
java.lang.String dialogCaption,
java.lang.String dialogDescription,
int dialogLeft,
int dialogTop,
int dialogWidth,
int dialogHeight,
boolean newWindow)
Adds an undocked synchronized dialog to a table.
|
void |
setSynchronizedDialogNotDocked(int node,
XFormsDef xfDialog,
java.lang.String dialogID,
java.lang.String dialogCaption,
java.lang.String dialogDescription,
int dialogLeft,
int dialogTop,
int dialogWidth,
int dialogHeight,
boolean newWindow)
Adds an undocked synchronized dialog to a table.
|
void |
setSynchronizedDialogSimple(int node,
java.lang.String dialogXForm,
int dialogWidth,
int dialogHeight)
Adds a synchronized dialog to a table, with a minimum of parameters.
|
void |
setSynchronizedDialogSimple(int node,
XFormsDef xfDialog,
int dialogWidth,
int dialogHeight)
Adds a synchronized dialog to a table, with a minimum of parameters.
|
void |
setTabIndex(int node,
int tabIndex)
Sets the tabIndex of the node.
|
void |
setToggleColumns(int node,
java.lang.Boolean toggleColumns)
ToggleColumns
|
void |
setTooltip(int node,
java.lang.String tooltip)
Adds a tooltip to an element.
|
void |
setXFormsVersion(java.lang.String version)
Sets the xforms version, XForms Version can be either be 1 or 2.
|
java.lang.String |
toString() |
public static final java.lang.String ICON_SMALL
public static final java.lang.String ICON_MID
public static final java.lang.String ICON_BIG
@Deprecated public XFormsDef()
@Deprecated public XFormsDef(Document document)
document
- Document object@Deprecated public XFormsDef(Document document, int xformsDefintion)
document
- Document objectxformsDefintion
- This node should be valid xforms defintion.public XFormsDef(int xformsDefinition)
xformsDefintion
- This node should be valid xforms defintion.public int getXFormsDefinition()
public int getMainForm()
@Deprecated public Document getDocument()
public void setXFormsVersion(java.lang.String version)
version
- string with the version number or description of the xformpublic void setFocusAtStartup(boolean setFocus)
setFocus
- true: the first elemnt in the form gets a focus when form is
started. False: no element gets focus when startedpublic int addText(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label description.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be "".public int addInput(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model it should be "".public int addPassword(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model it should be "".public int addOutput(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be "".public int addTextarea(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be "".public int addRichText(int node, java.lang.String id, java.lang.String label, java.lang.Boolean isEditable)
node
- of the parent where this element is added.id
- of this elementlabel
- string with label descriptionisEditable
- enable the runtime editing for the richtextpublic int addButtonControlbox(int node, java.lang.String id, java.lang.String layout)
node
- of the parent where this element is added.id
- of this elementlayout
- determines the positioning of buttons. Either "vertical" or
"horizontal". "Vertical" is default.public int addButton(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- of the button controlbox.label
- description which appears on the buttonid
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be ""public int addRadioChoicebox(int node, java.lang.String id, java.lang.String label, java.lang.String reference, java.lang.String layout)
node
- of the parent where this element is added.id
- of this elementreference
- name of the datasource field (when a model is attached). When
there will be no model, it should be ""layout
- determines the positioning of buttons. Either "vertical" or
"horizontal". "Vertical" is default.public int addRadio(int node, java.lang.String label, java.lang.String value)
node
- of the radio button.label
- description which appears on the radio buttonid
- identifier of this element.public int addSelect(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field, which determines the shown value
(when a model is attached). When there will be no model, it
has to be set to ""public int addList(int node, java.lang.String label, java.lang.String id, java.lang.String reference, boolean multiple)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be "".multiple
- can multiple options be selectedpublic void setEnumerated(int node, boolean enumerated)
node
- of list or selectenumerated
- true: handle enumatedpublic void enableDefaultOption(int node, boolean isDefaultOptionEnabled)
node
- selectisDefaultOptionEnabled
- true: to enable defaultoptionpublic void setDefaultOption(int node, java.lang.String defaultOption)
node
- selectdefaultOption
- the option which should be selected as defaultoption.
This can contain values like "Cordys:Vanenburg" then the string before the colon will be taken as value
and after the colon will be considered as description. If it doesn't contain any colon then the same string will be considered as value and description.public int addItem(int node, java.lang.String label, java.lang.String value)
node
- of parent, must be select or listlabel
- description which is shown to the uservalue
- field which determines the valuepublic int addCheckbox(int node, java.lang.String label, java.lang.String id, java.lang.String reference, java.lang.String trueValue, java.lang.String falseValue)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model it should be "".trueValue
- value the box gets when it is checked. Usually "true" or "1"
depending on the database.falseValue
- value the box gets when it is not checked. Usually "false" or
"0".public int addTable(int node, java.lang.String id, java.lang.String gridtype, boolean checkboxes, java.lang.String reference)
node
- the node of the parent where this element is addedid
- the identifier of a tablegridtype
- the type of grid: "datagrid", "navigationgrid" or
"displaygrid". "datagrid" is default.checkboxes
- should the standard checkboxes in first column be shownreference
- for binding non-transactional data. Fill with parent node name
of references to row.public int addGroupBox(int node, java.lang.String label, java.lang.String id)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.public int addGroupBox(int node, java.lang.String label, java.lang.String id, java.lang.String reference, boolean collapsible, boolean expanded)
node
- the node of the parent where this element is addedlabel
- string with label of this element.id
- identifier of this element.reference
- name of the datasource field (when a model is attached). When
there will be no model, it should be "".collapsible
- determines if the box can be minimizedexpanded
- is the box minimize or maximize at start uppublic void enableLazyLoad(int node)
node
- public int addGroup(int node, java.lang.String id, java.lang.String reference)
node
- form or group where the group is addedid
- identifier of the groupreference
- link to datasource field, when model is attached.public int addTabGroup(int node, java.lang.String id, boolean tabsAtBottom)
node
- the node of the parent where this element is addedid
- the identifier of this elementtabsAtBottom
- true sets the tabs at the bottom of the tabpagespublic int addTabGroup(int node, java.lang.String id, java.lang.String orientation, java.lang.String textDirection)
node
- the node of the parent where this element is addedid
- the identifier of this elementorientation
- Sets the position in which tabs display at runtime. The available options are Top , Right , Bottom , Left , and Stacked .textDirection
- Sets the display direction of text in the tabs. The available options are Vertical and Horizontal.
Text direction availabe only for Right and Left orientationpublic int addTabPage(int node, java.lang.String label, java.lang.String id, java.lang.String reference)
node
- parent must be a tabgrouplabel
- string with label of this element.id
- identifier of this element.reference
- link to datasource field, when model is attached.public int addImageControlbox(int node, java.lang.String id, java.lang.String layout)
node
- of the parent where this element is added.id
- of this elementlayout
- determines the positioning of images. Either "vertical" or
"horizontal". "Vertical" is default.public int addImageControlbox(int node, java.lang.String id, java.lang.String layout, java.lang.String iconSize)
node
- of the parent where this element is added.id
- of this elementlayout
- determines the positioning of images. Either "vertical" or
"horizontal". "Vertical" is default.iconSize
- specifies the size(small/mid/big) of the image. If empty then full image is shown.public int addImage(int node, java.lang.String id, java.lang.String urlImage, java.lang.String reference)
node
- the node of the image control boxurlImage
- the path of the imagereference
- link to datasource field, when model is attached.public int addFrame(int node, java.lang.String urlAddress, java.lang.String id)
node
- the node of the parent where this element is addedurlAddress
- the url of the webpageid
- identifier of this elementpublic int addCompositeControl(int node, java.lang.String id)
node
- the node of the parent where this element is addedid
- identifier of this elementpublic int addCompositeControl(int node, java.lang.String id, java.lang.String namespace)
node
- the node of the parent where this element is addedid
- identifier of this elementnamespace
- url of runtime library of this elementpublic int addAction(int node, java.lang.String name, java.lang.String source)
node
- parent element which gets this eventname
- name of the eventsource
- script started when event is raised.public int addAction(int node, java.lang.String name, java.lang.String source, java.lang.String assignmentsXML)
node
- parent element which gets this eventname
- name of the eventsource
- script started when event is raised.assignmentsXML
- the assignments xml that needs to be added to the actionpublic int addNamespaceURI(int modelNode, java.lang.String prefix, java.lang.String uri)
modelNode
- node of model which gets this namespaceprefix
- the prefix of the namespace.uri
- the uri of the namespacepublic int addZoom(int node, java.lang.String zoomURL, java.lang.String zoomField)
node
- the node of the parent (input, output, textarea, text)zoomURL
- the page to be zoomed to.zoomField
- the field from the zoom page to be returned to the parent
element (node).public int addZoom(int node, XFormsDef zoomPage, java.lang.String idZoomPageField)
node
- of the element getting the zoomzoomPage
- the xformsdef object of the zoompage, this page must contain a
table.idZoomPageField
- the id of the field in the zoompage that contains the data to
be returned.public int addClickChoiceDocked(int node, java.lang.String URL, java.lang.String caption, java.lang.String formID, java.lang.String formCaption, java.lang.String formDescription, java.lang.String model, java.lang.String[] parameters, java.lang.String frame)
node
- element receiving the click choice, can be: input, output,
textarea or textURL
- the address of page to be started. Can be either an xform
(must be published to runtime) or an internet address (e.g.
"http://www.cordys.com")caption
- the text shown to the user in the context menu when the
element is right clickedformID
- the id of the form to be startedformCaption
- caption of the form to be startedformDescription
- description of the form to be startedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantframe
- in which the click choice form is to be started: main, sub,
left, leftsub, right, rightsub, header, footer, new window,
header toolbar, left toolbar, right toolbar and footer toolbarpublic int addClickChoiceDocked(int node, XFormsDef ccXForm, java.lang.String caption, java.lang.String formID, java.lang.String formCaption, java.lang.String formDescription, java.lang.String model, java.lang.String[] parameters, java.lang.String frame)
node
- element receiving the click choice, can be: input, output,
textarea or textccXForm
- XFormsDef instance of the click choice form.caption
- the text shown to the user in the context menu when the
element is right clickedformID
- the id of the form to be startedformCaption
- caption of the form to be startedformDescription
- description of the form to be startedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantframe
- in which the click choice form is to be started: main, sub,
left, leftsub, right, rightsub, header, footer, new window,
header toolbar, left toolbar, right toolbar and footer toolbarpublic int addClickChoiceUnDocked(int node, java.lang.String URL, java.lang.String caption, java.lang.String formID, java.lang.String formCaption, java.lang.String formDescription, java.lang.String model, java.lang.String[] parameters, int left, int top, int width, int height)
node
- element receiving the click choice, can be: input, output,
textarea or textURL
- the address of page to be started. Can be either an xform
(must be published to runtime) or an internet address (e.g.
"http://www.cordys.com")caption
- the text shown to the user in the context menu when the
element is right clickedformID
- the id of the form to be startedformCaption
- caption of the form to be startedformDescription
- description of the form to be startedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantleft
- distance in pixels from the left edgetop
- distance in pixels from the top edgewidth
- horizontal size in pixelsheight
- vertical size in pixelspublic int addClickChoiceUnDocked(int node, XFormsDef ccXForm, java.lang.String caption, java.lang.String formID, java.lang.String formCaption, java.lang.String formDescription, java.lang.String model, java.lang.String[] parameters, int left, int top, int width, int height)
node
- element receiving the click choice, can be: input, output,
textarea or textccXForm
- XFormsDef instance of the click choice form.caption
- the text shown to the user in the context menu when the
element is right clickedformID
- the id of the form to be startedformCaption
- caption of the form to be startedformDescription
- description of the form to be startedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantleft
- distance in pixels from the left edgetop
- distance in pixels from the top edgewidth
- horizontal size in pixelsheight
- vertical size in pixelspublic int addClickChoiceSimple(int node, java.lang.String URL, java.lang.String caption, java.lang.String model, java.lang.String[] parameters, int width, int height)
node
- element receiving the click choice, can be: input, output,
textarea or textURL
- the address of page to be started. Can be either an xform
(must be published to runtime) or an internet address (e.g.
"http://www.cordys.com")caption
- the text shown to the user in the context menu when the
element is right clickedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantwidth
- horizontal size in pixelsheight
- vertical size in pixelspublic int addClickChoiceSimple(int node, XFormsDef ccXForm, java.lang.String caption, java.lang.String model, java.lang.String[] parameters, int width, int height)
node
- element receiving the click choice, can be: input, output,
textarea or textccXForm
- XFormsDef instance of the click choice form.caption
- the text shown to the user in the context menu when the
element is right clickedmodel
- the model of the click choice form to be started. Required
when passing data from the main form to the click choice form.
This model will receive the data from the element. the model
of the form. Set to null or "" if not relevantparameters
- array of string with the model parameter(s), which should get
the value of the element. Set to null when not relevantwidth
- horizontal size in pixelsheight
- vertical size in pixelspublic void setSynchronizedDialogDocked(int node, java.lang.String dialogXForm, java.lang.String dialogFrame, java.lang.String dialogID, java.lang.String dialogCaption, java.lang.String dialogDescription)
node
- of the tabledialogXForm
- the form to be shown containing the detailsdialogFrame
- in which frame should the dialog be started: main, sub, left,
leftsub, right, rightsub, header, footer, new window, header
toolbar, left toolbar, right toolbar and footer toolbardialogID
- denotes the dialog ID that is opened while clicking on a row.dialogCaption
- caption of the dialog pagedialogDescription
- description of the dialog pagepublic void setSynchronizedDialogSimple(int node, java.lang.String dialogXForm, int dialogWidth, int dialogHeight)
node
- of the tabledialogXForm
- the form to be shown containing the detailsdialogWidth
- the width of the windowdialogHeight
- the height of the windowpublic void setSynchronizedDialogNotDocked(int node, java.lang.String dialogXForm, java.lang.String dialogID, java.lang.String dialogCaption, java.lang.String dialogDescription, int dialogLeft, int dialogTop, int dialogWidth, int dialogHeight, boolean newWindow)
node
- of the tabledialogXForm
- the xforms page to be starteddialogID
- denotes the dialog ID that is opened while clicking on a row.dialogCaption
- caption of the dialog pagedialogDescription
- description of the dialog pagedialogLeft
- when it is not docked, the x-coordinate of the top left corner
of the dialogdialogTop
- when it is not docked, the y-coordinate of the top left corner
of the dialogdialogWidth
- when it is not docked, the widthdialogHeight
- when it is not docked, the heightnewWindow
- should the dialog be started in a new browser of in a framepublic void setSynchronizedDialogDocked(int node, XFormsDef xfDialog, java.lang.String dialogFrame, java.lang.String dialogID, java.lang.String dialogCaption, java.lang.String dialogDescription)
node
- of the tablexfDialog
- the form to be shown as a synchronized dialogdialogFrame
- in which frame should the dialog be started: main, sub, left,
leftsub, right, rightsub, header, footer, new window, header
toolbar, left toolbar, right toolbar and footer toolbardialogID
- denotes the dialog ID that is opened while clicking on a row.dialogCaption
- caption of the dialog pagedialogDescription
- description of the dialog pagepublic void setSynchronizedDialogSimple(int node, XFormsDef xfDialog, int dialogWidth, int dialogHeight)
node
- of the tablexfDialog
- the form to be shown as a synchronized dialogdialogWidth
- the width of the windowdialogHeight
- the height of the windowpublic void setSynchronizedDialogNotDocked(int node, XFormsDef xfDialog, java.lang.String dialogID, java.lang.String dialogCaption, java.lang.String dialogDescription, int dialogLeft, int dialogTop, int dialogWidth, int dialogHeight, boolean newWindow)
node
- of the tablexfDialog
- the form to be shown as a synchronized dialogdialogID
- denotes the dialog ID that is opened while clicking on a row.dialogCaption
- caption of the dialog pagedialogDescription
- description of the dialog pagedialogLeft
- when it is not docked, the x-coordinate of the top left corner
of the dialogdialogTop
- when it is not docked, the y-coordinate of the top left corner
of the dialogdialogWidth
- when it is not docked, the widthdialogHeight
- when it is not docked, the heightnewWindow
- should the dialog be started in a new browser of in a framepublic int addOnBeforeSynchronizedDialogOpen(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addControlBar(int node, boolean newButton, boolean deleteButton, boolean refreshButton)
node
- of the tablenewButton
- should the "new" button be addeddeleteButton
- should the "delete" button be addedrefreshButton
- should the "refresh" button be addedpublic int addPaginationBar(int node, boolean firstButton, boolean previousButton, boolean findButton, boolean nextButton, boolean LastButton, boolean showAllButton)
node
- of a table, groupbox or tabgroupfirstButton
- should the "first" button be addedpreviousButton
- should the "previous" button be addedfindButton
- should the "find" button be addednextButton
- should the "next" button be addedLastButton
- should the "last" button be addedshowAllButton
- should the "show all" button be added. This button is only
available for tables.public int getToolbarButton(int node, java.lang.String buttonType)
node
- of the toolbar, controlbar or paginationbarbuttonType
- the standard button to be returned. Can be "save", "insert",
"delete", "refresh", "first", "previous", "next", "last",
"find" or "showall".public int addOnBeforeClick(int node, java.lang.String source)
node
- insert, delete or refresh button of a controlbar, or save
button of toolbar. The first, previous, find, next, last,
showall of pagination bar.source
- script to be executed when event is firedpublic int addOnAfterClick(int node, java.lang.String source)
node
- insert, delete or refresh button of a controlbar, or save
button of toolbar. The first, previous, find, next, last,
showall of pagination bar.source
- script to be executed when event is firedpublic int addToolbarButton(int node, java.lang.String id, java.lang.String imageURL)
node
- of the toolbar, controlbar or paginationbarid
- of the buttonimageURL
- the URL to the image (.gif) which is displayed on the buttonpublic int addToolbarSeparator(int node)
node
- of the toolbar, controlbar or paginationbarpublic int addToolbar(boolean saveButton)
saveButton
- should the standard save button be added or not.public int createEmptyNode()
public void addNode(int elementNode, int destinationNode)
elementNode
- element or collection of elementsdestinationNode
- location where the elementNode is addedpublic void moveNode(int node, int newParent)
node
- to be movednewParent
- the target parent, the node is appended to the children of the
newParentpublic void copyNode(int node, int newParent)
node
- to be copiednewParent
- the target parent, the node is appended to the children of the
newParentpublic void deleteNode(int node)
node
- the node to be deletedpublic void deleteSplitterNode(int node)
node
- the node of a splitter to be deletedpublic int[] getAllChildren(int node)
node
- of which the children are required, group, groupbox, table,
tabgroup etc.public boolean canAddElement(int node)
node
- public java.lang.String toString()
toString
in class java.lang.Object
public void setFormatToInteger(int node, boolean required, java.lang.String textAlignment, java.lang.String locale, java.lang.String displayformat, java.lang.String negativePattern)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";locale
- for setting to country specific format. Use e.g. "nl-NL",
"en-US", "hi-IN" etcdisplayformat
- determines the way the value is displayed. Use only # and 0.
E.g. "#,###", "#,#00"negativePattern
- determines the position of the minus sign. Possible values:
"-n", "- n", "n-", "n -". Default is "-n".public void setFormatToCreditcard(int node, boolean required, java.lang.String textAlignment)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";public void setFormatToFloat(int node, boolean required, java.lang.String textAlignment, java.lang.String locale, java.lang.String displayformat, java.lang.String negativePattern, int numberOfDecimals)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";locale
- for setting to country specific format. Use e.g. "nl-NL",
"en-US", "hi-IN" etcdisplayformat
- determines the way the value is displayed. E.g.: "#,###.00",
"(##)-##0", "#0.# %", "0000.00", "0#,##0.00"negativePattern
- determines the position of the minus sign. Possible values:
"-n", "- n", "n-", "n -". Default is "-n".numberOfDecimals
- rounds the value to the specified number of decimals. If not
required set to -1public void setFormatToString(int node, boolean required, java.lang.String textAlignment, int minLength, int maxLength, java.lang.String legalCharacters, java.lang.String illegalCharacters)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";minLength
- minimum number of characters. If not required set to -1maxLength
- maximum number of characters. If not required set to -1legalCharacters
- specify the legal characters, like "abc"illegalCharacters
- specify the illegal characters, like "[0-9]"public void setFormatToMail(int node, boolean required, java.lang.String textAlignment)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";public void setFormatToAmount(int node, boolean required, java.lang.String textAlignment, java.lang.String locale, java.lang.String displayformat, java.lang.String negativePattern, java.lang.String positivePattern, java.lang.String currency, int numberOfDecimals)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";locale
- for setting to country specific format. Use e.g. "nl-NL",
"en-US", "hi-IN" etcdisplayformat
- determines the way the value is displayed. Use "#", "," and/or
"."negativePattern
- determines the position of currency symbol and minus sign.
Options: ($n), -$n, $-n, $n-, (n$), -n$, n-$, n$-, ($ n), -$
n, $ -n, $ n-, (n $), -n $, n- $, and n $-,positivePattern
- determines the position of currency symbol. Options $n, n$, $
n, and n $currency
- the literal value such as $, or by the ASCII value such as 38
(for $), or by the Unicode value such as $ (for $).numberOfDecimals
- rounds the value to the specified number of decimals. If not
required set to -1public void setFormatToDate(int node, boolean required, java.lang.String textAlignment, java.lang.String locale, java.lang.String displayformat, java.lang.String timeZone)
node
- of input, output, password, textarea, select or listrequired
- is data required/mandatory in this field or can it be left
emptytextAlignment
- determines the alignment of the text in the field. Can be
"left", "center" or "right". For the default value set to
null or "";locale
- for setting to country specific format. Use e.g. "nl-NL",
"en-US", "hi-IN" etcdisplayformat
- e.g. "dd-MMM-yyyy" for 03-Jul-1980. Or use timeZone
- set to e.g. "Europe/Amsterdam", "GMT-4"public void setFormatSetMinValue(int node, double minValue)
node
- of input, output, password, textarea, select or listminValue
- public void setFormatSetMaxValue(int node, double maxValue)
node
- of input, output, password, textarea, select or listmaxValue
- public void setSize(int node, int width, int height)
node
- element which size has to be setwidth
- in px. Default value is 200pxheight
- in px. Default value is 200pxpublic void setSize(int node, java.lang.String width, java.lang.String height)
node
- element which size has to be setwidth
- width of an element. eg. null or 100px or 100%.height
- height of an element e.g. null or 100px or 100%public void setSizeLabel(int node, int width)
node
- of input, output, password, textarea, select or list.width
- of label in pxpublic void setColumnsTableWidthAutomatic(int node)
node
- of tablepublic void setAnchor(int node, java.lang.String leftValue, java.lang.String topValue, java.lang.String rightValue, java.lang.String bottomValue)
node
- of the element to be anchoredleftValue
- absolute or relative distance from left side of parent. Can be
e.g.: "20%", "20" or "null"topValue
- absolute or relative distance from top side of parent. Can be
e.g.: "20%", "20" or "null"rightValue
- absolute or relative distance from right side of parent. Can
be e.g.: "20%", "20" or "null"bottomValue
- absolute or relative distance from bottom side of parent. Can
be e.g.: "20%", "20" or "null"public void setLayout(int node, java.lang.String layout)
node
- element which layout has to be set.layout
- "horizontal" , "vertical", "free",public void setFreePositioning(int node, boolean freePositioning)
node
- freePositioning
- public java.lang.String getLayout(int node)
node
- public java.lang.String getLayoutElement(int node)
node
- ,
node of the element which layout is requiredpublic void setLabelAlignment(int node, java.lang.String alignment, boolean setAlignmentOfSubElements)
node
- of element of which the label alignment has to be set. Or the
node of the group(box), tabpage, main form or splitgroup.alignment
- can be "ontop", "left", "right" or "hide"setAlignmentOfSubElements
- do the subelement of the group need to be realigned as well.public void hideGroupBoxHeader(int node)
node
- of the groupboxpublic void setPosition(int node, int x_coordinate, int y_coordinate)
node
- of the element to be positionedx_coordinate
- in pixels >=0y_coordinate
- in pixels >=0public void setTooltip(int node, java.lang.String tooltip)
node
- of element which gets the tooltiptooltip
- text to be shown in tooltippublic void setloadOnDemand(int node, java.lang.Boolean loadOnDemand)
node
- of element to set the loadOnDemand. Can be TabpageloadOnDemand
- Sets the control as a load-on-demand control. This means that when a page is loaded for the first time at run time, the control is initialized (loaded with content) only when you click it.public void setResizable(int node, java.lang.Boolean resizable)
node
- of element to set the Resizable. Can be groupbox,
table, tabpage, textarearesizable
- Specifies whether the control is resizable or notpublic void setSaveGridState(int node, java.lang.Boolean saveGridState)
node
- of table to set the SaveGridState. Can be only tablesaveGridState
- Specifies if modifications made to the Table control (column size and placement)
will be retained when the XForm is visited again at runtime.public void setDisplayContextMenu(int node, java.lang.Boolean displayContextMenu)
node
- of table to set the DisplayContextMenu. Can be only tabledisplayContextMenu
- The boolean value that denotes whether a context menu will
appear when you right-click the header of the Table control.public void setToggleColumns(int node, java.lang.Boolean toggleColumns)
node
- of table to set the ToggleColumns. Can be only tabletoggleColumns
- Sets or retrieves the boolean value that denotes
whether the columns of the Table control can be toggled (to show and hide them) at run time.public void setMinRows(int node, int minRows)
node
- of table to set the MinRows. Can be only tableminRows
- Sets the minimum value rows that should be shown at run time.public void setMovableColumns(int node, java.lang.Boolean movableColumns)
node
- of table to set the MovableColumns. Can be only tablemovableColumns
- Sets or retrieves the boolean value that denotes whether
the columns of the Table control can be moved at run time.public void setAutoInsert(int node, java.lang.Boolean autoInsert)
node
- of table to set the AutoInsert. Can be only tableautoInsert
- Sets or retrieves the boolean value that Adds a new,
empty row to the table when you enter valid data in the last row of the table.
This is applicable for a table associated with a transactional data model only.public void setColumnSortable(int node, java.lang.Boolean columnSortable)
node
- of table to set the ColumnSortable. Can be only tablecolumnSortable
- Sets or retrieves the boolean value to enable sorting of columns in the control.public void setShowSingleTab(int node, java.lang.Boolean showSingleTab)
node
- of TabGroup to set the Show tab header always. Can be only TabGroupshowSingleTab
- Sets or retrieves the boolean value to Show tab header alwayspublic void setTabIndex(int node, int tabIndex)
node
- of element to set the tabIndex. Can be input, password,
checkbox, select, list, textarea, button or frametabIndex
- this number sets the priority in the tab sequence, must be
>=1. tabIndex = 2 comes after 1 before 3public int addSplitter(int node, java.lang.String type, int offSet, boolean takePositionIntoAccount)
node
- the node that will get the splittertype
- four possibilities: "left", "right", "top" or "bottom". Where:offSet
- the distance from the border of the parent to the splitter.takePositionIntoAccount
- a splitter can be added to a group that already has elements.
This parameter determines what happens with the elements. The
elements are copied to one of the splitterpages. There are
different options:public int getSplitterPage(int node, java.lang.String type)
node
- of the splitter pagetype
- :
"left", "right", "top" or "bottom"public int addOnClick(int node, java.lang.String source)
node
- of the button or imagesource
- script started when event is raised.public int addOnChange(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnBeforeBind(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnValidate(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnFocusIn(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnFocusOut(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnBeforeZoom(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnAfterZoom(int node, java.lang.String source)
node
- parent element which gets this eventsource
- script started when event is raised.public int addOnRowSelect(int node, java.lang.String source)
node
- of the tablesource
- script to be executed when event firespublic int addOnRowChecked(int node, java.lang.String source)
node
- of the tablesource
- script to be executed when event firespublic int addOnBeforeRowBind(int node, java.lang.String source)
node
- of the tablesource
- script to be executed when event firespublic int addOnBeforeFill(int node, java.lang.String source)
node
- of the select or listsource
- script to be executed when event firespublic void addGlobalScript(java.lang.String source)
source
- the script to be added outside the existing functionspublic int addXML(java.lang.String id, java.lang.String textXML)
id
- the id of the xmlNodetextXML
- string contain the XMLpublic int linkJavaScript(java.lang.String scriptURL)
scriptURL
- address of the sourcepublic int linkStyleSheet(java.lang.String styleSheetURL)
styleSheetURL
- address of the style sheetpublic void setStyleClass(int node, java.lang.String styleClassName)
node
- the node of the elementstyleClassName
- the name of the style classpublic int addOnFormInit(java.lang.String source)
source
- executed when event is raisedpublic int addOnFormInitDone(java.lang.String source)
source
- executed when event is raisedpublic int addOnBeforeClose(java.lang.String source)
source
- executed when event is raisedpublic int addModel(java.lang.String id, java.lang.String src, java.lang.String businessElement, java.lang.String type)
id
- identifier of the modelsrc
- the namespace and name of the method. E.g.:
"http://schemas.cordys.com/1.0/demo/northwind/GetEmployees"businessElement
- denotes the name of the business object that is retrieved from
the backend. This is often the table name.type
- "get", "next" or "previous"public int addModel(java.lang.String id, java.lang.String src, java.lang.String businessElement, java.lang.String type, java.lang.String[] parameterLabels)
id
- identifier of the modelsrc
- the namespace and name of the method. E.g.:
"http://schemas.cordys.com/1.0/demo/northwind/GetEmployees"businessElement
- denotes the name of the business object that is retrieved from
the backend. This is often the table name.type
- "get", "next" or "previous"parameterLabels
- array of string with the parameter names of the method to be
sent to backend (values will be "")public int addModel(java.lang.String id, java.lang.String src, java.lang.String businessElement, java.lang.String type, java.lang.String[] parameterLabels, java.lang.String[] parameterValues)
id
- identifier of the modelsrc
- the namespace and name of the method. E.g.:
"http://schemas.cordys.com/1.0/demo/northwind/GetEmployees"businessElement
- denotes the name of the business object that is retrieved from
the backend. This is often the table name.type
- "get", "next" or "previous"parameterLabels
- array of string with the parameter names to be sent to backendparameterValues
- array of string with the parameter values to be sent to
backendpublic static java.lang.String generateURLForOLD(java.lang.String url)
url
- path of the stylesheet, html, js file, image, cafpublic void setModelProperties(int modelNode, boolean automatic, boolean nonTransactional, boolean promptToSave, java.lang.String gateway, java.lang.String receiver, int timeout)
modelNode
- node of the model (must be model)automatic
- denotes whether the request is to be fired automatically to
the back end when the form is loaded or notnonTransactional
- the model data need not confirm to the Cordys protocol if truepromptToSave
- if true the user will be prompted when exiting the form in
casen data has been changed which could be saved.gateway
- if "" (empty string) then default remains. Denotes the URL of
the gateway to which the request is sent from the model. By
default, this contains the Cordys web gateway URL. However,
this can also be the URL of a Web Service to which the request
can be sent.receiver
- Denotes the receiver to which the web gateway sends the
request. This can be the DN of a SOAP Node or SOAP Processor
or Connection Point, when the gateway is set to Cordys
gateway. This does not apply if the gateway is set to a Web
Service URL.timeout
- time in miliseconds the webserver has to wait for response
from backend. (-1 for no timeout)public void setNextMethodOfModel(int modelNode, java.lang.String src)
src
- the namespace and name of the method. E.g.:
"http://schemas.cordys.com/1.0/demo/northwind/GetEmployees"modelNode
- the node of the model that requires the next methodpublic void setPreviousMethodOfModel(int modelNode, java.lang.String src)
src
- the namespace and name of the method. E.g.:
"http://schemas.cordys.com/1.0/demo/northwind/GetPreviousEmployees"modelNode
- the node of the model that requires the next methodpublic void setAssociatedModel(int mainModelNode, int subModelNode)
mainModelNode
- node of the leading modelsubModelNode
- node of the model, which is associated with the mainModelpublic void setAssociatedModel(int mainModelNode, int subModelNode, boolean isSingleTransaction)
mainModelNode
- node of the leading modelsubModelNode
- node of the model, which is associated with the mainModelisSingleTransaction
- boolean value to enable or disable single transaction in the subModelpublic void setAssociatedReference(int subModelNode, java.lang.String parameterField, java.lang.String referenceField)
subModelNode
- parameterField
- the parameter of the subModel that gets the referencereferenceField
- the reference field of the mainModelpublic void linkModelWithElement(int modelNode, int elementNode)
modelNode
- node of model to be linked with an elementelementNode
- node of element which value () is determined by modelpublic void fillSelectWithModel(int modelNode, int elementNode, java.lang.String description, java.lang.String value)
modelNode
- node of model to be linked with an elementelementNode
- node of select or list.description
- datasource field shown to the uservalue
- datasource field set as value in the selectpublic boolean setEBIModel(int modelNode, boolean isEBIModelValue, boolean isConstraintValidation, boolean isApplyAccessControl, boolean isInitializationRequired)
modelNode
- isEBIModelValue
- XForms needs to be enabled for dealing woth EBI defined logic
.To enable this should be true.isConstraintValidation
- By enabling this user can validate object/attributes.isApplyAccessControl
- By enabling this user can restrict access to object/attributesisInitializationRequired
- When user inserts new object user can give default values to
objects/attributes by setting this as true.public boolean setEBIInitializeValueSets(int selectNode, int isInitializeValueSets)
selectNode
- isInitializeValueSets
- public boolean setEBIValidation(int control, boolean isConstraintValidation)
control
- isConstraintValidation
- public int addModelBeforeEBIValidate(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelAfterEBIValidate(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnAfterInsert(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnBeforeInsert(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnChange(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnBeforeChange(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnAfterChange(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnDelete(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnBeforeDelete(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnAfterDelete(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnInsert(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnSynchronized(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnRequest(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnSOAPFault(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnResponse(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnDataCompleted(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnBeforeSync(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.public int addModelOnFind(int modelNode, java.lang.String source)
modelNode
- the node of the modelsource
- script started when event is raised.