SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatContainer
└─SwatDisplayableContainer
└─SwatReplicableContainer
public class SwatReplicableContainer
extends SwatDisplayableContainer
| Field Summary | |
|---|---|
| array | An array of unique ids, one for each replication. |
| array | An array of unique id => title pairs, one for each replication. |
| Constructor Summary | |
|---|---|
SwatReplicableContainer(string id) Creates a new replicator container. |
|
| Method Summary | |
|---|---|
| void | addReplication(mixed id) |
| SwatWidget | getWidget(string widget_id, string replicator_id) Retrives a reference to a replicated widget. |
| void | init() Initilizes this replicable container. |
| Methods inherited from Swat.SwatDisplayableContainer | |
|---|---|
| display, getCSSClassNames | |
| Methods inherited from Swat.SwatContainer | |
|---|---|
| add, addChild, copy, display, displayChildren, getChild, getChildren, getDescendantStates, getDescendants, getFirst, getFirstDescendant, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, notifyOfAdd, packEnd, packStart, printWidgetTree, process, remove, replace, sendAddNotifySignal, setDescendantStates | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public array $replication_ids = null
An array of unique ids, one for each replication
The ids are used to suffix the original widget ids to create unique ids for the replicated widgets.
public array $replicators = null
An array of unique id => title pairs, one for each replication
The ids are used to suffix the original widget ids to create unique ids for the replicated widgets. Some sub-classes use the titles on containers such as fieldsets which surround the replicated widgets.
public SwatReplicableContainer(string id)
Creates a new replicator container
id - a non-visible unique id for this widget.public void addReplication(mixed id)
public SwatWidget getWidget(string widget_id, string replicator_id)
Retrives a reference to a replicated widget
widget_id - the unique id of the original widgetreplicator_id - the replicator id of the replicated widgetpublic void init()
Initilizes this replicable container
Goes through the internal widgets, clones them, and adds them to the widget tree.
A container that replicates itself and its children