 	import flash.text.TextFieldAutoSize;
 	import flash.text.TextFormatAlign;
 
-	public class ElasticListEntry extends FacetBoxElement {
+	public class ElasticListEntry extends FacetBoxElement {
 
-		//---------------------------------------
-		// CLASS CONSTANTS
-		//---------------------------------------
-		protected static var COLLAPSED_HEIGHT : int = 2;
-		protected static var MIN_HEIGHT : int = 20;
-		protected static var MAX_HEIGHT : int = 36;
-		//---------------------------------------
-		// PUBLIC VARIABLES
-		//---------------------------------------
-		public var num_tf : TextField;
-		public static var showTotals : Boolean = true;
+		//---------------------------------------
+		// CLASS CONSTANTS
+		//---------------------------------------
+		protected static var COLLAPSED_HEIGHT : int = 2;
+		protected static var MIN_HEIGHT : int = 20;
+		protected static var MAX_HEIGHT : int = 36;
+		//---------------------------------------
+		// PUBLIC VARIABLES
+		//---------------------------------------
+		public var num_tf : TextField;
+		public static var showTotals : Boolean = true;
 		public static var SHOW_DISTINCTIVENESS : Boolean = true;
 
-		//---------------------------------------
-		// CONSTRUCTOR
-		//---------------------------------------
-		public function ElasticListEntry() {
-			super();
-		}
+		//---------------------------------------
+		// CONSTRUCTOR
+		//---------------------------------------
+		public function ElasticListEntry() {
+			super();
+		}
 
-		override public function init(c : FacetBox, d : FacetValue) : void {
-			//override public function init(c:FacetBox, d:Object):void {
-			super.init(c, d);
-
-			//bg.height = height = ElasticListEntry.MAX_HEIGHT;
-			selectionMarker.y = 1;
-		}
+		override public function init(c : FacetBox, d : FacetValue) : void {
+			//override public function init(c:FacetBox, d:Object):void {
+			super.init(c, d);
 
-		override protected function initGraphics() : void {
-			if(!bg) {
-				bg = DefaultGraphicsFactory.getElasticListEntryBackground();
-				addChild(bg);
-			}
-			super.initGraphics();
-			if(!num_tf) {
-				num_tf = DefaultGraphicsFactory.getTextField();
-				num_tf.defaultTextFormat.align = TextFormatAlign.RIGHT;
-				addChild(num_tf);
-			}
-			title_tf.autoSize = TextFieldAutoSize.NONE;
-			title_tf.multiline = false;
-			num_tf.textColor = 0xAAAAAA;
-			bg.graphics.lineStyle(0, 0, .2);
-			bg.graphics.lineTo(bg.width, 0);
-		}
+			//bg.height = height = ElasticListEntry.MAX_HEIGHT;
+			selectionMarker.y = 1;
+		}
 
-		//---------------------------------------
-		// GETTER / SETTERS
+		override protected function initGraphics() : void {
+			if(!bg) {
+				bg = DefaultGraphicsFactory.getElasticListEntryBackground();
+				addChild(bg);
+			}
+			super.initGraphics();
+			if(!num_tf) {
+				num_tf = DefaultGraphicsFactory.getTextField();
+				num_tf.defaultTextFormat.align = TextFormatAlign.RIGHT;
+				addChild(num_tf);
+			}
+			title_tf.autoSize = TextFieldAutoSize.NONE;
+			title_tf.multiline = false;
+			num_tf.textColor = 0xAAAAAA;
+			bg.graphics.lineStyle(0, 0, .2);
+			bg.graphics.lineTo(bg.width, 0);
+		}
+
+		//---------------------------------------
+		// GETTER / SETTERS
 		//---------------------------------------
 		protected function layout() : void {
 			title_tf.x = 2;

			num_tf.visible = title_tf.visible = height > 15;
			num_tf.x = width - num_tf.width - 3 - 16;
			title_tf.width = num_tf.x - title_tf.x;
		}

		override public function set height( h : Number ) : void {
			bg.height = h;
			selectionMarker.height = h;
			layout();
		}

		override public function get height() : Number {
			return bg.height;
		}

		override public function set width( w : Number ) : void {
			selectionMarker.width = bg.width = w;
			layout();
		}

		override public function get width() : Number {
			return bg.width;
		}

		//---------------------------------------
		// STATS
		//---------------------------------------
		override public function updateStats() : void {
			super.updateStats();
			if (ElasticListEntry.showTotals && facetValue.totalNumContentItems && facetValue.totalNumContentItems != facetValue.numContentItems) {
				num_tf.text = facetValue.numContentItems + "/" + facetValue.totalNumContentItems;
			} else {
				num_tf.text = String(facetValue.numContentItems);
			}
			
			//num_tf.text = Math.round(100 * facetValue.distinctiveness) + "/" + facetValue.numContentItems + "/" + facetValue.totalNumContentItems;

   
 */

package eu.stefaner.elasticlists.ui.facetboxes.elasticlist {
	import eu.stefaner.elasticlists.data.FacetValue;
	import eu.stefaner.elasticlists.ui.DefaultGraphicsFactory;
	import eu.stefaner.elasticlists.ui.facetboxes.FacetBox;
