|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CustomDSComponent
The CustomDSComponent is a helper interface that provides user interface component to the Framework.
This is the main interface that interacts with the Interactive Analysis Server / Processing layer plug-in implementation. After sending the source information,
the Framework gets the initial set of parameters from the server side plug-in, which is then used by this
plug-in to build the user interface. When the user selects the options provided, framework attempts to get the updated parameters by calling the
CustomDSComponent.getUpdatedDSParams() method. The updated parameters are sent to the server side plug-in for further processing. Depending on the
server-side plug-in's ability to interpret the updated parameters, it either sends the new set of parameters or returns the initial list if it does not have all the information
to access the data source.
If the server-side plug-in does not have all the information to access the data source, the Framework invokes the CustomDSComponent.processMissingDSParams(Map) method
with the data source parameters provided by the server side plug-in. The parameters are interpreted as part of the current set if the server side plug-in detects that
user has not provided the correct information required for accessing the data source. In this case, the plug-in must alert the user about missing information.
In the case of incremental building of information for accessing the data source, it can be a new set of parameters rather than the missing one.
Though a wizard-like flow is possible through incremental access of data source, the Framework does not support the capabilities of an actual wizard. A major limitation in this regard is the "Back" button. For edit operations, it is recommended that plug-in implementer must use the panel that appears before the Query panel. (that is, the last selection in the user interface for data source inputs).
CDSExtensionException| Method Summary | |
|---|---|
void |
free()
Notifies the plug-in to do any clean-up activities for the user interface component. |
java.lang.String |
getActionTitle()
Implementation of this method must return the localized String of the current action that user is expected to perform
on the user interface component. |
javax.swing.JComponent |
getUIComponent()
Implementation of this method must return the plug-in's user interface component. |
java.util.Map |
getUpdatedDSParams()
Implementation of this method must return the updated data source parameters from the plug-in. |
void |
processMissingDSParams(java.util.Map dsParams)
Invoked by the Framework to enable the plug-in process missing / new set of data source parameters. |
| Method Detail |
|---|
javax.swing.JComponent getUIComponent()
throws CDSExtensionException
CDSExtensionException - if the plug-in encounters any
Exception while trying to provide the user interface component.CDSExtensionExceptionjava.lang.String getActionTitle()
String of the current action that user is expected to perform
on the user interface component.
java.util.Map getUpdatedDSParams()
throws CDSExtensionException
Map containing updated data source parameters.
CDSExtensionException - if the plug-in encounters any
Exception while trying to provide the updated Map of data source parameters.CDSExtensionException
void processMissingDSParams(java.util.Map dsParams)
throws CDSExtensionException
dsParams - The map containing data source parameters as provided by the data provider source plug-in.
CDSExtensionException - if the plug-in encounters any
Exception while trying to process missing data source parameters.CDSExtensionExceptionvoid free()
This call marks the end of life-cycle of the plug-in's user interface component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||