attaching event with "ParameterTypeCategory"
mansoorbahrian
New Altair Community Member
Hello Everyone,
I am developing an operator for RapidMiner.
My question is how to attach an event the dropdownbox (i.e. ParameterTypeCategory), because I want to enable or disable few textfields on basis of selection.
I am developing an operator for RapidMiner.
My question is how to attach an event the dropdownbox (i.e. ParameterTypeCategory), because I want to enable or disable few textfields on basis of selection.
Tagged:
0
Answers
-
Hi,
you might attach Conditions on parameters, which will hide them if the condition is not met. For example this code:
type = new ParameterTypeCategory(PARAMETER_IO_OBJECT, "The class of the object(s) which should be checked for existance.", objectArray, 0);
type.registerDependencyCondition(new EqualStringCondition(this, PARAMETER_CONDITION_TYPE, true, CONDITION_INPUT_EXISTS));
type.setExpert(false);
types.add(type);
Greetings,
Sebastian0