public class ClientRepeatableSequence extends com.google.gwt.user.client.ui.Composite implements ClientSequence
Modifier and Type | Field and Description |
---|---|
protected ArrayList<TemplateComponent> |
groupedComponents |
protected org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence |
originalSequence |
protected org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence |
repSequence |
Constructor and Description |
---|
ClientRepeatableSequence(Presenter p,
org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS)
constructor used by the system when reading the model
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(String id,
org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sequence,
boolean isSingleRelation) |
void |
add(TemplateComponent toAdd) |
protected void |
addAnother(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS) |
void |
AddButtonClicked(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sequence) |
protected void |
addNew(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS) |
void |
addTemplateComponent(TemplateComponent toAdd)
add the template component in the model
|
void |
cleanInModel() |
ArrayList<TemplateComponent> |
getGroupedComponents()
return the grouped components of a sequence.
|
String |
getId() |
String |
getKey() |
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> |
getMetadata() |
SequenceWidget |
remove(SequenceWidget toRemove) |
protected void |
removeSeqWidget(SequenceWidget toRemove)
remove the widget and its components
|
void |
setGroupedComponents(ArrayList<TemplateComponent> groupedComponents) |
void |
setId(String id) |
void |
setMetadata(List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metas) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
protected ArrayList<TemplateComponent> groupedComponents
protected org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence repSequence
protected org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence originalSequence
public ClientRepeatableSequence(Presenter p, org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS)
sRS
- the sequence to repeatpublic void add(TemplateComponent toAdd)
protected void addAnother(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS)
protected void addNew(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sRS)
protected void removeSeqWidget(SequenceWidget toRemove)
toRemove
- public void addTemplateComponent(TemplateComponent toAdd)
addTemplateComponent
in interface ClientSequence
public ArrayList<TemplateComponent> getGroupedComponents()
SequenceWidget
RSG_BINDING_PROPERTY
with value -1 it update it to the max value so far (requirement for RSG needed to wrote back the report in the DB)
Note that a Sequence can contain multiple sequences and they are separeted by componentType.REPEAT_SEQUENCE_DELIMITERgetGroupedComponents
in interface ClientSequence
public void setGroupedComponents(ArrayList<TemplateComponent> groupedComponents)
public boolean add(String id, org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sequence, boolean isSingleRelation)
add
in interface ClientSequence
public SequenceWidget remove(SequenceWidget toRemove)
remove
in interface ClientSequence
public void AddButtonClicked(org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence sequence)
AddButtonClicked
in interface ClientSequence
public String getKey()
public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getMetadata()
public void setMetadata(List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metas)
public String getId()
public void setId(String id)
public void cleanInModel()
cleanInModel
in interface ClientSequence
Copyright © 2014. All Rights Reserved.