Lines Matching defs:attr

441      * @param attr the attributes
443 protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) {
444 if(attr == null) {
445 attr = contentAttributeSet;
449 else if (attr.isDefined(StyleConstants.ComposedTextAttribute)) {
450 ((MutableAttributeSet)attr).addAttributes(contentAttributeSet);
453 if (attr.isDefined(IMPLIED_CR)) {
454 ((MutableAttributeSet)attr).removeAttribute(IMPLIED_CR);
457 super.insertUpdate(chng, attr);
508 MutableAttributeSet attr =
512 attr.removeAttributes(attr);
514 attr.addAttributes(s);
748 AttributeSet attr = next.getAttributes();
749 if (matchNameAttribute(attr, HTML.Tag.FRAME)) {
750 String frameTarget = (String)attr.getAttribute(HTML.Attribute.NAME);
763 * @param attr the attributes to be matched
768 static boolean matchNameAttribute(AttributeSet attr, HTML.Tag tag) {
769 Object o = attr.getAttribute(StyleConstants.NameAttribute);
820 MutableAttributeSet attr = (MutableAttributeSet) element.getAttributes();
822 attr.removeAttribute(HTML.Attribute.SRC);
823 attr.addAttribute(HTML.Attribute.SRC, url);
1450 AttributeSet attr = e.getAttributes();
1452 if (attr != null && attr.isDefined(attribute)) {
1453 if (value.equals(attr.getAttribute(attribute))) {
1468 else if (searchLeafAttributes && attr != null) {
1471 Enumeration names = attr.getAttributeNames();
1476 (attr.getAttribute(name) instanceof AttributeSet)) {
1478 AttributeSet check = (AttributeSet)attr.
2778 public void start(HTML.Tag t, MutableAttributeSet attr) {
2779 blockOpen(t, attr);
2793 public void start(HTML.Tag t, MutableAttributeSet attr) {
2794 super.start(t, attr);
2962 private void handleLink(AttributeSet attr) {
2964 String type = (String)attr.getAttribute(HTML.Attribute.TYPE);
2973 String rel = (String)attr.getAttribute(HTML.Attribute.REL);
2974 String title = (String)attr.getAttribute
2976 String media = (String)attr.getAttribute
2991 linkCSSStyleSheet((String)attr.getAttribute
3074 public void start(HTML.Tag t, MutableAttributeSet attr) {
3076 blockOpen(t, attr);
3077 attr.addAttribute(CSS.Attribute.WHITE_SPACE, "pre");
3078 blockOpen(HTML.Tag.IMPLIED, attr);
3092 public void start(HTML.Tag t, MutableAttributeSet attr) {
3099 boolean insert = canInsertTag(t, attr, false);
3109 if (attr.isDefined(IMPLIED)) {
3110 attr.removeAttribute(IMPLIED);
3112 charAttr.addAttribute(t, attr.copyAttributes());
3130 public void start(HTML.Tag t, MutableAttributeSet attr) {
3137 boolean insert = canInsertTag(t, attr, false);
3147 if (attr.isDefined(IMPLIED)) {
3148 attr.removeAttribute(IMPLIED);
3153 // We also need to add attr, otherwise we lose custom
3156 charAttr.addAttribute(t, attr.copyAttributes());
3183 String color = (String) attr.getAttribute(HTML.Attribute.COLOR);
3187 String face = (String) attr.getAttribute(HTML.Attribute.FACE);
3191 String size = (String) attr.getAttribute(HTML.Attribute.SIZE);
3206 public void start(HTML.Tag t, MutableAttributeSet attr) {
3209 super.start(t, attr);
3227 public void start(HTML.Tag t, MutableAttributeSet attr) {
3229 super.start(t, attr);
3245 public void start(HTML.Tag t, MutableAttributeSet attr) {
3246 String href = (String) attr.getAttribute(HTML.Attribute.HREF);
3255 baseTarget = (String) attr.getAttribute(HTML.Attribute.TARGET);
3337 public void start(HTML.Tag t, MutableAttributeSet attr) {
3340 attr.getAttribute(HTML.Attribute.TYPE);
3347 attr.addAttribute(HTML.Attribute.TYPE, "text");
3349 setModel(type, attr);
3353 attr.addAttribute(StyleConstants.ModelAttribute,
3356 int size = HTML.getIntegerAttributeValue(attr,
3359 boolean multiple = attr.getAttribute(HTML.Attribute.MULTIPLE) != null;
3369 attr.addAttribute(StyleConstants.ModelAttribute,
3376 option = new Option(attr);
3395 super.start(t, attr);
3421 void setModel(String type, MutableAttributeSet attr) {
3427 attr.addAttribute(StyleConstants.ModelAttribute,
3433 attr, HTML.Attribute.MAXLENGTH, -1);
3443 attr.getAttribute(HTML.Attribute.VALUE);
3448 attr.addAttribute(StyleConstants.ModelAttribute, doc);
3451 attr.addAttribute(StyleConstants.ModelAttribute,
3457 String name = (String) attr.getAttribute(HTML.Attribute.NAME);
3468 boolean checked = (attr.getAttribute(HTML.Attribute.CHECKED) != null);
3470 attr.addAttribute(StyleConstants.ModelAttribute, model);
3548 protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) {
3555 if (!canInsertTag(t, attr, true)) {
3558 if (attr.isDefined(IMPLIED)) {
3559 attr.removeAttribute(IMPLIED);
3562 attr.addAttribute(StyleConstants.NameAttribute, t);
3564 attr.copyAttributes(), ElementSpec.StartTagType);
3835 private boolean canInsertTag(HTML.Tag t, AttributeSet attr,
3859 && (attr == null
3860 || attr.isDefined(IMPLIED)