public class TemplateSection extends Object
TemplateSection
class represents a Template Section that can be associated to any TemplateConstructor and Description |
---|
TemplateSection() |
TemplateSection(List<TemplateComponent> components,
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata) |
Modifier and Type | Method and Description |
---|---|
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
|
public TemplateSection()
components
- metadata
- public TemplateSection(List<TemplateComponent> components, List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
components
- .metadata
- .public void addComponent(TemplateComponent tc)
public boolean removeComponent(TemplateComponent tc)
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 List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public List<TemplateComponent> getAllComponents()
Copyright © 2014. All Rights Reserved.