Difference: DpHipeTools (27 vs. 28)

Revision 282008-10-17 - JaimeSaiz

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

Adding Tools to HIPE

Line: 136 to 136
  The Modifier for the first Parameter of the crop task:
crop_modifier.jpg
Changed:
<
<
Currently the system contains basic implementation for the simple types Integer, Float, Long, Double so there's still a lot of space for improvements and contribution.
>
>
Currently the system contains basic implementation for the simple types Integer, Float, Long, Double and few more, so there's still a lot of space for improvements and contribution.
 
Changed:
<
<
If your Task Parameter isn't one of the mentioned types you need to:
>
>
If your Task Parameter isn't one of the mentioned types, you could:
 
  • Implement a Modifier
  • Register it to the system.
Added:
>
>
Alternatively, you could want to write your specific Modifier for one of the already available types. In that case, you could skip the registration, and just create your modifier in your Java code within a custom Signature Component.

In package herschel.ia.gui.apps.modifier you can find the general available modifiers.

 

Implement a Modifier
Changed:
<
<
The Modifier interface consists of two explicit contracts
>
>
The Modifier interface consists of two explicit contracts:
 
  • Support the drag and drop features (the set/getVariableSelection)
  • Support the inspection for Object (the set/getObject)
Changed:
<
<
and two implicit contracts inherited by the %EXTENSION_REGISTRY%
>
>
and two implicit contracts:
 
  • Be JComponent
Changed:
<
<
  • Have an empty constructor
>
>
 

Register a Modifier
Changed:
<
<
The registration of the Modifier is done again in the __init__.py via theExtensionRegistry with the usual syntax (please note the name of the factory: factory.modifier).
>
>
The registration of the Modifier is done again in the __init__.py via the Extension Registry with the usual syntax (please note the name of the factory: factory.modifier).
  Be aware that the registration is system wise so the registration overrides any other registered modifier for that type.
Line: 175 to 179
  parameter.setModifier(new MyModifer());
Added:
>
>
Warning, important If your Modifier is registered as the default one for a type, it may be instantiated during the initialization. This means that the JComponents used for your Modifier may not have the same GUI theme than the application, because the GUI theme is set just after the initialization of the registry. In that case, you may consider to write your custom Signature Component, which would be instantiated after the theme is set.
 
Line: 217 to 222
  Map<TaskParameter, Modifier> map = new LinkedHashMap<TaskParameter, Modifier>();
Changed:
<
<
map.put(signature.getTaskParameter("file"), new JFilePathModifier());
>
>
map.put(signature.getTaskParameter("file"), new JFilePathModifier(SAVE));
  map.put(signature.getTaskParameter("number"), new JIntegerModifier());

return map;

Line: 225 to 230
 }
Deleted:
<
<
In package herschel.ia.gui.apps.modifier you can find more general available modifiers.
 

Register a Task Signature Component
 
This site is powered by the TWiki collaboration platform Powered by Perl