Big AWT patch.
From-SVN: r34976
This commit is contained in:
parent
406a65d0db
commit
c7a136d3ef
70 changed files with 4838 additions and 277 deletions
15
libjava/java/awt/peer/ButtonPeer.java
Normal file
15
libjava/java/awt/peer/ButtonPeer.java
Normal 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);
|
||||
}
|
||||
|
13
libjava/java/awt/peer/CanvasPeer.java
Normal file
13
libjava/java/awt/peer/CanvasPeer.java
Normal 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
|
||||
{
|
||||
}
|
15
libjava/java/awt/peer/CheckboxMenuItemPeer.java
Normal file
15
libjava/java/awt/peer/CheckboxMenuItemPeer.java
Normal 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);
|
||||
}
|
||||
|
16
libjava/java/awt/peer/CheckboxPeer.java
Normal file
16
libjava/java/awt/peer/CheckboxPeer.java
Normal 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);
|
||||
}
|
18
libjava/java/awt/peer/ChoicePeer.java
Normal file
18
libjava/java/awt/peer/ChoicePeer.java
Normal 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);
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
15
libjava/java/awt/peer/DialogPeer.java
Normal file
15
libjava/java/awt/peer/DialogPeer.java
Normal 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);
|
||||
}
|
18
libjava/java/awt/peer/FileDialogPeer.java
Normal file
18
libjava/java/awt/peer/FileDialogPeer.java
Normal 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);
|
||||
}
|
13
libjava/java/awt/peer/FontPeer.java
Normal file
13
libjava/java/awt/peer/FontPeer.java
Normal 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
|
||||
{
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
15
libjava/java/awt/peer/LabelPeer.java
Normal file
15
libjava/java/awt/peer/LabelPeer.java
Normal 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);
|
||||
}
|
13
libjava/java/awt/peer/LightweightPeer.java
Normal file
13
libjava/java/awt/peer/LightweightPeer.java
Normal 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
|
||||
{
|
||||
}
|
28
libjava/java/awt/peer/ListPeer.java
Normal file
28
libjava/java/awt/peer/ListPeer.java
Normal 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);
|
||||
}
|
18
libjava/java/awt/peer/MenuBarPeer.java
Normal file
18
libjava/java/awt/peer/MenuBarPeer.java
Normal 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);
|
||||
}
|
14
libjava/java/awt/peer/MenuComponentPeer.java
Normal file
14
libjava/java/awt/peer/MenuComponentPeer.java
Normal 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();
|
||||
}
|
17
libjava/java/awt/peer/MenuItemPeer.java
Normal file
17
libjava/java/awt/peer/MenuItemPeer.java
Normal 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);
|
||||
}
|
18
libjava/java/awt/peer/MenuPeer.java
Normal file
18
libjava/java/awt/peer/MenuPeer.java
Normal 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);
|
||||
}
|
13
libjava/java/awt/peer/PanelPeer.java
Normal file
13
libjava/java/awt/peer/PanelPeer.java
Normal 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
|
||||
{
|
||||
}
|
16
libjava/java/awt/peer/PopupMenuPeer.java
Normal file
16
libjava/java/awt/peer/PopupMenuPeer.java
Normal 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);
|
||||
}
|
21
libjava/java/awt/peer/ScrollPanePeer.java
Normal file
21
libjava/java/awt/peer/ScrollPanePeer.java
Normal 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);
|
||||
}
|
16
libjava/java/awt/peer/ScrollbarPeer.java
Normal file
16
libjava/java/awt/peer/ScrollbarPeer.java
Normal 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);
|
||||
}
|
23
libjava/java/awt/peer/TextAreaPeer.java
Normal file
23
libjava/java/awt/peer/TextAreaPeer.java
Normal 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);
|
||||
}
|
21
libjava/java/awt/peer/TextComponentPeer.java
Normal file
21
libjava/java/awt/peer/TextComponentPeer.java
Normal 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);
|
||||
}
|
21
libjava/java/awt/peer/TextFieldPeer.java
Normal file
21
libjava/java/awt/peer/TextFieldPeer.java
Normal 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);
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue