org.gcube.portlets.d4sreporting.common.server.serializables
Class Component
java.lang.Object
org.gcube.portlets.d4sreporting.common.server.serializables.Component
- All Implemented Interfaces:
- Serializable, Comparable<Component>
public class Component
- extends Object
- implements Serializable, Comparable<Component>
Component class represent a template component that can be JAVA (Not GWT) serializable
the TemplateComponent class used in the model cannot be serializable since it contains the Widget used as component
and the Serializable component cannot be used by JAVA pure Serialization
- Version:
- October 2009 (1.4)
- Author:
- Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
- See Also:
- Serialized Form
|
Constructor Summary |
Component()
|
Component(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
Component child,
List<S_Metadata> metadata)
Constructor for Child components |
Component(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<S_Metadata> metadata)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Component
public Component()
Component
public Component(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
List<S_Metadata> metadata)
- Parameters:
x - .y - .width - .height - .templatePage - .type - .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 for this component
Component
public Component(int x,
int y,
int width,
int height,
int templatePage,
ComponentType type,
String paramName,
Serializable possibleContent,
boolean isDoubleColLayout,
boolean locked,
Component child,
List<S_Metadata> metadata)
- Constructor for Child components
- Parameters:
x - y - width - height - templatePage - type - paramName - possibleContent - isDoubleColLayout - locked - child - metadata -
getChild
public Component getChild()
- Returns:
setChild
public void setChild(Component child)
- Parameters:
child -
hasChild
public boolean hasChild()
getMetadata
public List<S_Metadata> getMetadata()
- Returns:
- .
setMetadata
public void setMetadata(List<S_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 - .
compareTo
public int compareTo(Component o)
- compareTo Method uses the y to rodinate components
- Specified by:
compareTo in interface Comparable<Component>
- Parameters:
o - the comomnent to compare
- Returns:
- 1 0 or -1
Copyright © 2013. All Rights Reserved.