KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > text > SimpleAttributeSet

javax.swing.text
Class SimpleAttributeSet

java.lang.Object
  extended by javax.swing.text.SimpleAttributeSet
All Implemented Interfaces:
Serializable, Cloneable, AttributeSet, MutableAttributeSet
See Also:
Top Examples, Source Code, XMLEncoder

public void addAttribute(Object name,
                         Object value)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1076]Handle HTML start tag
By Anonymous on 2004/10/28 14:48:19  Rate
public void handleStartTag ( HTML.Tag t, MutableAttributeSet a, int pos )   {  
 // refer to HTMLDocument.HTMLReader ( int i )  for hashed HTML.Tag contants 
 switch  ( t.toString (  ) .hashCode (  )  )   {  
 case FORM_h : 
 break; 
 case TEXTAREA_h : //  < textarea >  has neither value= or checked attributes 
 a.addAttribute ( HTML.Attribute.VALUE, "" ) ; 
 // handle as  < input >  tag 
 t = HTML.Tag.INPUT; 
 handleSimpleTag ( t, a, pos ) ; 
 break; 
  }  
  } 


public void addAttributes(AttributeSet attributes)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object clone()
See Also:
Cloneable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean containsAttribute(Object name,
                                 Object value)
See Also:
AttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1077]HTML reader
By Anonymous on 2004/10/28 14:52:50  Rate
public void handleSimpleTag ( HTML.Tag t, MutableAttributeSet a, int pos )   {  // refer to HTMLDocument.HTMLReader ( int i )  for HTML.Tag hash contants 
 switch  ( t.toString (  ) .hashCode (  )  )   {  
 case BR_h : 
 break; 
 case HR_h : 
 case SPAN_h : 
 // oddly,  < span >  and  < /span >  are handled as simple tags 
 if  ( a.containsAttribute ( HTML.Attribute.CLASS, "title h1" )  )   {  
 continue; 
  } ; 
 break; 
  } ; 
  } 


public boolean containsAttributes(AttributeSet attributes)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AttributeSet copyAttributes()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final AttributeSet EMPTY
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean equals(Object obj)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getAttribute(Object name)
See Also:
AttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getAttributeCount()
See Also:
AttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Enumeration<?> getAttributeNames()
See Also:
AttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AttributeSet getResolveParent()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isDefined(Object attrName)
See Also:
AttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isEmpty()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isEqual(AttributeSet attr)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAttribute(Object name)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAttributes(Enumeration<?> names)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAttributes(AttributeSet attributes)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setResolveParent(AttributeSet parent)
See Also:
MutableAttributeSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SimpleAttributeSet()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SimpleAttributeSet(AttributeSet source)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags