diff options
author | Tania Bento <tbento@redhat.com> | 2006-10-13 14:41:13 +0000 |
---|---|---|
committer | Tania Bento <tbento@redhat.com> | 2006-10-13 14:41:13 +0000 |
commit | a8974d184ea58f775aff55d4edea5a5d7e40dcc4 (patch) | |
tree | 2c36d577f724ec13a6cfaa13db1a51f866f3c3bd /java/awt/ScrollPaneAdjustable.java | |
parent | 627e840a009b4a5b0190e47cf929f042518a6390 (diff) | |
download | classpath-a8974d184ea58f775aff55d4edea5a5d7e40dcc4.tar.gz |
2006-10-13 Tania Bento <tbento@redhat.com>
* java/awt/ScrollPaneAdjustable.java
(setMaximum): Should throw AWTError whenever called.
(setMinimum): Same.
(setVisibleAmount): Same.
Diffstat (limited to 'java/awt/ScrollPaneAdjustable.java')
-rw-r--r-- | java/awt/ScrollPaneAdjustable.java | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/java/awt/ScrollPaneAdjustable.java b/java/awt/ScrollPaneAdjustable.java index 21b58c36e..6ce79b1f6 100644 --- a/java/awt/ScrollPaneAdjustable.java +++ b/java/awt/ScrollPaneAdjustable.java @@ -145,14 +145,26 @@ public class ScrollPaneAdjustable this.blockIncrement = blockIncrement; } - public void setMaximum (int maximum) + /** + * This method should never be called. + * + * @param maximum The maximum value to be set. + * @throws AWTError Always throws this error when called. + */ + public void setMaximum (int maximum) throws AWTError { - this.maximum = maximum; + throw new AWTError("Can be set by scrollpane only"); } + /** + * This method should never be called. + * + * @param minimum The minimum value to be set. + * @throws AWTError Always throws this error when called. + */ public void setMinimum (int minimum) { - this.minimum = minimum; + throw new AWTError("Can be set by scrollpane only"); } public void setUnitIncrement (int unitIncrement) @@ -171,9 +183,15 @@ public class ScrollPaneAdjustable maximum = value; } + /** + * This method should never be called. + * + * @param visibleAmount The visible amount to be set. + * @throws AWTError Always throws this error when called. + */ public void setVisibleAmount (int visibleAmount) { - this.visibleAmount = visibleAmount; + throw new AWTError("Can be set by scrollpane only"); } public String paramString () |