public class TemplateComponent extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_IMAGE_NAME |
static String |
DEFAULT_IMAGE_PATH |
Constructor and Description |
---|
TemplateComponent()
Creates a empty TemplateComponent
|
TemplateComponent(TemplateModel myModel,
org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc,
Presenter presenter,
boolean showClose,
TextTableImage owner)
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,
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() |
com.google.gwt.user.client.ui.Widget |
getContent() |
int |
getHeight() |
String |
getIdInBasket() |
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() |
String |
getUserComments() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
isDoubleColLayout() |
boolean |
isLocked() |
void |
setContent(com.google.gwt.user.client.ui.Widget content) |
void |
setHeight(int height) |
void |
setIdInBasket(String idInBasket) |
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 static final String DEFAULT_IMAGE_NAME
public static final String DEFAULT_IMAGE_PATH
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, org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc, Presenter presenter, boolean showClose, TextTableImage owner)
myModel
- the modelsc
- the serialiazble to convertpresenter
- .showClose
- owner
- needed only for the TextTableImage case and because im in hurrypublic org.gcube.portlets.d4sreporting.common.shared.BasicComponent getSerializable()
public int getHeight()
public void setHeight(int height)
height
- .public org.gcube.portlets.d4sreporting.common.shared.ComponentType getType()
public void setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type)
type
- .public int getWidth()
public void setWidth(int width)
width
- .public int getX()
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 isLocked()
public void setLocked(boolean locked)
locked
- .public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public String getUserComments()
public String getIdInBasket()
public void setIdInBasket(String idInBasket)
id
- .public boolean isDoubleColLayout()
Copyright © 2014. All Rights Reserved.