public void bind(I_CmsStringModel model) {

        assert m_model == null;
        m_model = model;
        m_handlerRegistration = m_model.addValueChangeHandler(new ValueChangeHandler<String>() {

            public void onValueChange(ValueChangeEvent<String> event) {

                I_CmsFormWidget widget = getWidget();
                if ((widget instanceof I_CmsHasGhostValue)
                    && !CmsStringUtil.isEmptyOrWhitespaceOnly(event.getValue())) {
                    ((I_CmsHasGhostValue)widget).setGhostMode(false);
                }
                widget.setFormValueAsString(event.getValue());
            }
        });
    }
public void bind ( I_CmsStringModel model ) { assert m_model == null ; m_model = model ; m_handlerRegistration = m_model . addValueChangeHandler ( new ValueChangeHandler < String > ( ) { public void onValueChange ( ValueChangeEvent < String > event ) { I_CmsFormWidget widget = getWidget ( ) ; if ( ( widget instanceof I_CmsHasGhostValue ) && ! CmsStringUtil . isEmptyOrWhitespaceOnly ( event . getValue ( ) ) ) { ( ( I_CmsHasGhostValue ) widget ) . setGhostMode ( false ) ; } widget . setFormValueAsString ( event . getValue ( ) ) ; } } ) ; }
@see org.opencms.gwt.client.ui.input.I_CmsFormField#bind(org.opencms.gwt.client.ui.input.I_CmsStringModel)