Search in sources :

Example 1 with ViewModeConverterModel

use of org.devgateway.toolkit.forms.models.ViewModeConverterModel in project ocvn by devgateway.

the class GenericBootstrapFormComponent method onInitialize.

/*
     * (non-Javadoc)
     * 
     * @see org.apache.wicket.Component#onConfigure()
     */
@Override
protected void onInitialize() {
    super.onInitialize();
    if ((field instanceof RadioGroup) || (field instanceof CheckGroup)) {
        getAjaxFormChoiceComponentUpdatingBehavior();
    } else {
        getAjaxFormComponentUpdatingBehavior();
    }
    viewModeField = new Label("viewModeField", new ViewModeConverterModel<TYPE>(getModel()));
    viewModeField.setEscapeModelStrings(false);
    viewModeField.setVisibilityAllowed(ComponentUtil.isViewMode());
    border.add(viewModeField);
    tooltipLabel.setConfigWithTrigger(configWithTrigger);
}
Also used : RadioGroup(org.apache.wicket.markup.html.form.RadioGroup) Label(org.apache.wicket.markup.html.basic.Label) TooltipLabel(org.devgateway.toolkit.forms.wicket.components.TooltipLabel) CheckGroup(org.apache.wicket.markup.html.form.CheckGroup) ViewModeConverterModel(org.devgateway.toolkit.forms.models.ViewModeConverterModel)

Aggregations

Label (org.apache.wicket.markup.html.basic.Label)1 CheckGroup (org.apache.wicket.markup.html.form.CheckGroup)1 RadioGroup (org.apache.wicket.markup.html.form.RadioGroup)1 ViewModeConverterModel (org.devgateway.toolkit.forms.models.ViewModeConverterModel)1 TooltipLabel (org.devgateway.toolkit.forms.wicket.components.TooltipLabel)1