com.centrasite.control.adapters.collection
Class BaseCollectionContext

java.lang.Object
  extended by com.centrasite.control.adapters.collection.BaseCollectionContext
All Implemented Interfaces:
CollectionContext
Direct Known Subclasses:
FlexLineColumnsCollectionContext

public class BaseCollectionContext
extends java.lang.Object
implements CollectionContext

Base implementation of the CollectionContext interface. Encapsulates the objects required by the interface as well as logic for executing report commands.


Constructor Summary
BaseCollectionContext(BaseAdapter adapter)
           
BaseCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener)
           
BaseCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener, com.centrasite.control.ReportInterface report)
           
 
Method Summary
 boolean doClientSideSorting(java.lang.String property)
          Check whether sorting for that column shall be done on the client side
 void executeReportCommand(java.lang.Class commandClass)
          Executes the first report command with the given type.
 void executeReportDefaultCommand()
          Executes the contained report's default command.
 com.centrasite.control.ActionContext getActionContext()
          Retrieves the ActionContext used by the ReportCollection and for executing report commands.
 BaseAdapter getAdapter()
          Retrieves the adapter using the collection.
 com.centrasite.control.ReportInterface getReport()
          Retrieves the ReportInterface.
 ReportCollectionListener getReportCollectionListener()
          Retrieves the ReportCollectionListener.
 com.softwareag.cis.plugin.command.Command getReportCommand(java.lang.Class commandClass)
          Retrieves report command instance from the given type.
 com.centrasite.control.discovery.ServerSideSortingInfo getServerSideSortingInfo()
           
 ToolbarExt getToolbar()
          Return the report toolbar.
 void initToolbar()
           
 void initToolbar(com.centrasite.control.commands.toolbar.ReportToolbar rtb, com.centrasite.control.ActionContext actionContext)
           
 boolean isContextMenuAllowed()
           
 void onSortColumn(com.softwareag.cis.server.util.SORTInfo sortInfo)
           
 void setActionContext(com.centrasite.control.ActionContext actionContext)
          Sets the ActionContext to be used by the ReportCollection.
 void setBrowsePage(boolean value)
           
 void setReport(com.centrasite.control.ReportInterface report)
          Sets the ReportInterface to be used.
 void setReportCollectionListener(ReportCollectionListener reportCollectionListener)
          Sets the ReportCollectionListener.
 void setServerSideSortingInfo(com.centrasite.control.discovery.ServerSideSortingInfo sortingInfo)
           
 void showPopupMenu(com.softwareag.cis.server.util.TREECollection treecollection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCollectionContext

public BaseCollectionContext(BaseAdapter adapter)

BaseCollectionContext

public BaseCollectionContext(BaseAdapter adapter,
                             ReportCollectionListener collectionListener)

BaseCollectionContext

public BaseCollectionContext(BaseAdapter adapter,
                             ReportCollectionListener collectionListener,
                             com.centrasite.control.ReportInterface report)
Method Detail

getAdapter

public BaseAdapter getAdapter()
Description copied from interface: CollectionContext
Retrieves the adapter using the collection.

Specified by:
getAdapter in interface CollectionContext
Returns:
adapter

executeReportDefaultCommand

public void executeReportDefaultCommand()
Description copied from interface: CollectionContext
Executes the contained report's default command. Uses the contained ActionContext.

Specified by:
executeReportDefaultCommand in interface CollectionContext

executeReportCommand

public void executeReportCommand(java.lang.Class commandClass)
Description copied from interface: CollectionContext
Executes the first report command with the given type. Uses the contained ActionContext.

Specified by:
executeReportCommand in interface CollectionContext

getReportCommand

public com.softwareag.cis.plugin.command.Command getReportCommand(java.lang.Class commandClass)
Description copied from interface: CollectionContext
Retrieves report command instance from the given type.

Specified by:
getReportCommand in interface CollectionContext
Returns:
command

getActionContext

public com.centrasite.control.ActionContext getActionContext()
Description copied from interface: CollectionContext
Retrieves the ActionContext used by the ReportCollection and for executing report commands.

Specified by:
getActionContext in interface CollectionContext
Returns:
action context

getReport

public com.centrasite.control.ReportInterface getReport()
Description copied from interface: CollectionContext
Retrieves the ReportInterface.

Specified by:
getReport in interface CollectionContext
Returns:
ReportInterface

getReportCollectionListener

public ReportCollectionListener getReportCollectionListener()
Description copied from interface: CollectionContext
Retrieves the ReportCollectionListener.

Specified by:
getReportCollectionListener in interface CollectionContext
Returns:
ReportCollectionListener

setActionContext

public void setActionContext(com.centrasite.control.ActionContext actionContext)
Description copied from interface: CollectionContext
Sets the ActionContext to be used by the ReportCollection.

Specified by:
setActionContext in interface CollectionContext

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

initToolbar

public void initToolbar()

initToolbar

public void initToolbar(com.centrasite.control.commands.toolbar.ReportToolbar rtb,
                        com.centrasite.control.ActionContext actionContext)

setBrowsePage

public void setBrowsePage(boolean value)

setReportCollectionListener

public void setReportCollectionListener(ReportCollectionListener reportCollectionListener)
Description copied from interface: CollectionContext
Sets the ReportCollectionListener.

Specified by:
setReportCollectionListener in interface CollectionContext

showPopupMenu

public void showPopupMenu(com.softwareag.cis.server.util.TREECollection treecollection)
Specified by:
showPopupMenu in interface CollectionContext

isContextMenuAllowed

public boolean isContextMenuAllowed()
Specified by:
isContextMenuAllowed in interface CollectionContext

doClientSideSorting

public boolean doClientSideSorting(java.lang.String property)
Description copied from interface: CollectionContext
Check whether sorting for that column shall be done on the client side

Specified by:
doClientSideSorting in interface CollectionContext
Returns:
true if to be sorted on client side

getToolbar

public ToolbarExt getToolbar()
Description copied from interface: CollectionContext
Return the report toolbar.

Specified by:
getToolbar in interface CollectionContext
Returns:
Toolbar

setServerSideSortingInfo

public void setServerSideSortingInfo(com.centrasite.control.discovery.ServerSideSortingInfo sortingInfo)
Specified by:
setServerSideSortingInfo in interface CollectionContext

getServerSideSortingInfo

public com.centrasite.control.discovery.ServerSideSortingInfo getServerSideSortingInfo()
Specified by:
getServerSideSortingInfo in interface CollectionContext

onSortColumn

public void onSortColumn(com.softwareag.cis.server.util.SORTInfo sortInfo)