ButtonPeer.java: Replace with Classpath version.
* java/awt/peer/ButtonPeer.java: Replace with Classpath version. * java/awt/peer/CanvasPeer.java: Replace with Classpath version. * java/awt/peer/CheckboxMenuItemPeer.java: Replace with Classpath version. * java/awt/peer/CheckboxPeer.java: Replace with Classpath version. * java/awt/peer/ChoicePeer.java: Replace with Classpath version. * java/awt/peer/ComponentPeer.java: Replace with Classpath version. * java/awt/peer/ContainerPeer.java: Replace with Classpath version. * java/awt/peer/DialogPeer.java: Replace with Classpath version. * java/awt/peer/FileDialogPeer.java: Replace with Classpath version. * java/awt/peer/FontPeer.java: Replace with Classpath version. * java/awt/peer/FramePeer.java: Replace with Classpath version. * java/awt/peer/LabelPeer.java: Replace with Classpath version. * java/awt/peer/LightweightPeer.java: Replace with Classpath version. * java/awt/peer/ListPeer.java: Replace with Classpath version. * java/awt/peer/MenuBarPeer.java: Replace with Classpath version. * java/awt/peer/MenuComponentPeer.java: Replace with Classpath version. * java/awt/peer/MenuItemPeer.java: Replace with Classpath version. * java/awt/peer/MenuPeer.java: Replace with Classpath version. * java/awt/peer/PanelPeer.java: Replace with Classpath version. * java/awt/peer/PopupMenuPeer.java: Replace with Classpath version. * java/awt/peer/ScrollPanePeer.java: Replace with Classpath version. * java/awt/peer/ScrollbarPeer.java: Replace with Classpath version. * java/awt/peer/TextAreaPeer.java: Replace with Classpath version. * java/awt/peer/TextComponentPeer.java: Replace with Classpath version. * java/awt/peer/TextFieldPeer.java: Replace with Classpath version. * java/awt/peer/WindowPeer.java: Replace with Classpath version. * gnu/awt/xlib/XPanelPeer.java (insets): New method. * gnu/awt/xlib/XCanvasPeer.java (show, hide): New methods. (minimumSize, preferredSize, reshape): Likewise. * gnu/awt/xlib/XFramePeer.java (insets, enable, disable, getColorModel): New methods. * java/awt/PopupMenu.java: Merged with Classpath. * java/awt/MenuBar.java: Merged with Classpath. * java/awt/SystemColor.java: Replace with Classpath version. * java/awt/Panel.java: Merged with Classpath. * java/awt/PaintContext.java: Updated copyright. * java/awt/MenuShortcut.java: Merged with Classpath. * java/awt/MenuContainer.java: Merged with Classpath. * java/awt/Menu.java: Merged with Classpath. * java/awt/MediaEntry.java: New file from Classpath. * java/awt/MediaTracker.java: New file from Classpath. * java/awt/List.java: Merged with Classpath version. * java/awt/Insets.java: Merged with Classpath version. * java/awt/ImageMediaEntry.java: New file from Classpath. * java/awt/Image.java: Replaced with Classpath version. * java/awt/FontMetrics.java: Merged with Classpath version. * java/awt/Cursor.java (getDefaultCursor): Use DEFAULT_CURSOR constant. * java/awt/Font.java: Merged with Classpath version. * java/awt/Dialog.java: Merged with Classpath version. * java/awt/Color.java: Merged with Classpath version. * java/awt/Choice.java: Merged with Classpath version. * java/awt/CheckboxMenuItem.java: Merged with Classpath version. * java/awt/Adjustable.java: Replace with Classpath version. * java/awt/MenuItem.java (paramString): Don't include class name or brackets. Call superclass paramString. * java/awt/MenuComponent.java (toString): Call paramString. (paramString): Compute string; don't call toString. * java/awt/Label.java (paramString): Don't include class name or brackets. Call superclass paramString. * java/awt/Checkbox.java (paramString): Don't include class name or brackets. Call superclass paramString. * java/awt/Button.java (paramString): Don't include class name or brackets. Call superclass paramString. * java/awt/MenuComponent.java (getTreeLock): Now protected. From-SVN: r49099
This commit is contained in:
@@ -1,15 +1,36 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ButtonPeer.java -- Peer interface for buttons
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface ButtonPeer extends ComponentPeer
|
||||
{
|
||||
void setLabel(String label);
|
||||
}
|
||||
|
||||
public abstract void setLabel(String label);
|
||||
|
||||
} // interface ButtonPeer
|
||||
|
||||
|
||||
@@ -1,13 +1,34 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* CanvasPeer.java -- Peer interface for a canvas
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface CanvasPeer extends ComponentPeer
|
||||
{
|
||||
}
|
||||
|
||||
} // interface CanvasPeer
|
||||
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* CheckboxMenuItemPeer.java -- Peer interface for checkbox menu items
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface CheckboxMenuItemPeer extends MenuItemPeer
|
||||
{
|
||||
void setState(boolean state);
|
||||
}
|
||||
|
||||
public abstract void setState(boolean state);
|
||||
|
||||
} // interface CheckboxMenuItemPeer
|
||||
|
||||
|
||||
@@ -1,16 +1,38 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* CheckboxPeer.java -- Interface for checkbox peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface CheckboxPeer extends ComponentPeer
|
||||
{
|
||||
void setCheckboxGroup(java.awt.CheckboxGroup group);
|
||||
void setLabel(String label);
|
||||
void setState(boolean state);
|
||||
}
|
||||
|
||||
public abstract void setCheckboxGroup(java.awt.CheckboxGroup group);
|
||||
public abstract void setLabel(String label);
|
||||
public abstract void setState(boolean state);
|
||||
|
||||
} // interface CheckboxPeer
|
||||
|
||||
|
||||
@@ -1,17 +1,39 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ChoicePeer.java -- Peer for choice box
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface ChoicePeer extends ComponentPeer
|
||||
{
|
||||
void add(String item, int index);
|
||||
void remove(int index);
|
||||
void select(int index);
|
||||
}
|
||||
|
||||
public abstract void add(String item, int index);
|
||||
public abstract void addItem(String item, int index);
|
||||
public abstract void remove(int index);
|
||||
public abstract void select(int index);
|
||||
|
||||
} // interface ChoicePeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ComponentPeer.java -- Toplevel component peer
|
||||
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -13,10 +32,42 @@ import java.awt.image.*;
|
||||
|
||||
public interface ComponentPeer
|
||||
{
|
||||
int checkImage(Image img, int width, int height, ImageObserver o);
|
||||
Image createImage(ImageProducer prod);
|
||||
Image createImage(int width, int height);
|
||||
void dispose();
|
||||
public int checkImage(Image img, int width, int height,
|
||||
ImageObserver ob);
|
||||
public Image createImage(ImageProducer prod);
|
||||
public Image createImage(int width, int height);
|
||||
public void disable();
|
||||
public void dispose();
|
||||
public void enable();
|
||||
public ColorModel getColorModel();
|
||||
public FontMetrics getFontMetrics(Font f);
|
||||
public Graphics getGraphics();
|
||||
public Point getLocationOnScreen();
|
||||
public Dimension getMinimumSize();
|
||||
public Dimension getPreferredSize();
|
||||
public Toolkit getToolkit();
|
||||
// The JCL says that handleEvent returns boolean. However, we've
|
||||
// experimentally determined that it in fact actually returns void.
|
||||
public void handleEvent(AWTEvent e);
|
||||
public void hide();
|
||||
public boolean isFocusTraversable();
|
||||
public Dimension minimumSize();
|
||||
public Dimension preferredSize();
|
||||
public void paint(Graphics graphics);
|
||||
public boolean prepareImage(Image img, int width, int height,
|
||||
ImageObserver ob);
|
||||
public void print(Graphics graphics);
|
||||
public void repaint(long tm, int x, int y, int width, int height);
|
||||
public void requestFocus();
|
||||
public void reshape(int x, int y, int width, int height);
|
||||
public void setBackground(Color color);
|
||||
public void setBounds(int x, int y, int width, int height);
|
||||
public void setCursor(Cursor cursor);
|
||||
public void setEnabled(boolean enabled);
|
||||
public void setFont(Font font);
|
||||
public void setForeground(Color color);
|
||||
public void setVisible(boolean visible);
|
||||
public void show();
|
||||
|
||||
/**
|
||||
* Get the graphics configuration of the component. The color model
|
||||
@@ -24,27 +75,5 @@ public interface ComponentPeer
|
||||
*/
|
||||
GraphicsConfiguration getGraphicsConfiguration();
|
||||
|
||||
FontMetrics getFontMetrics(Font f);
|
||||
Graphics getGraphics();
|
||||
Point getLocationOnScreen();
|
||||
Dimension getMinimumSize();
|
||||
Dimension getPreferredSize();
|
||||
Toolkit getToolkit();
|
||||
// The JCL says that handleEvent returns boolean. However, we've
|
||||
// experimentally determined that it in fact actually returns void.
|
||||
void handleEvent(AWTEvent e);
|
||||
boolean isFocusTraversable();
|
||||
void paint(Graphics graphics);
|
||||
boolean prepareImage(Image img, int width, int height, ImageObserver o);
|
||||
void print(Graphics graphics);
|
||||
void repaint(long tm, int x, int y, int width, int height);
|
||||
void requestFocus();
|
||||
void setBackground(Color color);
|
||||
void setBounds(int x, int y, int width, int height);
|
||||
void setCursor(Cursor cursor);
|
||||
void setEnabled(boolean enabled);
|
||||
void setEventMask(long eventMask);
|
||||
void setFont(Font font);
|
||||
void setForeground(Color color);
|
||||
void setVisible(boolean visible);
|
||||
public void setEventMask (long mask);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ContainerPeer.java -- Interface for container peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,7 +31,11 @@ import java.awt.Insets;
|
||||
|
||||
public interface ContainerPeer extends ComponentPeer
|
||||
{
|
||||
Insets getInsets();
|
||||
void beginValidate();
|
||||
void endValidate();
|
||||
}
|
||||
|
||||
public abstract Insets insets();
|
||||
public abstract Insets getInsets();
|
||||
public abstract void beginValidate();
|
||||
public abstract void endValidate();
|
||||
|
||||
} // interface ContainerPeer
|
||||
|
||||
|
||||
@@ -1,15 +1,37 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* DialogPeer.java -- Interface for dialog box peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface DialogPeer extends WindowPeer
|
||||
{
|
||||
void setResizable(boolean resizeable);
|
||||
void setTitle(String title);
|
||||
}
|
||||
|
||||
public abstract void setResizable(boolean resizeable);
|
||||
public abstract void setTitle(String title);
|
||||
|
||||
} // interface DialogPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* FileDialogPeer.java -- Interface for file selection dialog box peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,7 +31,10 @@ import java.io.FilenameFilter;
|
||||
|
||||
public interface FileDialogPeer extends DialogPeer
|
||||
{
|
||||
void setDirectory(String dir);
|
||||
void setFile(String file);
|
||||
void setFilenameFilter(FilenameFilter filter);
|
||||
}
|
||||
|
||||
public abstract void setFile(String file);
|
||||
public abstract void setDirectory(String dir);
|
||||
public abstract void setFilenameFilter(FilenameFilter ff);
|
||||
|
||||
} // interface FileDialogPeer
|
||||
|
||||
|
||||
@@ -1,13 +1,34 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* FontPeer.java -- Interface for font peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface FontPeer
|
||||
{
|
||||
}
|
||||
|
||||
} // interface FontPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* FramePeer.java -- Interface for frame peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -13,8 +32,11 @@ import java.awt.MenuBar;
|
||||
|
||||
public interface FramePeer extends WindowPeer
|
||||
{
|
||||
void setIconImage(Image image);
|
||||
void setMenuBar(MenuBar mb);
|
||||
void setResizable(boolean resizable);
|
||||
void setTitle(String title);
|
||||
}
|
||||
|
||||
public abstract void setIconImage(Image image);
|
||||
public abstract void setMenuBar(MenuBar mb);
|
||||
public abstract void setResizable(boolean resizable);
|
||||
public abstract void setTitle(String title);
|
||||
|
||||
} // interface FramePeer
|
||||
|
||||
|
||||
@@ -1,15 +1,37 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* LabelPeer.java -- Interface for simple text lable peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface LabelPeer extends ComponentPeer
|
||||
{
|
||||
void setAlignment(int alignment);
|
||||
void setText(String text);
|
||||
}
|
||||
|
||||
public abstract void setAlignment(int alignment);
|
||||
public abstract void setText(String text);
|
||||
|
||||
} // interface LabelPeer
|
||||
|
||||
|
||||
@@ -1,13 +1,34 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* LightweightPeer.java -- Interface for lightweight peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface LightweightPeer extends ComponentPeer
|
||||
{
|
||||
}
|
||||
|
||||
} // interface LightweightPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ListPeer.java -- Interface for list box peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,12 +31,20 @@ import java.awt.Dimension;
|
||||
|
||||
public interface ListPeer extends ComponentPeer
|
||||
{
|
||||
void add(String item, int index);
|
||||
void delItems(int start_index, int end_index);
|
||||
void deselect(int index);
|
||||
int[] getSelectedIndexes();
|
||||
void makeVisible(int index);
|
||||
void removeAll();
|
||||
void select(int index);
|
||||
void setMultipleMode(boolean multipleMode);
|
||||
}
|
||||
|
||||
public abstract void add(String item, int index);
|
||||
public abstract void addItem(String item, int index);
|
||||
public abstract void clear();
|
||||
public abstract void delItems(int start_index, int end_index);
|
||||
public abstract void deselect(int index);
|
||||
public abstract int[] getSelectedIndexes();
|
||||
public abstract void makeVisible(int index);
|
||||
public abstract Dimension minimumSize(int s);
|
||||
public abstract Dimension preferredSize(int s);
|
||||
public abstract void removeAll();
|
||||
public abstract void select(int index);
|
||||
public abstract void setMultipleMode(boolean multi);
|
||||
public abstract void setMultipleSelections(boolean multi);
|
||||
|
||||
} // interface ListPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* MenuBarPeer.java -- Interface for menu bar peer
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,7 +31,10 @@ import java.awt.Menu;
|
||||
|
||||
public interface MenuBarPeer extends MenuComponentPeer
|
||||
{
|
||||
void addHelpMenu(Menu menu);
|
||||
void add(Menu menu);
|
||||
void remove(int index);
|
||||
}
|
||||
|
||||
public abstract void addHelpMenu(Menu menu);
|
||||
public abstract void addMenu(Menu menu);
|
||||
public abstract void delMenu(int index);
|
||||
|
||||
} // interface MenuBarPeer
|
||||
|
||||
|
||||
@@ -1,14 +1,36 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* MenuComponentPeer.java --
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface MenuComponentPeer
|
||||
{
|
||||
void dispose();
|
||||
}
|
||||
|
||||
public abstract void dispose();
|
||||
|
||||
} // interface MenuComponentPeer
|
||||
|
||||
|
||||
@@ -1,15 +1,39 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* MenuItemPeer.java -- Interface for menu item peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface MenuItemPeer extends MenuComponentPeer
|
||||
{
|
||||
void setEnabled(boolean enabled);
|
||||
void setLabel(String text);
|
||||
}
|
||||
|
||||
public abstract void disable();
|
||||
public abstract void enable();
|
||||
public abstract void setEnabled(boolean enabled);
|
||||
public abstract void setLabel(String text);
|
||||
|
||||
} // interface MenuItemPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* MenuPeer.java -- Interface for menu peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,7 +31,8 @@ import java.awt.MenuItem;
|
||||
|
||||
public interface MenuPeer extends MenuItemPeer
|
||||
{
|
||||
void add(MenuItem item);
|
||||
void addSeparator();
|
||||
void remove(int index);
|
||||
public abstract void addItem (MenuItem item);
|
||||
public abstract void addSeparator ();
|
||||
public abstract void delItem (int index);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,34 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* PanelPeer.java -- Interface for panel peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface PanelPeer extends ContainerPeer
|
||||
{
|
||||
}
|
||||
|
||||
} // interface PanelPeer
|
||||
|
||||
|
||||
@@ -1,16 +1,37 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* PopupMenuPeer.java -- Interface for popup menu peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
import java.awt.Event;
|
||||
|
||||
import java.awt.Component;
|
||||
public interface PopupMenuPeer extends MenuPeer
|
||||
{
|
||||
void show(Event e);
|
||||
}
|
||||
|
||||
public abstract void show (Component origin, int x, int y);
|
||||
|
||||
} // interface PopupMenuPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ScrollPanePeer.java -- Interface for scrollable panes
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,10 +31,13 @@ import java.awt.Adjustable;
|
||||
|
||||
public interface ScrollPanePeer extends ContainerPeer
|
||||
{
|
||||
void childResized(int width, int height);
|
||||
int getHScrollbarHeight();
|
||||
int getVScrollbarWidth();
|
||||
void setScrollPosition(int x, int y);
|
||||
void setUnitIncrement(Adjustable adj, int increment);
|
||||
void setValue(Adjustable adj, int value);
|
||||
}
|
||||
|
||||
public abstract int getHScrollbarHeight();
|
||||
public abstract int getVScrollbarWidth();
|
||||
public abstract void setScrollPosition(int h, int v);
|
||||
public abstract void childResized(int width, int height);
|
||||
public abstract void setUnitIncrement(Adjustable item, int inc);
|
||||
public abstract void setValue(Adjustable item, int value);
|
||||
|
||||
} // interface ScollPanePeer
|
||||
|
||||
|
||||
@@ -1,16 +1,38 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ScrollbarPeer.java -- Interface for scrollbar peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface ScrollbarPeer extends ComponentPeer
|
||||
{
|
||||
void setLineIncrement(int increment);
|
||||
void setPageIncrement(int increment);
|
||||
void setValues(int value, int visible, int minimum, int maximum);
|
||||
}
|
||||
|
||||
public abstract void setLineIncrement(int inc);
|
||||
public abstract void setPageIncrement(int inc);
|
||||
public abstract void setValues(int value, int visible, int min, int max);
|
||||
|
||||
} // interface ScrollbarPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* TextAreaPeer.java -- Interface for text area peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,6 +31,14 @@ import java.awt.Dimension;
|
||||
|
||||
public interface TextAreaPeer extends TextComponentPeer
|
||||
{
|
||||
void insert(String text, int pos);
|
||||
void replaceRange(String text, int start, int end);
|
||||
}
|
||||
|
||||
public abstract void insert(String text, int pos);
|
||||
public abstract void insertText(String text, int pos);
|
||||
public abstract Dimension minimumSize(int rows, int cols);
|
||||
public abstract Dimension getMinimumSize(int rows, int cols);
|
||||
public abstract Dimension preferredSize(int rows, int cols);
|
||||
public abstract Dimension getPreferredSize(int rows, int cols);
|
||||
public abstract void replaceRange(String text, int start_pos, int end_pos);
|
||||
public abstract void replaceText(String text, int start_pos, int end_pos);
|
||||
|
||||
} // interface TextAreaPeer
|
||||
|
||||
@@ -1,21 +1,43 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* TextComponentPeer.java -- Superclass interface for text components
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface TextComponentPeer extends ComponentPeer
|
||||
{
|
||||
int getCaretPosition();
|
||||
int getSelectionEnd();
|
||||
int getSelectionStart();
|
||||
String getText();
|
||||
void select(int start, int end);
|
||||
void setCaretPosition(int pos);
|
||||
void setEditable(boolean editable);
|
||||
void setText(String text);
|
||||
}
|
||||
|
||||
public abstract int getSelectionEnd();
|
||||
public abstract int getSelectionStart();
|
||||
public abstract String getText();
|
||||
public abstract void setText(String text);
|
||||
public abstract void select(int start_pos, int end_pos);
|
||||
public abstract void setEditable(boolean editable);
|
||||
public abstract int getCaretPosition();
|
||||
public abstract void setCaretPosition(int pos);
|
||||
|
||||
} // interface TextComponentPeer
|
||||
|
||||
|
||||
@@ -1,10 +1,29 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* TextFieldPeer.java -- Interface for text field peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
@@ -12,5 +31,13 @@ import java.awt.Dimension;
|
||||
|
||||
public interface TextFieldPeer extends TextComponentPeer
|
||||
{
|
||||
void setEchoChar(char echo);
|
||||
}
|
||||
|
||||
public abstract Dimension minimumSize(int len);
|
||||
public abstract Dimension preferredSize(int len);
|
||||
public abstract Dimension getMinimumSize(int len);
|
||||
public abstract Dimension getPreferredSize(int len);
|
||||
public abstract void setEchoChar(char echo_char);
|
||||
public abstract void setEchoCharacter(char echo_char);
|
||||
|
||||
} // interface TextFieldPeer
|
||||
|
||||
|
||||
@@ -1,15 +1,37 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* WindowPeer.java -- Interface for window peers
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.awt.peer;
|
||||
|
||||
public interface WindowPeer extends ContainerPeer
|
||||
{
|
||||
void toBack();
|
||||
void toFront();
|
||||
}
|
||||
|
||||
public abstract void toBack();
|
||||
public abstract void toFront();
|
||||
|
||||
} // interface WindowPeer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user