corelib.services.web.components
Class Repeater

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.Repeater
All Implemented Interfaces:
DataRepeater

public class Repeater
extends VisualComponent
implements DataRepeater

This web component repeats the sub elements (HTML tags or Ellipse web components) for all entries store in the values sub expression (can be a Java array, an java.util.ArrayList instance or a java.util.Vector instance).

Since:
0.1.0
Author:
Dominique Liard

Field Summary
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Fields inherited from interface corelib.services.web.webapplications.DataRepeater
REPEATER_ID_SEPARATOR
 
Constructor Summary
Repeater()
          Class constructor.
 
Method Summary
 java.lang.String getElementAlias()
          Returns the used alias for each data value during the components duplication.
 java.lang.Object getValues()
          Returns the element collection to repeat.
 void repeateChildren(org.w3c.dom.Document xmlDocument)
          Duplicates, in the DOM document, the DataRepeater web component (and it's sub nodes) for all items stored in the values set.
 void setElementAlias(java.lang.String elementAlias)
          Changes the used alias for each data value during the components duplication.
 void setValues(java.lang.Object values)
          Changes the element collection to repeat.
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderBegin, component_renderChildren, component_renderEnd, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getSharedAttributesHtmlEncoding, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repeater

public Repeater()
Class constructor.

Method Detail

getValues

public java.lang.Object getValues()
Returns the element collection to repeat.

Returns:
The element collection.

setValues

public void setValues(java.lang.Object values)
Changes the element collection to repeat.

Parameters:
values - The new element collection.

getElementAlias

public java.lang.String getElementAlias()
Returns the used alias for each data value during the components duplication.

Returns:
The used alias for each data value.

setElementAlias

public void setElementAlias(java.lang.String elementAlias)
Changes the used alias for each data value during the components duplication.

Parameters:
elementAlias - The new alias for each data value.

repeateChildren

public void repeateChildren(org.w3c.dom.Document xmlDocument)
Duplicates, in the DOM document, the DataRepeater web component (and it's sub nodes) for all items stored in the values set.

Specified by:
repeateChildren in interface DataRepeater
Parameters:
xmlDocument - The DOM instance used during the duplication.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.