|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.application.reporting.ReportsModeler
public final class ReportsModeler
| Field Summary | |
|---|---|
static String |
DEFAULT_NAME
Styling attr, not used anymore but needed for backward compatibility |
| Fields inherited from interface org.gcube.application.reporting.Modeler |
|---|
TEMPLATE_HEIGHT, TEMPLATE_WIDTH |
| Constructor Summary | |
|---|---|
ReportsModeler(String id,
String name,
String author,
Date dateCreated,
Date lastEdit,
String lastEditorId)
|
|
| Method Summary | |
|---|---|
boolean |
addAttributeComponent(String attrName,
ArrayList<Box> values,
boolean allowMultiselection)
Add a attribute component to the model instance, allow to specify if is editable or not |
boolean |
addAttributeComponent(String attrName,
ArrayList<Box> values,
boolean allowMultiselection,
Property... properties)
Add a attribute component to the model instance, allow to specify if is editable or not |
boolean |
addHeading(int level)
add an empty fillable heading |
boolean |
addHeading(int level,
String content)
add an heading with a non editable content |
boolean |
addHeading(int level,
String content,
boolean isReadonly)
|
boolean |
addInstruction(String content)
|
boolean |
addMedia()
add the possibility to enter text, table or images in the report |
boolean |
addReference(ReferenceReport ref)
add the references of a given type |
boolean |
addSequence(ReportSequence seq)
add a sequence |
boolean |
addTextInput(Property... properties)
add an empty fillable text input |
boolean |
addTextInput(String content,
boolean isReadOnly,
Property... properties)
add text input |
boolean |
addTextInput(String content,
Property... properties)
add a text input with some pre entered text |
boolean |
addTitle()
add an empty fillable title |
boolean |
addTitle(String content,
boolean isReadonly)
|
org.gcube.portlets.d4sreporting.common.shared.Model |
getReportInstance()
|
int |
nextSection()
add a section, every add will point to this new section |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_NAME
| Constructor Detail |
|---|
public ReportsModeler(String id,
String name,
String author,
Date dateCreated,
Date lastEdit,
String lastEditorId)
a - the report unique idenntifiername - the report nameauthor - the authordateCreated - lastEdit - lastEditorId - last editor username| Method Detail |
|---|
public boolean addTitle()
addTitle in interface Modeler
public boolean addTitle(String content,
boolean isReadonly)
addTitle in interface Modelercontent - the content you want to show in the titleisReadonly - tells wether the user can edit the content ot not
public boolean addHeading(int level)
addHeading in interface Sequentiablelevel - of the heading
public boolean addHeading(int level,
String content)
addHeading in interface Sequentiablelevel - of the headingcontent - the content you want to show in the heading
public boolean addHeading(int level,
String content,
boolean isReadonly)
addHeading in interface Sequentiablelevel - of the headingcontent - the content you want to show in the headingisReadonly - tells wether the user can edit the content ot not
public boolean addTextInput(Property... properties)
addTextInput in interface Sequentiableproperties - additional properties that one may need, optional
public boolean addTextInput(String content,
Property... properties)
addTextInput in interface Sequentiablecontent - the content you want to show in the textboxproperties - additional properties that one may need, optional
public boolean addTextInput(String content,
boolean isReadOnly,
Property... properties)
addTextInput in interface Sequentiablecontent - the content you want to show in the textboxproperties - additional properties that one may need, optional
public boolean addInstruction(String content)
addInstruction in interface Sequentiablepublic boolean addReference(ReferenceReport ref)
addReference in interface Sequentiableref - @see ReferenceReport
public boolean addAttributeComponent(String attrName,
ArrayList<Box> values,
boolean allowMultiselection)
Sequentiable
addAttributeComponent in interface Sequentiable
public boolean addAttributeComponent(String attrName,
ArrayList<Box> values,
boolean allowMultiselection,
Property... properties)
Sequentiable
addAttributeComponent in interface Sequentiableproperties - additional properties that one may need, optionalpublic boolean addSequence(ReportSequence seq)
addSequence in interface Modelerpublic boolean addMedia()
addMedia in interface Modelerpublic int nextSection()
nextSection in interface Modeler
public org.gcube.portlets.d4sreporting.common.shared.Model getReportInstance()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||