summaryrefslogtreecommitdiffstats
path: root/libjava/javax/swing/text/Style.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/text/Style.java')
-rw-r--r--libjava/javax/swing/text/Style.java25
1 files changed, 21 insertions, 4 deletions
diff --git a/libjava/javax/swing/text/Style.java b/libjava/javax/swing/text/Style.java
index f6c8723b03a..d8553c02c92 100644
--- a/libjava/javax/swing/text/Style.java
+++ b/libjava/javax/swing/text/Style.java
@@ -39,9 +39,26 @@ package javax.swing.text;
import javax.swing.event.ChangeListener;
-public interface Style
+public interface Style extends MutableAttributeSet
{
- void addChangeListener(ChangeListener l);
- String getName();
- void removeChangeListener(ChangeListener l);
+ /**
+ * Returns the name of the style.
+ *
+ * @return the name
+ */
+ String getName();
+
+ /**
+ * Adds a <code>ChangeListener</code> object to the style.
+ *
+ * @param listener the listener object to add
+ */
+ void addChangeListener(ChangeListener listener);
+
+ /**
+ * Removes a <code>ChangeListener</code> from to the style.
+ *
+ * @param listener the listener object to remove,
+ */
+ void removeChangeListener(ChangeListener listener);
}
OpenPOWER on IntegriCloud