|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.user.reportgenerator.client.model.TemplateSection
public class TemplateSection
The TemplateSection
class represents a Template Section that can be associated to any Template
Constructor Summary | |
---|---|
TemplateSection()
|
|
TemplateSection(List<TemplateComponent> components,
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
|
Method Summary | |
---|---|
void |
addCommentToComponent(com.google.gwt.user.client.ui.Widget component,
String comment2Add,
int visibleHeight)
look for the model in the current page and edits its size |
void |
addComponent(TemplateComponent tc)
enqueue a component |
void |
addMetadata(String attr,
String value)
|
void |
discardComments(com.google.gwt.user.client.ui.Widget component)
|
List<TemplateComponent> |
getAllComponents()
|
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> |
getAllMetadata()
|
TemplateComponent |
getComponent(int index)
|
AddCommentEvent |
getComponentComments(com.google.gwt.user.client.ui.Widget component)
look if a comment with a specific metadata (that indicate sit is a comment) exists in the current report model: |
ArrayList<String> |
getSectionComments()
|
boolean |
hasComments(com.google.gwt.user.client.ui.Widget component)
look if a comment with a specific metadata (that indicate sit is a comment) exists in the current report model: |
boolean |
removeComponent(TemplateComponent tc)
|
void |
repositionModelComponent(com.google.gwt.user.client.ui.Widget toRepos,
int newX,
int newY)
look for the model in the current section and edits its position |
void |
resizeModelComponent(com.google.gwt.user.client.ui.Widget toResize,
int newWidth,
int newHeight)
look for the model in the current page and edits its size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateSection()
components
- metadata
- public TemplateSection(List<TemplateComponent> components, List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
components
- .metadata
- .Method Detail |
---|
public void addComponent(TemplateComponent tc)
public boolean removeComponent(TemplateComponent tc)
public ArrayList<String> getSectionComments()
public void resizeModelComponent(com.google.gwt.user.client.ui.Widget toResize, int newWidth, int newHeight)
toResize
- .newWidth
- .newHeight
- .public void discardComments(com.google.gwt.user.client.ui.Widget component)
public void addCommentToComponent(com.google.gwt.user.client.ui.Widget component, String comment2Add, int visibleHeight)
public boolean hasComments(com.google.gwt.user.client.ui.Widget component)
public AddCommentEvent getComponentComments(com.google.gwt.user.client.ui.Widget component)
public void repositionModelComponent(com.google.gwt.user.client.ui.Widget toRepos, int newX, int newY)
toRepos
- .newX
- .newY
- .public TemplateComponent getComponent(int index)
index
- .
public void addMetadata(String attr, String value)
attr
- .value
- .public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public List<TemplateComponent> getAllComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |