// Path: src/main/java/org/robotframework/formslibrary/operator/CheckboxOperator.java
// public class CheckboxOperator extends AbstractComponentOperator {
// 
//     /**
//      * Initialize an CheckboxOperator with the given check box component.
//      */
//     public CheckboxOperator(Component checkBox) {
//         super(checkBox);
//     }
// 
//     /**
//      * Initialize a CheckboxOperator with a check box that has the specified
//      * name in the current context.
//      * 
//      * @param identifier
//      *            checkbox label or ToolTip text.
//      */
//     public CheckboxOperator(String identifier) {
//         super(new ByNameChooser(identifier, ComponentType.CHECK_BOX));
//     }
// 
//     public boolean isChecked() {
//         return ObjectUtil.getBoolean(getSource(), "getState()");
//     }
// 
//     public void verifyNotChecked() {
//         if (isChecked()) {
//             throw new FormsLibraryException("Checkbox is checked.");
//         }
//     }
// 
//     public void verifyChecked() {
//         if (!isChecked()) {
//             throw new FormsLibraryException("Checkbox is not checked.");
//         }
//     }
// 
//     public void check() {
//         if (!isChecked()) {
//             ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//         }
//     }
// 
//     public void uncheck() {
//         if (isChecked()) {
//             ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//         }
//     }
// }


import org.robotframework.formslibrary.operator.CheckboxOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class CheckBoxKeywords {

	@RobotKeyword("Verify checkbox is not checked.\n\nExample:\n| Verify Checkbox Is Checked | _checkboxname_ | \n")
	@ArgumentNames({ "identifier" })
	public void verifyCheckboxIsChecked(String identifier) {

// Path: src/main/java/org/robotframework/formslibrary/operator/CheckboxOperator.java
// public class CheckboxOperator extends AbstractComponentOperator {
// 
//     /**
//      * Initialize an CheckboxOperator with the given check box component.
//      */
//     public CheckboxOperator(Component checkBox) {
//         super(checkBox);
//     }
// 
//     /**
//      * Initialize a CheckboxOperator with a check box that has the specified
//      * name in the current context.
//      * 
//      * @param identifier
//      *            checkbox label or ToolTip text.
//      */
//     public CheckboxOperator(String identifier) {
//         super(new ByNameChooser(identifier, ComponentType.CHECK_BOX));
//     }
// 
//     public boolean isChecked() {
//         return ObjectUtil.getBoolean(getSource(), "getState()");
//     }
// 
//     public void verifyNotChecked() {
//         if (isChecked()) {
//             throw new FormsLibraryException("Checkbox is checked.");
//         }
//     }
// 
//     public void verifyChecked() {
//         if (!isChecked()) {
//             throw new FormsLibraryException("Checkbox is not checked.");
//         }
//     }
// 
//     public void check() {
//         if (!isChecked()) {
//             ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//         }
//     }
// 
//     public void uncheck() {
//         if (isChecked()) {
//             ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//         }
//     }
// }


// Path: src/main/java/org/robotframework/formslibrary/keyword/CheckBoxKeywords.java
import org.robotframework.formslibrary.operator.CheckboxOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class CheckBoxKeywords {

	@RobotKeyword("Verify checkbox is not checked.\n\nExample:\n| Verify Checkbox Is Checked | _checkboxname_ | \n")
	@ArgumentNames({ "identifier" })
	public void verifyCheckboxIsChecked(String identifier) {

		new CheckboxOperator(identifier).verifyChecked();
