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

com.citytechinc.cq.component.dialog.hidden.HiddenWidgetMaker Maven / Gradle / Ivy

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

import com.citytechinc.cq.component.annotations.widgets.Hidden;
import com.citytechinc.cq.component.dialog.DialogElement;
import com.citytechinc.cq.component.dialog.maker.AbstractWidgetMaker;
import com.citytechinc.cq.component.dialog.maker.WidgetMakerParameters;

public class HiddenWidgetMaker extends AbstractWidgetMaker {

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

    @Override
    public DialogElement make(HiddenWidgetParameters parameters) throws ClassNotFoundException {

        Hidden hiddenFieldAnnotation = getAnnotation(Hidden.class);

        parameters.setValue(hiddenFieldAnnotation.value());

        return new HiddenWidget(parameters);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy