Exemplo n.º 1
0
        public string FormatNumber(double number, string pattern)
        {
            java.text.DecimalFormat frm = new java.text.DecimalFormat("", javaFormat);

            frm.applyLocalizedPattern(pattern);

            //TODO: the next 4 string could be replaced by just
            //return frm.format (number);
            //I don't want to do that before release
            java.lang.StringBuffer  buffer = new java.lang.StringBuffer();
            java.text.FieldPosition fld    = new java.text.FieldPosition(0);

            frm.format(number, buffer, fld);
            return(buffer.ToString());
        }
		public string FormatNumber (double number, string pattern)
		{
			java.text.DecimalFormat frm = new java.text.DecimalFormat("", javaFormat);

			frm.applyLocalizedPattern (pattern);

			//TODO: the next 4 string could be replaced by just 
			//return frm.format (number);
			//I don't want to do that before release
			java.lang.StringBuffer buffer= new java.lang.StringBuffer ();
			java.text.FieldPosition fld = new java.text.FieldPosition (0);

			frm.format (number, buffer, fld);
			return buffer.ToString();
		}
Exemplo n.º 3
0
 public override global::java.lang.StringBuffer format(java.lang.Object arg0, java.lang.StringBuffer arg1, java.text.FieldPosition arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         return(global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.text.NumberFormat._format15126, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as java.lang.StringBuffer);
     }
     else
     {
         return(global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.text.NumberFormat.staticClass, global::java.text.NumberFormat._format15126, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as java.lang.StringBuffer);
     }
 }
Exemplo n.º 4
0
 public abstract global::java.lang.StringBuffer format(long arg0, java.lang.StringBuffer arg1, java.text.FieldPosition arg2);
Exemplo n.º 5
0
 public override java.lang.StringBuffer format(System.DateTime date, java.lang.StringBuffer
                                               buffer, java.text.FieldPosition fieldPos)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 6
0
 private void append(java.lang.StringBuffer buffer, java.text.FieldPosition position
                     , java.util.List <java.text.FieldPosition> fields, char format_1, int count)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 7
0
 private java.lang.StringBuffer formatImpl(System.DateTime date, java.lang.StringBuffer
                                           buffer, java.text.FieldPosition field, java.util.List <java.text.FieldPosition>
                                           fields)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 8
0
 public abstract java.lang.StringBuffer format(System.DateTime date, java.lang.StringBuffer
                                               buffer, java.text.FieldPosition field);
Exemplo n.º 9
0
 public sealed override java.lang.StringBuffer format(object @object, java.lang.StringBuffer
                                                      buffer, java.text.FieldPosition field)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 10
0
 public abstract java.lang.StringBuffer format(object @object, java.lang.StringBuffer
                                               buffer, java.text.FieldPosition field);