diff options
author | Paul Fisher <rao@gnu.org> | 1999-11-17 02:05:25 +0000 |
---|---|---|
committer | Paul Fisher <rao@gnu.org> | 1999-11-17 02:05:25 +0000 |
commit | ae23f9fb9311cb4db6e4bfb859d388124d335ef5 (patch) | |
tree | b3c59da0dcd51516461f08c208e715c2fa27c591 /java | |
parent | 7e3b72a9dcb58102880966697d9df2421a08d7ed (diff) | |
download | classpath-ae23f9fb9311cb4db6e4bfb859d388124d335ef5.tar.gz |
Make peers build with toplevel build environment.
Diffstat (limited to 'java')
-rw-r--r-- | java/awt/Dialog.java | 2 | ||||
-rw-r--r-- | java/awt/Graphics.java | 7 | ||||
-rw-r--r-- | java/awt/Image.java | 9 | ||||
-rw-r--r-- | java/awt/Menu.java | 14 | ||||
-rw-r--r-- | java/awt/Toolkit.java | 9 | ||||
-rw-r--r-- | java/awt/peer/ComponentPeer.java | 2 | ||||
-rw-r--r-- | java/awt/peer/MenuPeer.java | 12 | ||||
-rw-r--r-- | java/awt/peer/PopupMenuPeer.java | 2 |
8 files changed, 35 insertions, 22 deletions
diff --git a/java/awt/Dialog.java b/java/awt/Dialog.java index 1f5214f92..d5b63fc1c 100644 --- a/java/awt/Dialog.java +++ b/java/awt/Dialog.java @@ -208,7 +208,7 @@ setModal(boolean modal) * otherwise. */ public boolean -isResizeable() +isResizable() { return(resizable); } diff --git a/java/awt/Graphics.java b/java/awt/Graphics.java index 504b3c24f..64441c8a7 100644 --- a/java/awt/Graphics.java +++ b/java/awt/Graphics.java @@ -380,8 +380,11 @@ fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight); * @param raised <code>true</code> if the rectangle appears raised, * <code>false</code> if it should appear etched. */ -public abstract void -fill3DRect(int x, int y, int width, int height, boolean raised); +public void +fill3DRect(int x, int y, int width, int height, boolean raised) +{ + // FIXME +} /*************************************************************************/ diff --git a/java/awt/Image.java b/java/awt/Image.java index 3a7739fc5..74f47b89b 100644 --- a/java/awt/Image.java +++ b/java/awt/Image.java @@ -152,6 +152,8 @@ getProperty(String name, ImageObserver observer); /** * Scales the image to the requested dimension. * + * XXX: FIXME + * * @param width The width of the scaled image. * @param height The height of the scaled image. * @param flags A value indicating the algorithm to use, which will be @@ -159,8 +161,11 @@ getProperty(String name, ImageObserver observer); * * @return The scaled <code>Image</code> object. */ -public abstract Image -getScaledInstance(int width, int height, int flags); +public Image +getScaledInstance(int width, int height, int flags) + { + return null; + } /*************************************************************************/ diff --git a/java/awt/Menu.java b/java/awt/Menu.java index 2fdb51a87..ef7080e6a 100644 --- a/java/awt/Menu.java +++ b/java/awt/Menu.java @@ -220,6 +220,8 @@ add(String label) * @param item The menu item to add. * @param index The index of the menu item. * + * XXX: FIXME + * * @exception IllegalArgumentException If the index is less than zero. * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid. */ @@ -232,8 +234,8 @@ insert(MenuItem item, int index) items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); - if (mp != null) - mp.insertItem(item, index); +// if (mp != null) +// mp.insertItem(item, index); } /*************************************************************************/ @@ -274,6 +276,8 @@ addSeparator() * * @param index The index at which to insert a separator bar. * + * XXX: FIXME + * * @exception IllegalArgumentException If the index is less than zero. * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid. */ @@ -284,9 +288,9 @@ insertSeparator(int index) throw new IllegalArgumentException("Index is less than zero"); // FIXME: How do we note in the items array what this is? - MenuPeer mp = (MenuPeer)getPeer(); - if (mp != null) - mp.insertSeparator(index); +// MenuPeer mp = (MenuPeer)getPeer(); +// if (mp != null) +// mp.insertSeparator(index); } /*************************************************************************/ diff --git a/java/awt/Toolkit.java b/java/awt/Toolkit.java index efb0713f2..6066e0384 100644 --- a/java/awt/Toolkit.java +++ b/java/awt/Toolkit.java @@ -421,12 +421,17 @@ createCheckboxMenuItem(CheckboxMenuItem target); * with its own native window. Instead, this method allows the component * to draw on its parent window as a "lightweight" widget. * + * XXX: FIXME + * * @param target The <code>Component</code> to create the peer for. * * @return The peer for the specified <code>Component</code> object. */ -protected abstract LightweightPeer -createComponent(Component target); +protected LightweightPeer +createComponent(Component target) +{ + return null; +} /*************************************************************************/ diff --git a/java/awt/peer/ComponentPeer.java b/java/awt/peer/ComponentPeer.java index 9c4edd0a3..3837e2a02 100644 --- a/java/awt/peer/ComponentPeer.java +++ b/java/awt/peer/ComponentPeer.java @@ -41,7 +41,7 @@ public abstract Point getLocationOnScreen(); public abstract Dimension getMinimumSize(); public abstract Dimension getPreferredSize(); public abstract Toolkit getToolkit(); -public abstract boolean handleEvent(AWTEvent e); +public abstract void handleEvent(AWTEvent e); public abstract void hide(); public abstract boolean isFocusTraversable(); public abstract Dimension minimumSize(); diff --git a/java/awt/peer/MenuPeer.java b/java/awt/peer/MenuPeer.java index e96b6cdff..32d226a6c 100644 --- a/java/awt/peer/MenuPeer.java +++ b/java/awt/peer/MenuPeer.java @@ -25,12 +25,8 @@ import java.awt.MenuItem; public interface MenuPeer extends MenuItemPeer { - -public abstract void addItem(MenuItem item); -public abstract void insertItem(MenuItem item, int index); -public abstract void addSeparator(); -public abstract void insertSeparator(int index); -public abstract void delItem(int index); - -} // interface MenuPeer + public abstract void addItem (MenuItem item); + public abstract void addSeparator (); + public abstract void delItem (int index); +} diff --git a/java/awt/peer/PopupMenuPeer.java b/java/awt/peer/PopupMenuPeer.java index 703d95dd8..e8f804d5c 100644 --- a/java/awt/peer/PopupMenuPeer.java +++ b/java/awt/peer/PopupMenuPeer.java @@ -26,7 +26,7 @@ import java.awt.Event; public interface PopupMenuPeer extends MenuPeer { -public abstract void show(java.awt.Component component, int x, int y); +public abstract void show (Event e); } // interface PopupMenuPeer |