|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.user.reportgenerator.client.model.TemplateComponent
public class TemplateComponent
This class represent all the possible template components IN THE MODEL
Field Summary | |
---|---|
static String |
DEFAULT_IMAGE_NAME
|
static String |
DEFAULT_IMAGE_PATH
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_IMAGE_NAME
public static final String DEFAULT_IMAGE_PATH
Constructor Detail |
---|
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 hurryMethod Detail |
---|
public 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 void addMetadata(String attr, String value)
attr
- .value
- .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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |