public class TemplateComponent extends Object
TemplateComponent specifies an area in a coordinate space that is
enclosed by the TemplateComponent object's top-left point
(x, y)
in the coordinate space, its width, and its height.
| Constructor and Description |
|---|
TemplateComponent()
Creates a empty TemplateComponent
|
TemplateComponent(TemplateModel myModel,
org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc,
Presenter controller,
boolean addControls)
create a template component which is displayable (create an actual Widget in the content field)
|
TemplateComponent(TemplateModel myModel,
int x,
int y,
int width,
int height,
int templatePage,
org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
String paramName,
com.google.gwt.user.client.ui.Widget content)
Creates a TemplateComponent with the given charactheristics and single column
|
TemplateComponent(TemplateModel myModel,
int x,
int y,
int width,
int height,
int templatePage,
org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
String paramName,
com.google.gwt.user.client.ui.Widget content,
ArrayList<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
Creates a TemplateComponent with the given charactheristics and single column
|
TemplateComponent(TemplateModel myModel,
int x,
int y,
int width,
int height,
int templatePage,
org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
String paramName,
com.google.gwt.user.client.ui.Widget content,
boolean doubleColLayout)
Creates a TemplateComponent with the given charactheristics in double column
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadata(String attr,
String value) |
List<org.gcube.portlets.d4sreporting.common.shared.Metadata> |
getAllMetadata() |
TemplateComponent |
getChild() |
com.google.gwt.user.client.ui.Widget |
getContent() |
int |
getHeight()
Returns the height of the bounding
TemplateComponent |
TemplateModel |
getMyModel() |
String |
getParamName() |
org.gcube.portlets.d4sreporting.common.shared.BasicComponent |
getSerializable()
return a template Component which is serializable
|
int |
getTemplatePage() |
org.gcube.portlets.d4sreporting.common.shared.ComponentType |
getType()
Returns the type of the
TemplateComponent
A TemplateComponent can be of different types depeding on its content |
int |
getWidth()
Returns the width of the bounding
TemplateComponent |
int |
getX()
Returns the X coordinate of the bounding
TemplateComponent |
int |
getY() |
boolean |
hasChild() |
boolean |
isDoubleColLayout() |
boolean |
isLocked()
used only for text areas
|
void |
setChild(TemplateComponent child) |
void |
setContent(com.google.gwt.user.client.ui.Widget content) |
void |
setDoubleColLayout(boolean doubleColLayout) |
void |
setHeight(int height) |
void |
setLocked(boolean locked) |
void |
setParamName(String paramName) |
void |
setTemplatePage(int templatePage) |
void |
setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type) |
void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
public TemplateComponent()
public TemplateComponent(TemplateModel myModel, int x, int y, int width, int height, int templatePage, org.gcube.portlets.d4sreporting.common.shared.ComponentType type, String paramName, com.google.gwt.user.client.ui.Widget content, boolean doubleColLayout)
myModel - .x - .y - .width - .height - .templatePage - .content - the inserted widgettype - the type of the inserted widgetparamName - for assigning it a value when exporting to pdf, valid only for Dynamic ContentdoubleColLayout - to specify that its layout is double columnedpublic TemplateComponent(TemplateModel myModel, int x, int y, int width, int height, int templatePage, org.gcube.portlets.d4sreporting.common.shared.ComponentType type, String paramName, com.google.gwt.user.client.ui.Widget content)
myModel - .x - .y - .width - .height - .templatePage - .content - the inserted widgettype - the type of the inserted widgetparamName - for assigning it a value when exporting to pdf, valid only for Dynamic Contentpublic TemplateComponent(TemplateModel myModel, int x, int y, int width, int height, int templatePage, org.gcube.portlets.d4sreporting.common.shared.ComponentType type, String paramName, com.google.gwt.user.client.ui.Widget content, ArrayList<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
myModel - .x - .y - .width - .height - .templatePage - .content - the inserted widgettype - the type of the inserted widgetparamName - for assigning it a value when exporting to pdf, valid only for Dynamic Contentpublic TemplateComponent(TemplateModel myModel, org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc, Presenter controller, boolean addControls)
myModel - the modelsc - the serialiazble to convertcontroller - .public boolean isLocked()
public void setLocked(boolean locked)
public org.gcube.portlets.d4sreporting.common.shared.BasicComponent getSerializable()
public int getHeight()
TemplateComponentTemplateComponent.public void setHeight(int height)
height - .public org.gcube.portlets.d4sreporting.common.shared.ComponentType getType()
TemplateComponent
A TemplateComponent can be of different types depeding on its contentclasspublic void setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type)
type - .public int getWidth()
TemplateComponentTemplateComponent.public void setWidth(int width)
width - .public int getX()
TemplateComponentTemplateComponent.public void setX(int x)
x - .public int getY()
public void setY(int y)
y - .public int getTemplatePage()
public void setTemplatePage(int templatePage)
templatePage - .public com.google.gwt.user.client.ui.Widget getContent()
public void setContent(com.google.gwt.user.client.ui.Widget content)
content - .public String getParamName()
public void setParamName(String paramName)
paramName - .public boolean isDoubleColLayout()
public void setDoubleColLayout(boolean doubleColLayout)
public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public TemplateModel getMyModel()
public TemplateComponent getChild()
public void setChild(TemplateComponent child)
child - public boolean hasChild()
Copyright © 2014. All Rights Reserved.