com.quadrique.jbuildingblocks.gui
Class TextPaneAttributeSet

java.lang.Object
  extended by javax.swing.text.SimpleAttributeSet
      extended by com.quadrique.jbuildingblocks.gui.TextPaneAttributeSet
All Implemented Interfaces:
Serializable, Cloneable, AttributeSet, MutableAttributeSet

public class TextPaneAttributeSet
extends SimpleAttributeSet

Utility class to quickly access the component attribute and to manipulate a user data object in the attribute set

Author:
Hervé Rivere
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
Field Summary
 
Fields inherited from class javax.swing.text.SimpleAttributeSet
EMPTY
 
Fields inherited from interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute
 
Constructor Summary
TextPaneAttributeSet()
          constructor
TextPaneAttributeSet(AttributeSet zSet)
          constructor
TextPaneAttributeSet(AttributeSet zSet, Object zUserData)
          constructor
TextPaneAttributeSet(Object zUserData)
          constructor
 
Method Summary
 Component getComponent()
           
 Object getUserData()
           
 void setUserData(Object zUserData)
          set the user data attribute (and removes the previous value if any)
 
Methods inherited from class javax.swing.text.SimpleAttributeSet
addAttribute, addAttributes, clone, containsAttribute, containsAttributes, copyAttributes, equals, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, hashCode, isDefined, isEmpty, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextPaneAttributeSet

public TextPaneAttributeSet()
constructor


TextPaneAttributeSet

public TextPaneAttributeSet(Object zUserData)
constructor

Parameters:
zUserData - the user data objec tto associate to this attribute set

TextPaneAttributeSet

public TextPaneAttributeSet(AttributeSet zSet)
constructor

Parameters:
zSet - an exisitng attribute set

TextPaneAttributeSet

public TextPaneAttributeSet(AttributeSet zSet,
                            Object zUserData)
constructor

Parameters:
zSet - an exisitng attribute set
zUserData - the user data objec to associate to this attribute set
Method Detail

getComponent

public Component getComponent()
Returns:
the component attribute value (can be null)

setUserData

public void setUserData(Object zUserData)
set the user data attribute (and removes the previous value if any)

Parameters:
zUserData - the user data objec to associate to this attribute set

getUserData

public Object getUserData()
Returns:
the user data object (or null)


Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.