package com.in28minutes.web.common.tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import com.in28minutes.web.common.util.TodoListUtils;

import java.io.IOException;



public class StatusLabelTag extends SimpleTagSupport {

	
	private boolean status;

	@Override
	public void doTag() throws JspException, IOException {

		JspWriter out = getJspContext().getOut();
		String statusLabel = TodoListUtils.getStatusLabel(status);
		out.print(statusLabel);

	}

	

	public void setStatus(boolean status) {
		this.status = status;
	}

}