org.gcube.application.reporting
Class ReportSequence

java.lang.Object
  extended by org.gcube.application.reporting.ReportSequence
All Implemented Interfaces:
Sequentiable

public class ReportSequence
extends Object
implements Sequentiable


Constructor Summary
ReportSequence()
           
 
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 addReference(ReferenceReport ref)
          add the references of a given type
 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
 List<org.gcube.portlets.d4sreporting.common.shared.BasicComponent> getSequence()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportSequence

public ReportSequence()
Method Detail

addHeading

public boolean addHeading(int level)
                   throws IllegalArgumentException
Description copied from interface: Sequentiable
add an empty fillable heading

Specified by:
addHeading in interface Sequentiable
Parameters:
level - of the heading
Returns:
true if the operation is performed with success, false otherwise
Throws:
IllegalArgumentException - if the heading is not [1, 5]

addHeading

public boolean addHeading(int level,
                          String content)
                   throws IllegalArgumentException
Description copied from interface: Sequentiable
add an heading with a non editable content

Specified by:
addHeading in interface Sequentiable
Parameters:
level - of the heading
content - the content you want to show in the heading
Returns:
true if the operation is performed with success, false otherwise
Throws:
IllegalArgumentException - if the heading is not [1, 5]

addHeading

public boolean addHeading(int level,
                          String content,
                          boolean isReadonly)
                   throws IllegalArgumentException
Specified by:
addHeading in interface Sequentiable
Parameters:
level - of the heading
content - the content you want to show in the heading
isReadonly - tells wether the user can edit the content ot not
Returns:
true if the operation is performed with success, false otherwise
Throws:
IllegalArgumentException - if the heading is not [1, 5]

addTextInput

public boolean addTextInput(org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
Description copied from interface: Sequentiable
add an empty fillable text input

Specified by:
addTextInput in interface Sequentiable
Parameters:
properties - additional properties that one may need, optional
Returns:
true if the operation is performed with success, false otherwise

addTextInput

public boolean addTextInput(String content,
                            org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
Description copied from interface: Sequentiable
add a text input with some pre entered text

Specified by:
addTextInput in interface Sequentiable
Parameters:
content - the content you want to show in the textbox
properties - additional properties that one may need, optional
Returns:
true if the operation is performed with success, false otherwise

addTextInput

public boolean addTextInput(String content,
                            boolean isReadonly,
                            org.gcube.portlets.d4sreporting.common.shared.Metadata... properties)
Description copied from interface: Sequentiable
add text input

Specified by:
addTextInput in interface Sequentiable
Parameters:
content - the content you want to show in the textbox
isReadonly - tells wether the user can edit the content ot not
properties - additional properties that one may need, optional
Returns:
true if the operation is performed with success, false otherwise

addAttributeComponent

public boolean addAttributeComponent(String attrName,
                                     ArrayList<org.gcube.portlets.d4sreporting.common.shared.Attribute> values,
                                     boolean allowMultiselection)
Description copied from interface: Sequentiable
Add a attribute component to the model instance, allow to specify if is editable or not

Specified by:
addAttributeComponent in interface Sequentiable

addReference

public boolean addReference(ReferenceReport ref)
add the references of a given type

Specified by:
addReference in interface Sequentiable
Parameters:
ref - @see ReferenceReport
Returns:
true if the operation is performed with success, false otherwise

getSequence

public List<org.gcube.portlets.d4sreporting.common.shared.BasicComponent> getSequence()


Copyright © 2013. All Rights Reserved.