Difference: DpHipeTools (8 vs. 9)

Revision 92008-02-14 - NicolaDeCandussio

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Adding Tools to HIPE

Line: 77 to 77
 
  • make your task appear as a tool within HIPE that can be ran against specific data.
Changed:
<
<

Task Input Dialog

>
>

Tools dialog

 
Deleted:
<
<
Default dialog, drag-and-drop features, dedicated dialogs The application is generating a default input dialog for all registered tasks within the software. As the system does not know the intent of your task, it can only provide a dry-listing of all requested parameters; such a dialog may not be suitable for your purposes.
 
Changed:
<
<
However, you may want to have more control over how the input parameters are presented to the user:
>
>
The system generates a default input dialog for all registered tasks within the software. As the system does not know the intent of your task, it can only provide a dry-listing of all requested parameters; such a dialog may not be suitable for your purposes.

As for instance you may want to have more control over how the input parameters are presented to the user:

 
  • you may only want to provide a sub-set of parameters (and leave the full-set to expert users on the command-line)
  • you may want to organize your parameters by grouping them in tabs, or putting a border around a group of parameters
  • you may want to have more informative tooltips, labels or even input fields that are more suitable for your task.
Added:
>
>
To adapt to these scenarios and more, the system provides three ways for customizing you Task dialogs:
  • Parameter Modifiers
  • Signature Components
  • Task Dialogs.

Parameter Modifiers

The system provides a default dialog displaying an input area for setting the values of the parameter. Based on the type of the value of the Task Parameter the input area dinamically load the most appropriated (and registered) component satisfying the contract of the Modifier.

Currently the system contains basic implementation for the simple types Integer, Float, Long, Double.

Signature Components

 For that you can implement a herschel.ia.task.gui.dialog.SignatureComponent and register it as follows (again in the __init__.py):
    REGISTRY.register(COMPONENT,Extension(

Line: 112 to 128
 See also the Extension Registry documentation for more details.

Note that your GUI component must have a default constructor!

Deleted:
<
<
 
Changed:
<
<

Parameter Modifiers

TODO: Default modifiers, specialized modifiers
>
>

Task Dialogs

The default dialog provided by the system is result of the composition of a main input area (TaskSignatureComponent) and a panel containing the buttons (JTaskButtonsPanel). The main panel is based
 

Task compliance

 
This site is powered by the TWiki collaboration platform Powered by Perl