Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.StyleContext.NamedStyle
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
ChangeEvent | changeEvent
Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. |
EventListenerList | listenerList
The change listeners for the model. |
Constructor Summary | |
StyleContext.NamedStyle(StyleContext this$0,
java.lang.String name,
Style parent)
Creates a new named style. |
|
StyleContext.NamedStyle(StyleContext this$0,
Style parent)
Creates a new named style. |
|
StyleContext.NamedStyle(StyleContext this$0)
Creates a new named style, with a null name and parent. |
Method Summary | |
void | addAttributes(AttributeSet attr)
Adds a set of attributes to the element. |
void | addAttribute(java.lang.Object name,
java.lang.Object value)
Adds an attribute. |
void | addChangeListener(ChangeListener l)
Adds a change listener. |
boolean | containsAttributes(AttributeSet attrs)
Checks whether the element contains all the attributes. |
boolean | containsAttribute(java.lang.Object name,
java.lang.Object value)
Checks whether a given attribute name/value is defined. |
AttributeSet | copyAttributes()
Copies a set of attributes. |
void | fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
int | getAttributeCount()
Gets the number of attributes that are defined. |
java.util.Enumeration | getAttributeNames()
Gets the names of all attributes. |
java.lang.Object | getAttribute(java.lang.Object attrName)
Gets the value of an attribute. |
java.lang.String | getName()
Fetches the name of the style. |
AttributeSet | getResolveParent()
Gets attributes from the parent. |
boolean | isDefined(java.lang.Object attrName)
Checks whether a given attribute is defined. |
boolean | isEqual(AttributeSet attr)
Checks whether two attribute sets are equal. |
void | removeAttributes(java.util.Enumeration names)
Removes a set of attributes for the element. |
void | removeAttributes(AttributeSet attrs)
Removes a set of attributes for the element. |
void | removeAttribute(java.lang.Object name)
Removes an attribute from the set. |
void | removeChangeListener(ChangeListener l)
Removes a change listener. |
void | setName(java.lang.String name)
Changes the name of the style. |
void | setResolveParent(AttributeSet parent)
Sets the resolving parent. |
java.lang.String | toString()
Converts the style to a string. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected EventListenerList listenerList
protected ChangeEvent changeEvent
Constructor Detail |
public StyleContext.NamedStyle(StyleContext this$0, java.lang.String name, Style parent)
name
- the style name, null for unnamed
parent
- the parent style, null if nonepublic StyleContext.NamedStyle(StyleContext this$0, Style parent)
parent
- the parent style, null if nonepublic StyleContext.NamedStyle(StyleContext this$0)
Method Detail |
public java.lang.String toString()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic void addChangeListener(ChangeListener l)
l
- the change listenerpublic void removeChangeListener(ChangeListener l)
l
- the change listenerprotected void fireStateChanged()
public int getAttributeCount()
public boolean isDefined(java.lang.Object attrName)
attrName
- the non-null attribute namepublic boolean isEqual(AttributeSet attr)
attr
- the attribute set to check againstpublic AttributeSet copyAttributes()
public java.lang.Object getAttribute(java.lang.Object attrName)
attrName
- the non-null attribute namepublic java.util.Enumeration getAttributeNames()
public boolean containsAttribute(java.lang.Object name, java.lang.Object value)
name
- the non-null attribute name
value
- the attribute valuepublic boolean containsAttributes(AttributeSet attrs)
attrs
- the attributes to checkpublic AttributeSet getResolveParent()
public void addAttribute(java.lang.Object name, java.lang.Object value)
name
- the non-null attribute name
value
- the attribute valuepublic void addAttributes(AttributeSet attr)
attr
- the attributes to addpublic void removeAttribute(java.lang.Object name)
name
- the non-null attribute namepublic void removeAttributes(java.util.Enumeration names)
names
- the attribute namespublic void removeAttributes(AttributeSet attrs)
attrs
- the attributespublic void setResolveParent(AttributeSet parent)
parent
- the parent, null if noneOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |