org.outerj.xreporter.report.instance
Class Columns

java.lang.Object
  extended byorg.outerj.xreporter.report.instance.Columns

public class Columns
extends java.lang.Object

Information about columns for a report-instance.


Field Summary
protected static java.lang.String AVAILABLE_COLUMNS_EL
           
protected  java.util.ArrayList columns
          A list containing Column objects
protected static java.lang.String COLUMNS_EL
           
protected  java.util.HashMap columnsById
          Map containing Column objects.
protected static java.lang.String CURRENT_CONFIG_EL
           
protected  boolean customSettings
          Keeps track of whether the user changed the column configuration.
protected  DatabaseOutputDefinition dbOutputDefinition
           
 
Constructor Summary
Columns(DatabaseOutputDefinition dbOutputDefinition)
           
 
Method Summary
protected  void addColumn(ColumnDefinition columnDefinition)
           
protected  void clear()
           
 void generateSaxFragment(org.xml.sax.ContentHandler contentHandler, ResourceHandle resourceHandle)
          Generates SAX-events describing the current column configuration.
 Column getColumnById(java.lang.String columnId)
           
 java.util.List getColumns()
          Returns a list with ColumnDefinitions of the columns to show.
 Column[] getColumnsAsArray()
           
protected  void makeDefaultColumns()
           
 void reset()
           
 void storeState(ReportState reportState)
           
 void submit(java.util.Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbOutputDefinition

protected DatabaseOutputDefinition dbOutputDefinition

columns

protected java.util.ArrayList columns
A list containing Column objects


columnsById

protected java.util.HashMap columnsById
Map containing Column objects. It has the same contents as the columns List but hashed on column id


customSettings

protected boolean customSettings
Keeps track of whether the user changed the column configuration.


COLUMNS_EL

protected static final java.lang.String COLUMNS_EL
See Also:
Constant Field Values

CURRENT_CONFIG_EL

protected static final java.lang.String CURRENT_CONFIG_EL
See Also:
Constant Field Values

AVAILABLE_COLUMNS_EL

protected static final java.lang.String AVAILABLE_COLUMNS_EL
See Also:
Constant Field Values
Constructor Detail

Columns

public Columns(DatabaseOutputDefinition dbOutputDefinition)
Method Detail

submit

public void submit(java.util.Map values)
See Also:
ReportImpl.submitColumns(java.util.Map)

addColumn

protected void addColumn(ColumnDefinition columnDefinition)

reset

public void reset()

clear

protected void clear()

makeDefaultColumns

protected void makeDefaultColumns()

getColumns

public java.util.List getColumns()
Returns a list with ColumnDefinitions of the columns to show.


getColumnsAsArray

public Column[] getColumnsAsArray()

getColumnById

public Column getColumnById(java.lang.String columnId)

generateSaxFragment

public void generateSaxFragment(org.xml.sax.ContentHandler contentHandler,
                                ResourceHandle resourceHandle)
                         throws org.xml.sax.SAXException
Generates SAX-events describing the current column configuration. The methods startDocument and endDocument will not be called.

Throws:
org.xml.sax.SAXException

storeState

public void storeState(ReportState reportState)