package spacer;

public class Spacer {

	private String width;

	private String height;

	private String style;

	private String btn;

	private boolean rendered;

	public Spacer() {
		// TODO Auto-generated constructor stub

		height = "50px";
		width = "300px";
		rendered = true;
		style = null;
		btn = "Switch on styleClass";
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public boolean isRendered() {
		return rendered;
	}

	public void setRendered(boolean rendered) {
		this.rendered = rendered;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String doStyle() {
		if (getStyle() == null) {
			setBtn("Switch off styleClass");
			setStyle("spacer");
		} else {
			setStyle(null);
			setBtn("Switch on styleClass");
		}
		// if("spacer".equals(getStyle())) setStyle(null);
		return null;
	}

	public String getBtn() {
		return btn;
	}

	public void setBtn(String btn) {
		this.btn = btn;
	}

}
