Class Index | File Index

Classes


Class gxe.control.RepeatablesContainer


Extends gxe.control.ControlArray.
Provides a container for repeatable element controls (multiplicity > 1).
Defined in: gxe.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class gxe.control.ControlArray:
displayInline, isExclusive
Fields borrowed from class gxe.control.Control:
cfgObject, context, gxeId, htmlAttributes, htmlElement, htmlTag, htmlTextContent, parentControl, xmlNode, xmlParentElement
Method Summary
Method Attributes Method Name and Description
 
Determines if elements can be removed.
 
Determines if elements can be repeated.
 
Counts the number of similar sections.
 
Determines if the control has been properly configured.
 
Moves a section.
 
Removes a section.
 
repeatSection(domProcessor, domNode)
Repeats a section.
 
Synchronizes the multiplicity tools for a section.
Methods borrowed from class gxe.control.ControlArray:
activateIndex, findIndex, findIndexByXmlNode, fireOnArrayModified, getActiveIndex, getItem, getLength, insertAt, push, removeIndex, setDisplayStyle, swapPosition, syncDisplay, toggleDisplay
Methods borrowed from class gxe.control.Control:
build, createHtmlElement, ensureVisibility, evaluateValue, execBuild, findFirstChildControl, focus, getLabelText, importCfgProperties, importHtmlAttributes, initialize, processCfgAttribute, processCfgElement, processChildren
Event Summary
Event Attributes Event Name and Description
 
handleEvent(e, sectionControl, htmlEventName, gxeEventName)
Handles multiplicity related events .
Events borrowed from class gxe.control.ControlArray:
onArrayModified
Events borrowed from class gxe.control.Control:
fireOnEvent, onChildControlCreated, onEvent, onHtmlChildrenCreated, onHtmlElementCreated
Class Detail
gxe.control.RepeatablesContainer()
Method Detail
{boolean} canRemove()
Determines if elements can be removed.
Returns:
{boolean} true if elements can be removed

{boolean} canRepeat()
Determines if elements can be repeated.
Returns:
{boolean} true if elements can be repeated

{Integer} countSimilarSections()
Counts the number of similar sections.
Returns:
{Integer} the number of similiar sections

{boolean} isConfigured()
Determines if the control has been properly configured.
Returns:
{boolean} true if properly configured

moveSection(bUp)
Moves a section.
Parameters:
{boolean} bUp
true if the section (i.e. element should be move up within the target XML document)

removeSection()
Removes a section.

repeatSection(domProcessor, domNode)
Repeats a section.
Parameters:
{gxe.xml.DomProcessor} domProcessor
an XML processor (when opening an existing document)
{Node} domNode
the DOM node that is actively being processed (when opening an existing document)

syncTools()
Synchronizes the multiplicity tools for a section.
Event Detail
handleEvent(e, sectionControl, htmlEventName, gxeEventName)
Handles multiplicity related events .
(repeatSection removeSection moveSectionUp moveSectionDown)
Parameters:
{Event} e
the underlying browser event
{gxe.control.Section} sectionControl
the section from which the event was fired
{String} htmlEventName
the HTML event name (e.g. "onclick")
{String} gxeEventName
a GXE name for the event (e.g. "repeatSection")