|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Modeler
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> dBTableRows)
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)
|
int |
nextSection()
add a section, every add will point to this new section |
Method Detail |
---|
boolean addTitle()
boolean addTitle(String content, boolean isReadonly)
content
- the content you want to show in the titleisReadonly
- tells wether the user can edit the content ot not
boolean addHeading(int level) throws IllegalArgumentException
level
- of the heading
IllegalArgumentException
- if the heading is not [1, 5]boolean addHeading(int level, String content) throws IllegalArgumentException
level
- of the headingcontent
- the content you want to show in the heading
IllegalArgumentException
- if the heading is not [1, 5]boolean addHeading(int level, String content, boolean isReadonly) throws IllegalArgumentException
level
- of the headingcontent
- the content you want to show in the headingisReadonly
- tells wether the user can edit the content ot not
IllegalArgumentException
- if the heading is not [1, 5]boolean addTextInput()
boolean addTextInput(String content)
content
- the content you want to show in the textbox
boolean addTextInput(String content, boolean isReadonly)
content
- the content you want to show in the textboxisReadonly
- tells wether the user can edit the content ot not
boolean addInstruction(String content)
content
- the content you want to show in the instruction
boolean addAttributeComponent(String attrName, ArrayList<org.gcube.portlets.d4sreporting.common.shared.Attribute> values, boolean allowMultiselection)
type
- the type of the componentpayload
- the payload, a text if is a heading or body, an encoded base64 string if an image and so onisEditable
- allow the component to be edited or notboolean addReference(List<DBTableRow> dBTableRows)
list
- of @see Tuple
boolean addMedia()
int nextSection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |