|
||||||||||
| 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
|
static int |
TEMPLATE_HEIGHT
|
static int |
TEMPLATE_WIDTH
Styling attr, not used anymore but needed for backward compatibility |
| Constructor Summary | |
|---|---|
ReportsModeler(String id,
String name,
String author,
Date dateCreated,
Date lastEdit,
String lastEditorId)
|
|
| Method Summary | |
|---|---|
boolean |
addAttributeComponent(String attrName,
ArrayList<org.gcube.portlets.d4sreporting.common.shared.Attribute> values,
boolean allowMultiselection)
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)
add an instruction |
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(String identifier,
ReportSequence seq)
add a sequence |
boolean |
addTextInput(org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
add an empty fillable text input |
boolean |
addTextInput(String content,
boolean isReadonly,
org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
add text input |
boolean |
addTextInput(String content,
org.gcube.portlets.d4sreporting.common.shared.Metadata... 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 int TEMPLATE_WIDTH
public static final int TEMPLATE_HEIGHT
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(org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
addTextInput in interface Sequentiableproperties - additional properties that one may need, optional
public boolean addTextInput(String content,
org.gcube.portlets.d4sreporting.common.shared.Metadata... 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,
org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
addTextInput in interface Sequentiablecontent - the content you want to show in the textboxisReadonly - tells wether the user can edit the content ot notproperties - additional properties that one may need, optional
public boolean addInstruction(String content)
addInstruction in interface Modelercontent - the content you want to show in the instruction
public boolean addReference(ReferenceReport ref)
addReference in interface Sequentiableref - @see ReferenceReport
public boolean addAttributeComponent(String attrName,
ArrayList<org.gcube.portlets.d4sreporting.common.shared.Attribute> values,
boolean allowMultiselection)
addAttributeComponent in interface Sequentiable
public boolean addSequence(String identifier,
ReportSequence seq)
addSequence in interface Modeleridentifier - and identifier for this sequence
public 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 | |||||||||