Package java.text

Examples of java.text.Annotation


        } break;
        case EBIDI_EMBEDDING: bidiEmbedding = (byte)((Integer)o).intValue(); break;
        case EJUSTIFICATION: justification = ((Number)o).floatValue(); break;
        case EINPUT_METHOD_HIGHLIGHT: {
            if (o instanceof Annotation) {
                Annotation at = (Annotation)o;
                imHighlight = (InputMethodHighlight)at.getValue();
            } else {
                imHighlight = (InputMethodHighlight)o;
            }
        } break;
        case EINPUT_METHOD_UNDERLINE: imUnderline = (byte)((Integer)o).intValue();
View Full Code Here


  /**
   * @tests java.text.Annotation(Object)
   */
  public void testAnnotation() {
    assertNotNull(new Annotation(null));
    assertNotNull(new Annotation("value"));
  }
View Full Code Here

  /**
   * @tests java.text.Annotation.getValue()
   */
  public void testGetValue() {
    Annotation a = new Annotation(null);
    assertNull(a.getValue());
    a = new Annotation("value");
    assertEquals("value", a.getValue());
  }
View Full Code Here

  /**
   * @tests java.text.Annotation.toString()
   */
  public void testToString() {
        Annotation ant = new Annotation("HelloWorld");
        assertEquals("toString error.",
                     "java.text.Annotation[value=HelloWorld]",ant.toString());
        assertNotNull(new Annotation(null).toString());
        assertNotNull(new Annotation("value").toString());
  }
View Full Code Here

TOP

Related Classes of java.text.Annotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.