|
||||||||||
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(List<DBTableRow> list)
add the references |
boolean |
addTextInput()
add an empty fillable text input |
boolean |
addTextInput(String content)
add a text input with some pre entered text |
boolean |
addTextInput(String content,
boolean isReadonly)
add text input |
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 usernameMethod Detail |
---|
public boolean addTitle()
addTitle
in interface Modeler
public boolean addTitle(String content, boolean isReadonly)
addTitle
in interface Modeler
content
- 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 Modeler
level
- of the heading
public boolean addHeading(int level, String content)
addHeading
in interface Modeler
level
- of the headingcontent
- the content you want to show in the heading
public boolean addHeading(int level, String content, boolean isReadonly)
addHeading
in interface Modeler
level
- 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()
addTextInput
in interface Modeler
public boolean addTextInput(String content)
addTextInput
in interface Modeler
content
- the content you want to show in the textbox
public boolean addTextInput(String content, boolean isReadonly)
addTextInput
in interface Modeler
content
- the content you want to show in the textboxisReadonly
- tells wether the user can edit the content ot not
public boolean addInstruction(String content)
addInstruction
in interface Modeler
content
- the content you want to show in the instruction
public boolean addReference(List<DBTableRow> list)
addReference
in interface Modeler
public boolean addAttributeComponent(String attrName, ArrayList<org.gcube.portlets.d4sreporting.common.shared.Attribute> values, boolean allowMultiselection)
addAttributeComponent
in interface Modeler
public boolean addMedia()
addMedia
in interface Modeler
public 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 |