package org.richfaces.regressionarea.issues.rf7064;

import java.util.ArrayList;
import java.util.List;

import javax.faces.model.SelectItem;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name("editorBean")
@Scope(ScopeType.SESSION)
public class EditorBean {

	private String currentConfiguration = "simple";
	private String viewMode = "visual";
	private String value;
	private boolean liveUpdatesEnabled=false;
	private boolean useSeamText=false;
	
//	private static final String CONFIGS_PACKAGE = "/org/richfaces/demo/editor/";
	List<SelectItem> configurations = new ArrayList<SelectItem>();
	
	public EditorBean() {
		configurations.add(new SelectItem("simple", "Simple"));
		configurations.add(new SelectItem("advanced", "Advanced"));
	}
	
	public void resetValue() {
		value = "";
	}
	
	public String getCurrentConfiguration() {
		return currentConfiguration;
	}

	public void setCurrentConfiguration(String currentConfiguration) {
		this.currentConfiguration = currentConfiguration;
	}

	public List<SelectItem> getConfigurations() {
		return configurations;
	}

	public String getViewMode() {
		return viewMode;
	}

	public void setViewMode(String viewMode) {
		this.viewMode = viewMode;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isLiveUpdatesEnabled() {
		return liveUpdatesEnabled;
	}

	public void setLiveUpdatesEnabled(boolean liveUpdatesEnabled) {
		this.liveUpdatesEnabled = liveUpdatesEnabled;
	}

	public boolean isUseSeamText() {
		return useSeamText;
	}

	public void setUseSeamText(boolean useSeamText) {
		this.useSeamText = useSeamText;
	}	
	
}
