Code example for Spanned

Methods: toString

0
					Spanned dest, int dstart, int dend) 
			{ 
				try { 
					System.out.println(source + ":" + dest); 
					if(source.length()==0) 
						return null; 
					if(dest.toString()=="") 
						return null; 
					String result = prefix + getValue() + source + suffix; 
					int i = getValue()*10 + Integer.parseInt(source.toString()); 
					if(i<min || i>max) 
						return ""; 
					current = i; 
					refresh(); 
				} catch(Exception e) {} 
				return ""; 
			} 
	    	 
    	}}); 
	    edit.setOnKeyListener(new OnKeyListener() {                  
            @Override