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

de.jwic.controls.mobile.MFlipSwitch Maven / Gradle / Ivy

There is a newer version: 5.3.43
Show newest version
package de.jwic.controls.mobile;

import de.jwic.base.IControlContainer;
import de.jwic.base.JavaScriptSupport;
import de.jwic.controls.CheckBox;

/**
 * Created by boogie on 10/30/14.
 */
@JavaScriptSupport
public class MFlipSwitch extends CheckBox {

	protected String onText = "On";
	protected String offText = "Off";
	
	/**
	 * Constructs a new control instance and adds it to the specified
	 * container with the specified name. If the name is null,
	 * a unique name will be choosen by the container.
	 *
	 * @param container
	 * @param name
	 */
	public MFlipSwitch(IControlContainer container, String name) {
		super(container, name);
	}

	/**
	 * @return the onText
	 */
	public String getOnText() {
		return onText;
	}

	/**
	 * @param onText the onText to set
	 */
	public void setOnText(String onText) {
		this.onText = onText;
	}

	/**
	 * @return the offText
	 */
	public String getOffText() {
		return offText;
	}

	/**
	 * @param offText the offText to set
	 */
	public void setOffText(String offText) {
		this.offText = offText;
	}

	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy