package com.hmsoft.common.cell;

import javafx.beans.InvalidationListener;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.CheckBox;

public class checkbox {
	CheckBox checkbox = new CheckBox();

	public ObservableValue<CheckBox> getCheckBox() {
		return new ObservableValue<CheckBox>() {
			@Override
			public void addListener(ChangeListener<? super CheckBox> listener) {

			}

			@Override
			public void removeListener(ChangeListener<? super CheckBox> listener) {

			}

			@Override
			public CheckBox getValue() {
				return checkbox;
			}

			@Override
			public void addListener(InvalidationListener listener) {

			}

			@Override
			public void removeListener(InvalidationListener listener) {

			}
		};
	}

	public Boolean isSelected() {
		return checkbox.isSelected();
	}
}
