|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.user.templates.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 |
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 |
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, 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 void addMetadata(String attr, String 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 |