} );
form.addAttribute( GuidedRuleEditorResources.CONSTANTS.LiteralValue() + ":",
widgets( lit,
new InfoPopup( GuidedRuleEditorResources.CONSTANTS.Literal(),
GuidedRuleEditorResources.CONSTANTS.LiteralValTip() ) ) );
canTheVariableButtonBeShown( new Callback<Boolean>() {
@Override
public void callback( Boolean result ) {
if ( result ) {
addBoundVariableButton( form );
form.addRow( new HTML( "<hr/>" ) );
form.addRow( new SmallLabel( GuidedRuleEditorResources.CONSTANTS.AdvancedSection() ) );
}
//Formulas
Button formula = new Button( GuidedRuleEditorResources.CONSTANTS.NewFormula() );
formula.addClickHandler( new ClickHandler() {
public void onClick( ClickEvent event ) {
methodParameter.setNature( FieldNatureType.TYPE_FORMULA );
makeDirty();
refresh();
form.hide();
}
} );
form.addAttribute( GuidedRuleEditorResources.CONSTANTS.AFormula() + ":",
widgets( formula,
new InfoPopup( GuidedRuleEditorResources.CONSTANTS.AFormula(),
GuidedRuleEditorResources.CONSTANTS.FormulaExpressionTip() ) ) );
form.show();
}
} );