public class TemplateSection extends Object
TemplateSection class represents a Template Section that can be associated to any Template| Constructor and Description |
|---|
TemplateSection() |
TemplateSection(List<TemplateComponent> components,
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(TemplateComponent tc,
int index)
add a component
|
void |
addMetadata(String attr,
String value) |
List<TemplateComponent> |
getAllComponents() |
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> |
getAllMetadata() |
TemplateComponent |
getComponent(int index) |
void |
lockComponent(com.google.gwt.user.client.ui.Widget toLock,
boolean locked)
look for the model in the current page and edits its size
|
TemplateComponent |
removeComponent(com.google.gwt.user.client.ui.Widget toRemove)
remoce a component
|
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
|
void |
updateModelComponentIndex(com.google.gwt.user.client.ui.Widget toUpdate,
int newIndex)
look for the model in the current page and edits its index, the y variable is used for the index
|
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, int index)
public TemplateComponent removeComponent(com.google.gwt.user.client.ui.Widget toRemove)
toRemove - public void resizeModelComponent(com.google.gwt.user.client.ui.Widget toResize,
int newWidth,
int newHeight)
toResize - .newWidth - .newHeight - .public void updateModelComponentIndex(com.google.gwt.user.client.ui.Widget toUpdate,
int newIndex)
toUpdate - newIndex - public void lockComponent(com.google.gwt.user.client.ui.Widget toLock,
boolean locked)
toLock - llocked - .public void repositionModelComponent(com.google.gwt.user.client.ui.Widget toRepos,
int newX,
int newY)
toRepos - .newX - .newY - .public TemplateComponent getComponent(int index)
public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public List<TemplateComponent> getAllComponents()
Copyright © 2014. All Rights Reserved.