com.quadrique.jbuildingblocks.gui
Class TextPaneAttributeSet
java.lang.Object
javax.swing.text.SimpleAttributeSet
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
| 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 |
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 setzUserData - the user data objec to associate to this attribute set
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.