package org.azavea.otm.filters;

import org.azavea.otm.R;

import android.view.View;
import android.widget.ToggleButton;

public class BooleanFilter extends MapFilter {
	public boolean active;
	
	public BooleanFilter(String key, boolean active, String label) {
		this.key = key;
		this.active = active;
		this.label = label;
	}
	
	@Override
	public String toQueryStringParam() {
		return key + "=" + Boolean.toString(active);
	}

	@Override
	public void updateFromView(View view) {
		this.active = ((ToggleButton)view.findViewById(R.id.active)).isChecked();
	}

	@Override
	public boolean isActive() {
		return this.active;
	}
}

@@ -188,16 +188,17 @@
 tive;%0A%09%0A
+%0A
 %09public 
@@ -223,16 +223,226 @@
 ng key, 
+String label) %7B%0A%09%09initialize(key, label, false);%0A%09%7D%0A%09%0A%09public BooleanFilter(String key, String label, boolean active) %7B%0A%09%09initialize(key, label, active);%0A%09%7D%0A%09%0A%09private void initialize(String key, String label, 
 boolean 
@@ -447,30 +447,16 @@
 n active
-, String label
 ) %7B%0A%09%09th

Reorganize constructor parameters