public class BaseCollectionContext extends java.lang.Object implements CollectionContext
CollectionContext
interface.
Encapsulates the objects required by the interface as well as logic for executing report commands.Constructor and Description |
---|
BaseCollectionContext(BaseAdapter adapter) |
BaseCollectionContext(BaseAdapter adapter,
ReportCollectionListener collectionListener) |
BaseCollectionContext(BaseAdapter adapter,
ReportCollectionListener collectionListener,
com.centrasite.control.ReportInterface report) |
Modifier and Type | Method and Description |
---|---|
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) |
public BaseCollectionContext(BaseAdapter adapter)
public BaseCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener)
public BaseCollectionContext(BaseAdapter adapter, ReportCollectionListener collectionListener, com.centrasite.control.ReportInterface report)
public BaseAdapter getAdapter()
CollectionContext
getAdapter
in interface CollectionContext
public void executeReportDefaultCommand()
CollectionContext
ActionContext
.executeReportDefaultCommand
in interface CollectionContext
public void executeReportCommand(java.lang.Class commandClass)
CollectionContext
ActionContext
.executeReportCommand
in interface CollectionContext
public com.softwareag.cis.plugin.command.Command getReportCommand(java.lang.Class commandClass)
CollectionContext
getReportCommand
in interface CollectionContext
public com.centrasite.control.ActionContext getActionContext()
CollectionContext
ActionContext
used by the ReportCollection
and for executing report commands.getActionContext
in interface CollectionContext
public com.centrasite.control.ReportInterface getReport()
CollectionContext
ReportInterface
.getReport
in interface CollectionContext
public ReportCollectionListener getReportCollectionListener()
CollectionContext
ReportCollectionListener
.getReportCollectionListener
in interface CollectionContext
public void setActionContext(com.centrasite.control.ActionContext actionContext)
CollectionContext
ActionContext
to be used by the ReportCollection
.setActionContext
in interface CollectionContext
public void setReport(com.centrasite.control.ReportInterface report)
CollectionContext
ReportInterface
to be used.setReport
in interface CollectionContext
public void initToolbar()
public void initToolbar(com.centrasite.control.commands.toolbar.ReportToolbar rtb, com.centrasite.control.ActionContext actionContext)
public void setBrowsePage(boolean value)
public void setReportCollectionListener(ReportCollectionListener reportCollectionListener)
CollectionContext
ReportCollectionListener
.setReportCollectionListener
in interface CollectionContext
public void showPopupMenu(com.softwareag.cis.server.util.TREECollection treecollection)
showPopupMenu
in interface CollectionContext
public boolean isContextMenuAllowed()
isContextMenuAllowed
in interface CollectionContext
public boolean doClientSideSorting(java.lang.String property)
CollectionContext
doClientSideSorting
in interface CollectionContext
public ToolbarExt getToolbar()
CollectionContext
getToolbar
in interface CollectionContext
public void setServerSideSortingInfo(com.centrasite.control.discovery.ServerSideSortingInfo sortingInfo)
setServerSideSortingInfo
in interface CollectionContext
public com.centrasite.control.discovery.ServerSideSortingInfo getServerSideSortingInfo()
getServerSideSortingInfo
in interface CollectionContext
public void onSortColumn(com.softwareag.cis.server.util.SORTInfo sortInfo)