diff options
author | Michael Koch <konqueror@gmx.de> | 2003-03-24 14:05:02 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-03-24 14:05:02 +0000 |
commit | fba5a74af30ace50410f359f5dd7ae5653c98def (patch) | |
tree | 5c198e7c44493236d64483b02064b7b4537e8168 /libjava/javax | |
parent | 3bc8a4e355f1f86d8f0ececb93cca1b63e85c613 (diff) | |
download | gcc-fba5a74af30ace50410f359f5dd7ae5653c98def.zip gcc-fba5a74af30ace50410f359f5dd7ae5653c98def.tar.gz gcc-fba5a74af30ace50410f359f5dd7ae5653c98def.tar.bz2 |
2003-03-24 Michael Koch <konqueror@gmx.de>
* javax/swing/text/ComponentView.java
(getComponent): Must be final.
* javax/swing/tree/DefaultTreeCellRenderer.java:
Reformatted.
* javax/swing/undo/StateEditable.java:
Reformatted.
From-SVN: r64801
Diffstat (limited to 'libjava/javax')
-rw-r--r-- | libjava/javax/swing/text/ComponentView.java | 3 | ||||
-rw-r--r-- | libjava/javax/swing/tree/DefaultTreeCellRenderer.java | 6 | ||||
-rw-r--r-- | libjava/javax/swing/undo/StateEditable.java | 29 |
3 files changed, 21 insertions, 17 deletions
diff --git a/libjava/javax/swing/text/ComponentView.java b/libjava/javax/swing/text/ComponentView.java index 220ba0c..77a222c 100644 --- a/libjava/javax/swing/text/ComponentView.java +++ b/libjava/javax/swing/text/ComponentView.java @@ -46,7 +46,6 @@ public class ComponentView extends View super(elem); } - protected Component createComponent() { return null; @@ -57,7 +56,7 @@ public class ComponentView extends View return 0; } - public Component getComponent() + public final Component getComponent() { return null; } diff --git a/libjava/javax/swing/tree/DefaultTreeCellRenderer.java b/libjava/javax/swing/tree/DefaultTreeCellRenderer.java index ab534be..6de55de 100644 --- a/libjava/javax/swing/tree/DefaultTreeCellRenderer.java +++ b/libjava/javax/swing/tree/DefaultTreeCellRenderer.java @@ -45,8 +45,10 @@ import javax.swing.*; * DefaultTreeCellRenderer * @author Andrew Selkirk */ -public class DefaultTreeCellRenderer extends JLabel implements TreeCellRenderer { - +public class DefaultTreeCellRenderer + extends JLabel + implements TreeCellRenderer +{ //------------------------------------------------------------- // Variables -------------------------------------------------- //------------------------------------------------------------- diff --git a/libjava/javax/swing/undo/StateEditable.java b/libjava/javax/swing/undo/StateEditable.java index 1d3eaa2..76eedad 100644 --- a/libjava/javax/swing/undo/StateEditable.java +++ b/libjava/javax/swing/undo/StateEditable.java @@ -44,19 +44,22 @@ import java.util.Hashtable; * StateEditable interface * @author Andrew Selkirk */ -public interface StateEditable { - - /** - * Restore State - * @param state State - */ - public void restoreState(Hashtable state); - - /** - * Store State - * @param state State - */ - public void storeState(Hashtable state); +public interface StateEditable +{ + /** + * Upon receiving this message the receiver should extract any relevant + * state out of state + * + * @param state State + */ + public void restoreState(Hashtable state); + /** + * Upon receiving this message the receiver should place any relevant state + * into state + * + * @param state State + */ + public void storeState(Hashtable state); } // StateEditable |