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

com.citytechinc.cq.component.touchuidialog.widget.hidden.HiddenWidgetMaker Maven / Gradle / Ivy

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

import com.citytechinc.cq.component.annotations.widgets.Hidden;
import com.citytechinc.cq.component.touchuidialog.TouchUIDialogElement;
import com.citytechinc.cq.component.touchuidialog.widget.maker.AbstractTouchUIWidgetMaker;
import com.citytechinc.cq.component.touchuidialog.widget.maker.TouchUIWidgetMakerParameters;

public class HiddenWidgetMaker extends AbstractTouchUIWidgetMaker {

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

    @Override
    public TouchUIDialogElement 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