public void addChoice(I_CmsWidgetService widgetService, final CmsChoiceMenuEntryBean menuEntry) {

        AsyncCallback<CmsChoiceMenuEntryBean> selectHandler = new AsyncCallback<CmsChoiceMenuEntryBean>() {

            public void onFailure(Throwable caught) {

                // will not be called

            }

            public void onSuccess(CmsChoiceMenuEntryBean selectedEntry) {

                m_attributeChoice.hide();
                selectChoice(selectedEntry.getPath());
            }
        };

        m_attributeChoice.addChoice(widgetService, menuEntry, selectHandler);
        m_isChoice = true;
    }
public void addChoice ( I_CmsWidgetService widgetService , final CmsChoiceMenuEntryBean menuEntry ) { AsyncCallback < CmsChoiceMenuEntryBean > selectHandler = new AsyncCallback < CmsChoiceMenuEntryBean > ( ) { public void onFailure ( Throwable caught ) { } public void onSuccess ( CmsChoiceMenuEntryBean selectedEntry ) { m_attributeChoice . hide ( ) ; selectChoice ( selectedEntry . getPath ( ) ) ; } } ; m_attributeChoice . addChoice ( widgetService , menuEntry , selectHandler ) ; m_isChoice = true ; }
Adds a new choice  choice selection menu.<p>

@param widgetService the widget service to use for labels
@param menuEntry the menu entry bean for the choice