summaryrefslogtreecommitdiffstats
path: root/libjava/javax/swing/event/DocumentEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/event/DocumentEvent.java')
-rw-r--r--libjava/javax/swing/event/DocumentEvent.java105
1 files changed, 43 insertions, 62 deletions
diff --git a/libjava/javax/swing/event/DocumentEvent.java b/libjava/javax/swing/event/DocumentEvent.java
index a442a4a7770..eccc9d3e576 100644
--- a/libjava/javax/swing/event/DocumentEvent.java
+++ b/libjava/javax/swing/event/DocumentEvent.java
@@ -87,68 +87,49 @@ public interface DocumentEvent {
} // ElementChange
- /**
- * EventType
- */
- class EventType {
-
- //-------------------------------------------------------------
- // Variables --------------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * INSERT
- */
- EventType INSERT = new EventType("INSERT"); // TODO
-
- /**
- * REMOVE
- */
- EventType REMOVE = new EventType("REMOVE"); // TODO
-
- /**
- * CHANGE
- */
- EventType CHANGE = new EventType("CHANGE"); // TODO
-
- /**
- * typeString
- */
- private String type;
-
-
- //-------------------------------------------------------------
- // Initialization ---------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * Constructor EventType
- * @param type TODO
- */
- private EventType(String type) {
- this.type = type;
- } // EventType()
-
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * toString
- * @returns String
- */
- public String toString() {
- return type; // TODO
- } // toString()
-
-
- } // EventType
-
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
+ /**
+ * EventType
+ */
+ class EventType
+ {
+ /**
+ * INSERT
+ */
+ public static final EventType INSERT = new EventType("INSERT"); // TODO
+
+ /**
+ * REMOVE
+ */
+ public static final EventType REMOVE = new EventType("REMOVE"); // TODO
+
+ /**
+ * CHANGE
+ */
+ public static final EventType CHANGE = new EventType("CHANGE"); // TODO
+
+ /**
+ * typeString
+ */
+ private String type;
+
+ /**
+ * Constructor EventType
+ * @param type TODO
+ */
+ private EventType(String type)
+ {
+ this.type = type;
+ }
+
+ /**
+ * toString
+ * @returns String
+ */
+ public String toString()
+ {
+ return type;
+ }
+ }
/**
* getType
OpenPOWER on IntegriCloud