org.gcube.portlets.d4sreporting.common.server.serializables
Class Component

java.lang.Object
  extended by 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)
           
 
Method Summary
 int compareTo(Component o)
          compareTo Method uses the y to rodinate components
 Component getChild()
           
 int getHeight()
           
 List<S_Metadata> getMetadata()
           
 String getParamName()
           
 Serializable getPossibleContent()
           
 int getTemplatePage()
           
 ComponentType getType()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean hasChild()
           
 boolean isDoubleColLayout()
           
 boolean isLocked()
           
 void setChild(Component child)
           
 void setDoubleColLayout(boolean isDoubleColLayout)
           
 void setHeight(int height)
           
 void setLocked(boolean locked)
           
 void setMetadata(List<S_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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Content
possibleContent - .
isDoubleColLayout - tell if the comp. is double column
locked - .
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 -
Method Detail

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.