// Path: src/com/akjava/gwt/html5/client/IInputRange.java
// public interface IInputRange {
// public void setMax(int max);
// public void setMin(int min);
// public int getMin();
// public int getMax();
// public void setValue(Integer value);
// public Integer getValue();
// public void setWidth(int width);
// public void setHeight(int height);
// public void setEnabled(boolean bool);
// public  void addInputRangeListener(InputRangeListener listener);
// public  void removeInputRangeListener(InputRangeListener listener);
// }
// 
// Path: src/com/akjava/gwt/html5/client/InputRangeListener.java
// public  interface InputRangeListener {
//  public void changed(int newValue);
// }


import com.akjava.gwt.html5.client.IInputRange;
import com.akjava.gwt.html5.client.InputRangeListener;
import com.google.gwt.user.client.ui.Label;

package com.akjava.gwt.html5.client.extra;


public class HTML5Builder {
	public static Label createRangeLabel(final String text,final IInputRange range){
		final Label label=new Label();
		label.setText(text+""+range.getValue());
		label.setStylePrimaryName("title");
		range.addInputRangeListener(new InputRangeListener() {
			@Override
			public void changed(int newValue) {
				label.setText(text+""+newValue);
			}
		});
		
		/*
		range.addChangeHandler(new ChangeHandler() {
			
			@Override
			public void onChange(ChangeEvent event) {
				label.setText(text+":"+range.getValue());
				
			}
		});*/
		/*
		range.addMouseUpHandler(new MouseUpHandler() {
			
			@Override
			public void onMouseUp(MouseUpEvent event) {
				label.setText(text+":"+range.getValue());
			}
		});
		*/
		
		return label;
	}
	//TODO add point
	public static Label createRangeLabel(final String text,final IInputRange range,final int divided){
		final Label label=new Label();
		label.setText(text+""+((double)range.getValue()/divided));
		label.setStylePrimaryName("title");

// Path: src/com/akjava/gwt/html5/client/IInputRange.java
// public interface IInputRange {
// public void setMax(int max);
// public void setMin(int min);
// public int getMin();
// public int getMax();
// public void setValue(Integer value);
// public Integer getValue();
// public void setWidth(int width);
// public void setHeight(int height);
// public void setEnabled(boolean bool);
// public  void addInputRangeListener(InputRangeListener listener);
// public  void removeInputRangeListener(InputRangeListener listener);
// }
// 
// Path: src/com/akjava/gwt/html5/client/InputRangeListener.java
// public  interface InputRangeListener {
//  public void changed(int newValue);
// }


// Path: src/com/akjava/gwt/html5/client/extra/HTML5Builder.java
import com.akjava.gwt.html5.client.IInputRange;
import com.akjava.gwt.html5.client.InputRangeListener;
import com.google.gwt.user.client.ui.Label;

package com.akjava.gwt.html5.client.extra;


public class HTML5Builder {
	public static Label createRangeLabel(final String text,final IInputRange range){
		final Label label=new Label();
		label.setText(text+""+range.getValue());
		label.setStylePrimaryName("title");
		range.addInputRangeListener(new InputRangeListener() {
			@Override
			public void changed(int newValue) {
				label.setText(text+""+newValue);
			}
		});
		
		/*
		range.addChangeHandler(new ChangeHandler() {
			
			@Override
			public void onChange(ChangeEvent event) {
				label.setText(text+":"+range.getValue());
				
			}
		});*/
		/*
		range.addMouseUpHandler(new MouseUpHandler() {
			
			@Override
			public void onMouseUp(MouseUpEvent event) {
				label.setText(text+":"+range.getValue());
			}
		});
		*/
		
		return label;
	}
	//TODO add point
	public static Label createRangeLabel(final String text,final IInputRange range,final int divided){
		final Label label=new Label();
		label.setText(text+""+((double)range.getValue()/divided));
		label.setStylePrimaryName("title");

		range.addInputRangeListener(new InputRangeListener() {
