org.gcube.application.reporting.sequence
Class ReportSequence

java.lang.Object
  extended by org.gcube.application.reporting.component.AbstractComponent
      extended by org.gcube.application.reporting.sequence.ReportSequence
All Implemented Interfaces:
ReportComponent, Sequentiable

public class ReportSequence
extends AbstractComponent
implements Sequentiable


Field Summary
 
Fields inherited from interface org.gcube.application.reporting.component.ReportComponent
COMP_HEIGHT, COMP_WIDTH
 
Constructor Summary
ReportSequence(String id)
           
 
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)
          (non-Javadoc)
 boolean addReference(ReferenceReport ref)
          add the references of a given type
 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
 List<ReportComponent> getChildren()
           
 org.gcube.portlets.d4sreporting.common.shared.BasicComponent getModelComponent()
           
 List<org.gcube.portlets.d4sreporting.common.shared.BasicComponent> getSequence()
           
 String getStringValue()
           
 ReportComponentType getType()
           
 boolean hasChildren()
           
 
Methods inherited from class org.gcube.application.reporting.component.AbstractComponent
convertProperties, getId, getProperties, setId, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportSequence

public ReportSequence(String id)
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(Property... 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,
                            Property... 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,
                            Property... 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
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<Box> 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

addAttributeComponent

public boolean addAttributeComponent(String attrName,
                                     ArrayList<Box> values,
                                     boolean allowMultiselection,
                                     Property... properties)
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
properties - additional properties that one may need, optional

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

addInstruction

public boolean addInstruction(String content)
(non-Javadoc)

Specified by:
addInstruction in interface Sequentiable
Returns:
See Also:
Sequentiable.addInstruction(java.lang.String)

getSequence

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

getType

public ReportComponentType getType()
Specified by:
getType in interface ReportComponent
Specified by:
getType in class AbstractComponent

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface ReportComponent
Specified by:
hasChildren in class AbstractComponent

getChildren

public List<ReportComponent> getChildren()
Specified by:
getChildren in interface ReportComponent
Specified by:
getChildren in class AbstractComponent

getStringValue

public String getStringValue()
Specified by:
getStringValue in interface ReportComponent
Specified by:
getStringValue in class AbstractComponent

getModelComponent

public org.gcube.portlets.d4sreporting.common.shared.BasicComponent getModelComponent()
Specified by:
getModelComponent in class AbstractComponent


Copyright © 2013. All Rights Reserved.