org.gcube.portlets.d4sreporting.common.shared
Class BasicComponent
java.lang.Object
org.gcube.portlets.d4sreporting.common.shared.BasicComponent
- All Implemented Interfaces:
- Serializable
public class BasicComponent
- extends Object
- implements Serializable
SerializableComponent class represent a template component that can be serializable
the TemplateComponent class used in the model cannot be serializable since it contains the Widget used as component
- Author:
- Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
- See Also:
- Serialized Form
|
Constructor Summary |
BasicComponent()
Default Constructor for serialization |
BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
boolean isDoubleColLayout,
boolean locked,
BasicComponent child,
String idInBasket,
String paramName,
Serializable possibleContent,
List<Metadata> metadata)
NOT USED SO FAR |
BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType i,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<Metadata> metadata)
|
BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String idInBasket,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<Metadata> metadata)
|
BasicComponent
public BasicComponent()
- Default Constructor for serialization
BasicComponent
public BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType i,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<Metadata> metadata)
- Parameters:
x - .y - .width - .height - .templatePage - .i - .paramName - for assigning it a value when exporting to pdf, valid only for Dynamic ContentpossibleContent - .isDoubleColLayout - tell if the comp. is double columnlocked - .metadata - metadata
BasicComponent
public BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String idInBasket,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<Metadata> metadata)
- Parameters:
x - .y - .width - .height - .templatePage - .type - .id - .paramName - for assigning it a value when exporting to pdf, valid only for Dynamic ContentpossibleContent - .isDoubleColLayout - tell if the comp. is double columnlocked - .metadata - metadata
BasicComponent
public BasicComponent(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
boolean isDoubleColLayout,
boolean locked,
BasicComponent child,
String idInBasket,
String paramName,
Serializable possibleContent,
List<Metadata> metadata)
- NOT USED SO FAR
- Parameters:
x - y - width - height - templatePage - type - isDoubleColLayout - locked - child - id - paramName - possibleContent - metadata -
getId
public String getId()
- Returns:
- the id
setId
public void setId(String id)
- Parameters:
id - an id for this component
getChild
public BasicComponent getChild()
- Returns:
setChild
public void setChild(BasicComponent child)
- Parameters:
child -
hasChild
public boolean hasChild()
- Returns:
getMetadata
public List<Metadata> getMetadata()
- Returns:
- .
setMetadata
public void setMetadata(List<Metadata> metadata)
- Parameters:
metadata - .
getHeight
public int getHeight()
- Returns:
- .
setHeight
public void setHeight(int height)
- Parameters:
height - .
getTemplatePage
public int getTemplatePage()
- Returns:
- .
setTemplatePage
public void setTemplatePage(int templatePage)
- Parameters:
templatePage - .
getType
public ComponentType getType()
- Returns:
- .
setType
public void setType(ComponentType type)
- Parameters:
type - .
getWidth
public int getWidth()
- Returns:
- .
setWidth
public void setWidth(int width)
- Parameters:
width - .
getX
public int getX()
- Returns:
- .
setX
public void setX(int x)
- Parameters:
x - .
getY
public int getY()
- Returns:
- .
setY
public void setY(int y)
- Parameters:
y - .
getPossibleContent
public Serializable getPossibleContent()
- Returns:
- .
setPossibleContent
public void setPossibleContent(Serializable possibleContent)
- Parameters:
possibleContent - .
getParamName
public String getParamName()
- Returns:
- the paramName
setParamName
public void setParamName(String paramName)
- Parameters:
paramName - .
isDoubleColLayout
public boolean isDoubleColLayout()
- Returns:
- .
setDoubleColLayout
public void setDoubleColLayout(boolean isDoubleColLayout)
- Parameters:
isDoubleColLayout - .
isLocked
public boolean isLocked()
- Returns:
- .
setLocked
public void setLocked(boolean locked)
- Parameters:
locked - .
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014. All Rights Reserved.