public ActionValueEditor( final ActionFieldValue val,
final DropDownData enums,
RuleModeller modeller,
EventBus eventBus,
String variableType,
boolean readOnly ) {
this.readOnly = readOnly;
if ( val.getType().equals( DataType.TYPE_BOOLEAN ) ) {
this.enums = DropDownData.create( new String[]{ "true", "false" } );
} else {
this.enums = enums;
}
this.root = new SimplePanel();
this.value = val;
this.modeller = modeller;
this.model = modeller.getModel();
this.eventBus = eventBus;
this.variableType = variableType;
refresh();
initWidget( root );
}