|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.user.templates.client.model.TemplateComponent
public class TemplateComponent
This class represent all the possible template components in the Model, they basically are 2D rectangles
A TemplateComponent specifies an area in a coordinate space that is
enclosed by the TemplateComponent object's top-left point
(x, y)
in the coordinate space, its width, and its height.
| Constructor Summary | |
|---|---|
TemplateComponent()
Creates a empty TemplateComponent |
|
TemplateComponent(TemplateModel myModel,
org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc,
Presenter controller,
boolean addControls)
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,
ArrayList<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
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()
|
TemplateComponent |
getChild()
|
com.google.gwt.user.client.ui.Widget |
getContent()
|
int |
getHeight()
Returns the height of the bounding TemplateComponent |
TemplateModel |
getMyModel()
|
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()
Returns the type of the TemplateComponent
A TemplateComponent can be of different types depeding on its content |
int |
getWidth()
Returns the width of the bounding TemplateComponent |
int |
getX()
Returns the X coordinate of the bounding TemplateComponent |
int |
getY()
|
boolean |
hasChild()
|
boolean |
isDoubleColLayout()
|
boolean |
isLocked()
used only for text areas |
void |
setChild(TemplateComponent child)
|
void |
setContent(com.google.gwt.user.client.ui.Widget content)
|
void |
setDoubleColLayout(boolean doubleColLayout)
|
void |
setHeight(int height)
|
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 |
| 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 columned
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)
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 Content
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,
ArrayList<org.gcube.portlets.d4sreporting.common.shared.Metadata> metadata)
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 Content
public TemplateComponent(TemplateModel myModel,
org.gcube.portlets.d4sreporting.common.shared.BasicComponent sc,
Presenter controller,
boolean addControls)
myModel - the modelsc - the serialiazble to convertcontroller - .| Method Detail |
|---|
public boolean isLocked()
public void setLocked(boolean locked)
public org.gcube.portlets.d4sreporting.common.shared.BasicComponent getSerializable()
public int getHeight()
TemplateComponent
TemplateComponent.public void setHeight(int height)
height - .public org.gcube.portlets.d4sreporting.common.shared.ComponentType getType()
TemplateComponent
A TemplateComponent can be of different types depeding on its content
classpublic void setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type)
type - .public int getWidth()
TemplateComponent
TemplateComponent.public void setWidth(int width)
width - .public int getX()
TemplateComponent
TemplateComponent.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 isDoubleColLayout()
public void setDoubleColLayout(boolean doubleColLayout)
public void addMetadata(String attr,
String value)
public List<org.gcube.portlets.d4sreporting.common.shared.Metadata> getAllMetadata()
public TemplateModel getMyModel()
public TemplateComponent getChild()
public void setChild(TemplateComponent child)
child - public boolean hasChild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||