this.field.setValue( "=[" + listContent.substring( 1 ) + "]" );
}
private void showTypeChoice(ClickEvent w,
final FieldData con) {
final FormStylePopup form = new FormStylePopup( images.newexWiz(),
constants.FieldValue() );
Button lit = new Button( constants.LiteralValue() );
lit.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
con.setNature( FieldData.TYPE_LITERAL );
doTypeChosen( form );
}
} );
form.addAttribute( constants.LiteralValue() + ":",
widgets( lit,
new InfoPopup( constants.LiteralValue(),
constants.LiteralValTip() ) ) );
form.addRow( new HTML( "<hr/>" ) );
form.addRow( new SmallLabel( constants.AdvancedOptions() ) );
// If we are here, then there must be a bound variable compatible with
// me
if ( isThereABoundVariableToSet() == true ) {
Button variable = new Button( constants.BoundVariable() );
variable.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
con.setNature( FieldData.TYPE_VARIABLE );
doTypeChosen( form );
}
} );
form.addAttribute( constants.AVariable(),
widgets( variable,
new InfoPopup( constants.ABoundVariable(),
constants.BoundVariableTip() ) ) );
}
if ( isItAList() == true ) {
Button variable = new Button( constants.GuidedList() );
variable.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
String factCollectionType = sce.getParametricFieldType( factType,
field.getName() );
con.setNature( FieldData.TYPE_COLLECTION,
factCollectionType );
doTypeChosen( form );
}
} );
form.addAttribute( constants.AVariable(),
widgets( variable,
new InfoPopup( constants.AGuidedList(),
constants.AGuidedListTip() ) ) );
}
form.show();
}