Big AWT patch.

From-SVN: r34976
This commit is contained in:
Bryce McKinlay 2000-07-12 03:32:07 +00:00 committed by Bryce McKinlay
parent 406a65d0db
commit c7a136d3ef
70 changed files with 4838 additions and 277 deletions

View file

@ -0,0 +1,15 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,13 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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
{
}

View file

@ -0,0 +1,15 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,16 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,18 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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 addItem(String item, int index);
void remove(int index);
void select(int index);
}

View file

@ -1,23 +1,48 @@
/* Copyright (C) 1999 Free Software Foundation
/* Copyright (C) 2000 Free Software Foundation
This file is part of libjava.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
import java.awt.*;
/* A very incomplete placeholder. */
import java.awt.*;
import java.awt.image.*;
public interface ComponentPeer
{
public abstract Toolkit getToolkit ();
public Dimension getMinimumSize ();
public Dimension getPreferredSize ();
public void setBounds (int x, int y, int w, int h);
int checkImage(Image img, int width, int height, ImageObserver o);
Image createImage(ImageProducer prod);
Image createImage(int width, int height);
void disable();
void dispose();
void enable();
ColorModel getColorModel();
FontMetrics getFontMetrics(Font f);
Graphics getGraphics();
Point getLocationOnScreen();
Dimension getMinimumSize();
Dimension getPreferredSize();
Toolkit getToolkit();
void handleEvent(AWTEvent e);
void hide();
boolean isFocusTraversable();
Dimension minimumSize();
Dimension preferredSize();
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 reshape(int x, int y, int width, int height);
void setBackground(Color color);
void setBounds(int x, int y, int width, int height);
void setCursor(Cursor cursor);
void setEnabled(boolean enabled);
void setFont(Font font);
void setForeground(Color color);
void setVisible(boolean visible);
void show();
}

View file

@ -1,15 +1,19 @@
/* Copyright (C) 1999 Free Software Foundation
/* Copyright (C) 2000 Free Software Foundation
This file is part of libjava.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
/* A very incomplete placeholder. */
import java.awt.Insets;
public interface ContainerPeer extends ComponentPeer
{
Insets insets();
Insets getInsets();
void beginValidate();
void endValidate();
}

View file

@ -0,0 +1,15 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,18 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.io.FilenameFilter;
public interface FileDialogPeer extends DialogPeer
{
void setDirectory(String dir);
void setFile(String file);
void setFilenameFilter(FilenameFilter filter);
}

View file

@ -0,0 +1,13 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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
{
}

View file

@ -1,16 +1,20 @@
/* Copyright (C) 1999 Free Software Foundation
/* Copyright (C) 2000 Free Software Foundation
This file is part of libjava.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
/* A very incomplete placeholder. */
import java.awt.Image;
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);
}

View file

@ -0,0 +1,15 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,13 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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
{
}

View file

@ -0,0 +1,28 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.Dimension;
public interface ListPeer extends ComponentPeer
{
void add(String item, int index);
void addItem(String item, int index);
void clear();
void delItems(int start_index, int end_index);
void deselect(int index);
int[] getSelectedIndexes();
void makeVisible(int index);
Dimension minimumSize(int size);
Dimension preferredSize(int size);
void removeAll();
void select(int index);
void setMultipleMode(boolean multipleMode);
void setMultipleSelections(boolean multipleSelections);
}

View file

@ -0,0 +1,18 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.Menu;
public interface MenuBarPeer extends MenuComponentPeer
{
void addHelpMenu(Menu menu);
void addMenu(Menu menu);
void delMenu(int index);
}

View file

@ -0,0 +1,14 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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();
}

View file

@ -0,0 +1,17 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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 disable();
void enable();
void setEnabled(boolean enabled);
void setLabel(String text);
}

View file

@ -0,0 +1,18 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.MenuItem;
public interface MenuPeer extends MenuItemPeer
{
void addItem(MenuItem item);
void addSeparator();
void delItem(int index);
}

View file

@ -0,0 +1,13 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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
{
}

View file

@ -0,0 +1,16 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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;
public interface PopupMenuPeer extends MenuPeer
{
void show(Event e);
}

View file

@ -0,0 +1,21 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.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);
}

View file

@ -0,0 +1,16 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,23 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.Dimension;
public interface TextAreaPeer extends TextComponentPeer
{
Dimension getMinimumSize(int rows, int columns);
Dimension getPreferredSize(int rows, int columns);
void insert(String text, int pos);
void insertText(String text, int pos);
Dimension minimumSize(int rows, int cols);
Dimension preferredSize(int rows, int cols);
void replaceRange(String text, int start, int end);
void replaceText(String text, int start, int end);
}

View file

@ -0,0 +1,21 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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);
}

View file

@ -0,0 +1,21 @@
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
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.Dimension;
public interface TextFieldPeer extends TextComponentPeer
{
Dimension getMinimumSize(int columns);
Dimension getPreferredSize(int columns);
Dimension minimumSize(int columns);
Dimension preferredSize(int columns);
void setEchoChar(char echo);
void setEchoCharacter(char echo);
}

View file

@ -1,15 +1,15 @@
/* Copyright (C) 1999 Free Software Foundation
/* Copyright (C) 2000 Free Software Foundation
This file is part of libjava.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
/* A very incomplete placeholder. */
public interface WindowPeer extends ContainerPeer
{
void toBack();
void toFront();
}