attached is another small patch from Guilhem adding missing methods in FieldPosition. Please review & check in.
cheers, dalibor topic
2003-11-15 Guilhem Lavaux <[EMAIL PROTECTED]>
* java/text/FieldPosition.java (field_attribute): New field. (FieldPosition (Format.Field), FieldPosition(Format.Field, int), getFieldAttribute) New methods.
--- /var/tmp/PROJECTS/classpath//./java/text/FieldPosition.java Tue Jan 22 23:27:01 2002 +++ java/text/FieldPosition.java Tue Aug 26 11:29:53 2003 @@ -65,6 +65,38 @@ private int end; /** + * This is the field attribute value. + */ + private Format.Field field_attribute; + + /** + * This method initializes a new instance of <code>FieldPosition</code> + * to have the specified field attribute. The attribute will be used as + * an id. + * + * @param field The field format attribute. + */ + public FieldPosition (Format.Field field) + { + this.field_attribute = field; + } + + /** + * This method initializes a new instance of <code>FieldPosition</code> + * to have the specified field attribute. The attribute will be used as + * an id is non null. The integer field id is only used if the Format.Field + * attribute is not used by the formatter. + * + * @param field The field format attribute. + * @param field_id The field identifier value. + */ + public FieldPosition (Format.Field field, int field_id) + { + this.field_attribute = field; + this.field_id = field_id; + } + + /** * This method initializes a new instance of <code>FieldPosition</code> to * have the specified field id. * @@ -83,6 +115,11 @@ public int getField () { return field_id; + } + + public Format.Field getFieldAttribute () + { + return field_attribute; } /**
_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath