Lines Matching defs:attr

203             AttributeSet     attr;
210 attr = e.getAttributes();
211 name = attr.getAttribute(StyleConstants.NameAttribute);
214 if (attr != null) {
215 if (attr.isDefined(HTML.Attribute.ID)) {
217 cacheLookup.append(attr.getAttribute
220 else if (attr.isDefined(HTML.Attribute.CLASS)) {
222 cacheLookup.append(attr.getAttribute
230 attr = e.getAttributes();
233 Object testAttr = attr.getAttribute(t);
235 attr = (AttributeSet)testAttr;
238 attr = null;
241 if (attr != null) {
242 if (attr.isDefined(HTML.Attribute.ID)) {
244 cacheLookup.append(attr.getAttribute(HTML.Attribute.ID));
246 else if (attr.isDefined(HTML.Attribute.CLASS)) {
248 cacheLookup.append(attr.getAttribute
502 public void addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key,
504 css.addInternalCSSValue(attr, key, value);
512 public boolean addCSSAttributeFromHTML(MutableAttributeSet attr,
516 attr.addAttribute(key, iValue);
587 * @param attr the attributes to add
591 public AttributeSet addAttributes(AttributeSet old, AttributeSet attr) {
592 if (!(attr instanceof HTMLDocument.TaggedAttributeSet)) {
593 old = removeHTMLTags(old, attr);
595 return super.addAttributes(old, convertAttributeSet(attr));
689 * For any StyleConstants key in attr that has an associated HTML.Tag,
692 private AttributeSet removeHTMLTags(AttributeSet old, AttributeSet attr) {
693 if (!(attr instanceof LargeConversionSet) &&
694 !(attr instanceof SmallConversionSet)) {
695 Enumeration names = attr.getAttributeNames();
978 * <code>attr</code>.
980 ImageIcon getBackgroundImage(AttributeSet attr) {
981 Object value = attr.getAttribute(CSS.Attribute.BACKGROUND_IMAGE);
1424 AttributeSet attr = linkedStyleSheets.elementAt(counter).getRule(selector);
1425 if (attr == null) {
1429 attrs[counter + numStyles] = attr;
1463 AttributeSet attr = e.getAttributes();
1466 Object testAttr = attr.getAttribute(t);
1468 attr = (AttributeSet)testAttr;
1471 attr = null;
1474 if (attr != null) {
1475 HTML.Tag tag = (HTML.Tag)attr.getAttribute(StyleConstants.
1483 if (attr.isDefined(HTML.Attribute.CLASS)) {
1484 classes[counter] = attr.getAttribute
1490 if (attr.isDefined(HTML.Attribute.ID)) {
1491 ids[counter] = attr.getAttribute(HTML.Attribute.ID).
1938 AttributeSet attr;
1941 && (attr = v.getElement().getAttributes()) != null
1942 && (obj = attr.getAttribute(StyleConstants.NameAttribute)) instanceof HTML.Tag
2024 ListPainter(AttributeSet attr, StyleSheet ss) {
2027 String imgstr = (String)attr.getAttribute(CSS.Attribute.
2057 type = (CSS.Value)attr.getAttribute(CSS.Attribute.
2102 AttributeSet attr = element.getAttributes();
2104 if (attr != null && attr.isDefined(HTML.Attribute.START) &&
2105 (startValue = attr.getAttribute
2658 AttributeSet attr = (AttributeSet)o;
2659 if (attr.getAttribute(HTML.Attribute.HREF) == null) {
2832 synchronized void insertExtendedStyleAt(Style attr, int index) {
2833 insertAttributeSetAt(attr, extendedIndex + index);
2840 synchronized void addExtendedStyle(Style attr) {
2841 insertAttributeSetAt(attr, getAttributes().length);