com.centrasite.control.adapters.collection
Class FlexLineColumnsCollectionContext

java.lang.Object
  extended by com.centrasite.control.adapters.collection.BaseCollectionContext
      extended by com.centrasite.control.adapters.collection.FlexLineColumnsCollectionContext
All Implemented Interfaces:
CollectionContext, com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

public class FlexLineColumnsCollectionContext
extends BaseCollectionContext
implements com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

CollectionContext implementation suitable for usage with ReportCollection instances supporting dynamic columns and using FLEXLine control. Encapsulates logic outside the collection so that different types of collections can use it. This way the collections do not need to extend some base class and makes possible extending Application Designer specific collections.


Constructor Summary
FlexLineColumnsCollectionContext(BaseAdapter adapter)
           
FlexLineColumnsCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener)
           
FlexLineColumnsCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener, com.centrasite.control.ReportInterface report)
           
 
Method Summary
 com.softwareag.cis.server.util.FLEXLINEInfo getColumns()
          Return the FLEXLINEInfo which renders the dynamic columns definitions.
 java.util.List<java.lang.String> getDynamicAccessProperties()
           
 FlexLineColumnsProvider getFlexLineContentProvider()
           
 com.softwareag.cis.server.util.FLEXLINEInfo getLineContent()
          Return the FLEXLINEInfo which renders each line's content as control definitions.
 java.util.List<java.lang.String> getVisibleHeadings()
           
 void initColumns()
           
 void populateColums()
           
 void reactOnContextMenuRequest(com.softwareag.cis.server.util.ISSSARRAYInfo collection, com.softwareag.cis.server.util.GRIDCOLHEADERInfo colInfo)
           
 void reactOnDoubleClick(com.softwareag.cis.server.util.ISSSARRAYInfo collection, com.softwareag.cis.server.util.GRIDCOLHEADERInfo selectedColumn, com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
           
 void reactOnMove(com.softwareag.cis.server.util.ISSSARRAYInfo collection, com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
           
 void reactOnResize(com.softwareag.cis.server.util.ISSSARRAYInfo collection, com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
           
 void setFlexLineContentProvider(FlexLineColumnsProvider flexLineContentProvider)
           
 void setReport(com.centrasite.control.ReportInterface report)
          Sets the ReportInterface to be used.
 
Methods inherited from class com.centrasite.control.adapters.collection.BaseCollectionContext
doClientSideSorting, executeReportCommand, executeReportDefaultCommand, getActionContext, getAdapter, getReport, getReportCollectionListener, getReportCommand, getServerSideSortingInfo, getToolbar, initToolbar, initToolbar, isContextMenuAllowed, onSortColumn, setActionContext, setBrowsePage, setReportCollectionListener, setServerSideSortingInfo, showPopupMenu
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexLineColumnsCollectionContext

public FlexLineColumnsCollectionContext(BaseAdapter adapter)
Parameters:
adapter -

FlexLineColumnsCollectionContext

public FlexLineColumnsCollectionContext(BaseAdapter adapter,
                                        ReportCollectionListener collectionListener)
Parameters:
adapter -
collectionListener -

FlexLineColumnsCollectionContext

public FlexLineColumnsCollectionContext(BaseAdapter adapter,
                                        ReportCollectionListener collectionListener,
                                        com.centrasite.control.ReportInterface report)
Parameters:
adapter -
collectionListener -
report -
Method Detail

getColumns

public com.softwareag.cis.server.util.FLEXLINEInfo getColumns()
Return the FLEXLINEInfo which renders the dynamic columns definitions.

Returns:
FLEXLINEInfo

getLineContent

public com.softwareag.cis.server.util.FLEXLINEInfo getLineContent()
Return the FLEXLINEInfo which renders each line's content as control definitions.

Returns:
FLEXLINEInfo

initColumns

public void initColumns()

getVisibleHeadings

public java.util.List<java.lang.String> getVisibleHeadings()

populateColums

public void populateColums()

getDynamicAccessProperties

public java.util.List<java.lang.String> getDynamicAccessProperties()

reactOnContextMenuRequest

public void reactOnContextMenuRequest(com.softwareag.cis.server.util.ISSSARRAYInfo collection,
                                      com.softwareag.cis.server.util.GRIDCOLHEADERInfo colInfo)
Specified by:
reactOnContextMenuRequest in interface com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

reactOnDoubleClick

public void reactOnDoubleClick(com.softwareag.cis.server.util.ISSSARRAYInfo collection,
                               com.softwareag.cis.server.util.GRIDCOLHEADERInfo selectedColumn,
                               com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
Specified by:
reactOnDoubleClick in interface com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

reactOnMove

public void reactOnMove(com.softwareag.cis.server.util.ISSSARRAYInfo collection,
                        com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
Specified by:
reactOnMove in interface com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

reactOnResize

public void reactOnResize(com.softwareag.cis.server.util.ISSSARRAYInfo collection,
                          com.softwareag.cis.server.util.GRIDCOLHEADERInfo[] colInfo)
Specified by:
reactOnResize in interface com.softwareag.cis.server.util.IGRIDCOLHEADERChangeListener

getFlexLineContentProvider

public FlexLineColumnsProvider getFlexLineContentProvider()
Returns:
the flexLineContentProvider

setFlexLineContentProvider

public void setFlexLineContentProvider(FlexLineColumnsProvider flexLineContentProvider)
Parameters:
flexLineContentProvider - the flexLineContentProvider to set

setReport

public void setReport(com.centrasite.control.ReportInterface report)
Description copied from interface: CollectionContext
Sets the ReportInterface to be used.

Specified by:
setReport in interface CollectionContext
Overrides:
setReport in class BaseCollectionContext