All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.citytechinc.cq.component.dialog.maker.impl.DefaultWidgetMaker Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.citytechinc.cq.component.dialog.maker.impl;

import com.citytechinc.cq.component.dialog.DialogElement;
import com.citytechinc.cq.component.dialog.impl.SimpleWidget;
import com.citytechinc.cq.component.dialog.maker.AbstractWidgetMaker;
import com.citytechinc.cq.component.dialog.maker.WidgetMakerParameters;
import com.citytechinc.cq.component.dialog.widget.DefaultWidgetParameters;

public class DefaultWidgetMaker extends AbstractWidgetMaker {

    public DefaultWidgetMaker(WidgetMakerParameters parameters) {
        super(parameters);
    }

    @Override
    public DialogElement make(DefaultWidgetParameters widgetParameters) {

        widgetParameters.setXtype(parameters.getXtype());

        return new SimpleWidget(widgetParameters);

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy