Searched defs:Attribute (Results 1 - 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DAttributedCharacterIteratorTest.java155 * @tests java.text.AttributedCharacterIterator#getRunLimit(java.text.AttributedCharacterIterator$Attribute)
157 public void test_getRunLimitLjava_text_AttributedCharacterIterator$Attribute() {
159 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2,
163 2, it.getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE));
166 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null,
170 4, it.getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE));
/libcore/ojluni/src/main/java/java/text/
H A DAttributedCharacterIterator.java69 * Attribute keys are instances of {@link AttributedCharacterIterator.Attribute} and its
72 * @see AttributedCharacterIterator.Attribute
89 public static class Attribute implements Serializable { class in interface:AttributedCharacterIterator
92 * The name of this {@code Attribute}. The name is used primarily by {@code readResolve}
103 * Constructs an {@code Attribute} with the given name.
105 protected Attribute(String name) { method in class:AttributedCharacterIterator.Attribute
107 if (this.getClass() == Attribute.class) {
149 if (this.getClass() != Attribute.class) {
153 Attribute instanc
[all...]
H A DAttributedString.java29 import java.text.AttributedCharacterIterator.Attribute;
143 Map<? extends Attribute, ?> attributes)
233 Attribute[] attributes) {
271 Attribute attributeKey = (Attribute)itr.next();
316 public void addAttribute(Attribute attribute, Object value) {
341 public void addAttribute(Attribute attribute, Object value,
368 public void addAttributes(Map<? extends Attribute, ?> attributes, argument
396 addAttributeRunData((Attribute) entry.getKey(), entry.getValue(), beginRunIndex, endRunIndex);
400 private synchronized void addAttributeImpl(Attribute attribut
142 AttributedString(String text, Map<? extends Attribute, ?> attributes) argument
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldAttributedStringTest.java97 attrString2 = new AttributedString(iter, 2, 7, new AttributedCharacterIterator.Attribute[] {});
106 * int, int, AttributedCharacterIterator.Attribute[]) Test of method
108 * int, int, AttributedCharacterIterator.Attribute[]). Case 1: Try to
114 public void test_ConstructorLAttributedCharacterIteratorII$Ljava_text_AttributedCharacterIterator$Attribute() {
143 AttributedCharacterIterator.Attribute[] attributes = new AttributedCharacterIterator.Attribute[1];
154 * int, int, Map<? extends AttributedCharacterIterator.Attribute,?>)
158 * AttributedCharacterIterator.Attribute,?>). Case 1: Try to
170 new WeakHashMap<AttributedCharacterIterator.Attribute, String>());
185 Map<AttributedCharacterIterator.Attribute, Strin
[all...]

Completed in 120 milliseconds