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

com.citytechinc.cq.component.dialog.checkbox.CheckBoxWidget Maven / Gradle / Ivy

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

import com.citytechinc.cq.component.annotations.config.Widget;
import com.citytechinc.cq.component.annotations.widgets.CheckBox;
import com.citytechinc.cq.component.dialog.AbstractWidget;

@Widget(annotationClass = CheckBox.class, makerClass = CheckBoxWidgetMaker.class, xtype = CheckBoxWidget.XTYPE)
public class CheckBoxWidget extends AbstractWidget {
	public static final String XTYPE = "checkbox";

	private final String inputValue;
	private final boolean checked;

	public CheckBoxWidget(CheckBoxWidgetParameters parameters) {
		super(parameters);
		this.inputValue = parameters.getInputValue();
		this.checked = parameters.isChecked();
	}

	public String getInputValue() {
		return inputValue;
	}

	public boolean isChecked() {
		return checked;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy