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| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
BasicComponent |
getChild() |
int |
getHeight() |
String |
getId() |
List<Metadata> |
getMetadata() |
String |
getParamName() |
Serializable |
getPossibleContent() |
int |
getTemplatePage() |
ComponentType |
getType() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
hasChild() |
boolean |
isDoubleColLayout() |
boolean |
isLocked() |
void |
setChild(BasicComponent child) |
void |
setDoubleColLayout(boolean isDoubleColLayout) |
void |
setHeight(int height) |
void |
setId(String id) |
void |
setLocked(boolean locked) |
void |
setMetadata(List<Metadata> metadata) |
void |
setParamName(String paramName) |
void |
setPossibleContent(Serializable possibleContent) |
void |
setTemplatePage(int templatePage) |
void |
setType(ComponentType type) |
void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
String |
toString() |
public 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)
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 - metadatapublic 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)
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 - metadatapublic 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)
x - y - width - height - templatePage - type - isDoubleColLayout - locked - child - id - paramName - possibleContent - metadata - public String getId()
public void setId(String id)
id - an id for this componentpublic BasicComponent getChild()
public void setChild(BasicComponent child)
child - public boolean hasChild()
public int getHeight()
public void setHeight(int height)
height - .public int getTemplatePage()
public void setTemplatePage(int templatePage)
templatePage - .public ComponentType getType()
public void setType(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 Serializable getPossibleContent()
public void setPossibleContent(Serializable possibleContent)
possibleContent - .public String getParamName()
public void setParamName(String paramName)
paramName - .public boolean isDoubleColLayout()
public void setDoubleColLayout(boolean isDoubleColLayout)
isDoubleColLayout - .public boolean isLocked()
public void setLocked(boolean locked)
locked - .Copyright © 2014. All Rights Reserved.